morningDlg.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view class="morning-dlg">
  3. <van-popup :show="isMorningShow" @close="onClose" round>
  4. <view class="close-iocn">
  5. <van-icon @click="onClose" color="#333" name="cross" />
  6. </view>
  7. <view class="content">
  8. <view class="content-box">
  9. <view class="report-content-title">{{ morningItem.IndustryName }}</view>
  10. <view class="content-body">
  11. <view class="morning-meeting-content">
  12. <view class="title-morning" @click="morningReportHandler(morningItem)">
  13. {{ morningItem.Title }}
  14. </view>
  15. <view class="subject-name-morning" v-for="key in morningItem.ListSubject" :key="key.IndustrialSubjectId"> #{{ key.SubjectName }} </view>
  16. </view>
  17. <mp-html :content="strFontSize(morningItem.Content)" />
  18. </view>
  19. </view>
  20. <view class="bottom-btn">
  21. <view class="btn" @click="lookPrevious"> 查看往期汇总</view>
  22. <view class="btn" @click="lookDetails"> 查看资源包</view>
  23. </view>
  24. </view>
  25. </van-popup>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. props: {
  31. isMorningShow: {
  32. type: Boolean,
  33. default: false,
  34. required: true,
  35. },
  36. morningItem: {
  37. type: Object,
  38. default: {},
  39. required: true,
  40. },
  41. },
  42. data() {
  43. return {
  44. show: false,
  45. };
  46. },
  47. methods: {
  48. // 关闭弹框
  49. onClose() {
  50. this.$emit("update:isMorningShow", false);
  51. },
  52. // 查看往期汇总
  53. lookPrevious() {
  54. uni.navigateTo({
  55. url: "/reportPages/morningAll/morningAll",
  56. });
  57. this.onClose();
  58. },
  59. // 查看资源包
  60. lookDetails() {
  61. uni.navigateTo({
  62. url: "/reportPages/IndustryReport/IndustryReport?id=" + this.morningItem.IndustryId,
  63. });
  64. this.onClose();
  65. },
  66. morningReportHandler(item) {
  67. uni.navigateTo({
  68. url: "/pageMy/reportDetail/reportDetail?id=" + item.LinkArticleId,
  69. });
  70. },
  71. },
  72. };
  73. </script>
  74. <style scope lang="scss">
  75. .morning-dlg {
  76. .close-iocn {
  77. padding: 25rpx 35rpx;
  78. display: flex;
  79. justify-content: flex-end;
  80. }
  81. .content {
  82. width: 632rpx;
  83. background-color: #fff;
  84. padding: 0rpx 30rpx 100rpx 30rpx;
  85. .content-box {
  86. width: 100%;
  87. min-height: 400rpx;
  88. max-height: 830rpx;
  89. overflow: hidden;
  90. overflow-y: auto;
  91. }
  92. .bottom-btn {
  93. position: fixed;
  94. bottom: 0;
  95. left: 0;
  96. width: 100%;
  97. height: 82rpx;
  98. display: flex;
  99. align-items: center;
  100. background-color: #fff;
  101. border-top: 1rpx solid #f0f0f0;
  102. color: #376cbb;
  103. .btn {
  104. flex: 1;
  105. display: flex;
  106. align-items: center;
  107. justify-content: center;
  108. height: 100%;
  109. }
  110. :first-child {
  111. border-right: 3rpx solid #f0f0f0;
  112. }
  113. }
  114. .content-body {
  115. font-size: 28rpx;
  116. margin-top: 15rpx;
  117. }
  118. }
  119. .report-content-title {
  120. text-align: center;
  121. }
  122. .morning-meeting-content {
  123. display: flex;
  124. flex-wrap: wrap;
  125. color: $uni-color-new;
  126. font-size: 28rpx;
  127. margin: 15rpx 0;
  128. .title-morning {
  129. font-weight: 600;
  130. text-decoration: underline;
  131. }
  132. .subject-name-morning {
  133. margin-left: 10rpx;
  134. }
  135. }
  136. }
  137. </style>