researchSummary.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <!-- 精选/上周、研究汇总 -->
  3. <view class="container-summary forbid-copy" v-if="dataList.length > 0">
  4. <view class="content" v-for="(item, index) in dataList" :key="index">
  5. <view class="content-title global_title">
  6. <image :src="item.IcoLink" mode=""></image>
  7. <text>{{ item.PermissionName }}</text>
  8. </view>
  9. <view class="content-list" v-for="(key, num) in item.List" :key="num">
  10. <view style="display:inline-block">
  11. <text class="list-subject" v-if="key.SubjectName">{{ key.SubjectName }}:</text>
  12. </view>
  13. <mp-html :content="strFontSize(key.Body)" />
  14. <view class="subject-detali" v-if="key.ReportLink">
  15. <text style="color: #376cbb" @click="reportLinkDetali(key)">点击查看</text>
  16. </view>
  17. <view class="subject-detali" v-else>
  18. <text style="display:inline-block">相关调研纪要、深度报告请</text>
  19. <text style="color: #376cbb; margin-left: 10rpx;display:inline-block" @click="industry(key.List)">点击查看</text>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="select-box">
  24. <u-popup v-model="areacodeShow" mode="bottom" @close="cancel">
  25. <view class="box" style="color: #2c83ff" v-for="(item) in list" :key="item.IndustrialManagementId" @click="industryDetitle(item)"> {{ item.IndustryName }}</view>
  26. <view class="box box-bottom" style="color: #a9afb8" @click="cancel">取消</view>
  27. </u-popup>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. props: {
  34. dataList: {
  35. type: Array,
  36. default: [],
  37. required: true,
  38. },
  39. },
  40. data() {
  41. return {
  42. list: [],
  43. areacodeShow: false,
  44. };
  45. },
  46. methods: {
  47. reportLinkDetali(item) {
  48. if (item.IsHaveVideo) {
  49. //跳转路演精华
  50. uni.navigateTo({
  51. url: "/reportPages/roadEssence/roadEssence?id=" + item.ReportLink,
  52. });
  53. } else {
  54. uni.navigateTo({
  55. url: "/pageMy/reportDetail/reportDetail?id=" + item.ReportLink,
  56. });
  57. }
  58. },
  59. industry(item) {
  60. if (item.length > 1) {
  61. this.list = item;
  62. this.areacodeShow = true;
  63. } else if (item.length > 0 || item.length == 1) {
  64. uni.navigateTo({
  65. url: "/reportPages/IndustryReport/IndustryReport?id=" + item[0].IndustrialManagementId,
  66. });
  67. }
  68. },
  69. industryDetitle(item) {
  70. uni.navigateTo({
  71. url: "/reportPages/IndustryReport/IndustryReport?id=" + item.IndustrialManagementId,
  72. });
  73. this.areacodeShow = false;
  74. },
  75. cancel() {
  76. this.areacodeShow = false;
  77. },
  78. },
  79. watch: {},
  80. };
  81. </script>
  82. <style lang="scss" scope>
  83. .container-summary {
  84. .content {
  85. color: #4a4a4a;
  86. .content-title {
  87. display: flex;
  88. font-size: 32rpx;
  89. align-items: center;
  90. justify-content: center;
  91. margin-bottom: 62rpx;
  92. color: #4A4A4A;
  93. image {
  94. width: 48rpx;
  95. height: 44rpx;
  96. margin-right: 12rpx;
  97. }
  98. }
  99. .content-list {
  100. font-size: 32rpx;
  101. font-weight: 400;
  102. }
  103. .list-subject {
  104. background: #376cbb;
  105. padding: 3rpx 34rpx;
  106. color: #fff;
  107. border-radius: 0rpx 50rpx 50rpx 0rpx;
  108. font-weight: 500;
  109. margin-bottom: 20rpx;
  110. }
  111. .subject-detali {
  112. // display: flex;
  113. text-align:right;
  114. font-size: 28rpx;
  115. margin: 20rpx 0 60rpx 0;
  116. }
  117. }
  118. .select-box {
  119. width: 100%;
  120. .box {
  121. height: 95prx;
  122. line-height: 95rpx;
  123. text-align: center;
  124. font-size: 32rpx;
  125. border-bottom: 1rpx solid #ebebeb;
  126. }
  127. .box-bottom {
  128. border-bottom: none !important;
  129. }
  130. }
  131. }
  132. </style>