reportChoiceness.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view>
  3. <view class="container-report forbid-copy" v-if="dataListResearch.length > 0">
  4. <view class="content" v-for="(item, index) in dataListResearch" :key="index">
  5. <view v-if="item.Type === 'YANX'" class="official-notice">
  6. <image src=" https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/mfyx_icon.png"></image>
  7. </view>
  8. <view class="content-title">
  9. <view></view>
  10. <image :src="item.IcoLink" mode=""></image>
  11. <text style="margin-right: 26rpx">{{ item.ListName }}</text>
  12. <view></view>
  13. </view>
  14. <view class="content-list" v-for="(key, num) in item.List" :key="num">
  15. <view style="display: inline-block">
  16. <view class="list-title" :class="num == 0 ? '' : 'list-tophight'" v-if="key.PermissionName">
  17. <image :src="key.IcoLink" mode=""></image>
  18. <text>{{ key.PermissionName }}:</text>
  19. </view>
  20. </view>
  21. <view class="list-boby" :class="{ 'no-top': !key.PermissionName }" v-for="(val, indexs) in key.List" :key="indexs">
  22. <mp-html :content="strFontSize(val.Body)" />
  23. <view class="list-detali" :class="{ 'list-boby-border': num !== item.List.length - 1 || indexs !== key.List.length - 1 }" v-if="val.ReportLink" @click="goListDetali(val)">
  24. 点击查看详情
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. props: {
  35. dataListResearch: {
  36. type: Array,
  37. required: true,
  38. default: [],
  39. },
  40. },
  41. data() {
  42. return {};
  43. },
  44. methods: {
  45. goListDetali(item) {
  46. if (item.IsHaveVideo) {
  47. //跳转路演精华
  48. uni.navigateTo({
  49. url: "/reportPages/roadEssence/roadEssence?id=" + item.ReportLink,
  50. });
  51. } else {
  52. uni.navigateTo({
  53. url: "/pageMy/reportDetail/reportDetail?id=" + item.ReportLink,
  54. });
  55. }
  56. },
  57. },
  58. };
  59. </script>
  60. <style lang="scss" scope>
  61. .container-report {
  62. margin-top: 60rpx;
  63. .content {
  64. color: #4a4a4a;
  65. .content-title {
  66. display: flex;
  67. font-size: 32rpx;
  68. align-items: center;
  69. justify-content: center;
  70. margin: 30rpx 0 30rpx;
  71. color: #4a4a4a;
  72. image {
  73. width: 40rpx;
  74. height: 44rpx;
  75. margin: 0 20rpx 0 26rpx;
  76. }
  77. view {
  78. flex: 1;
  79. border: 2rpx dashed #333333;
  80. }
  81. }
  82. .content-list {
  83. font-size: 32rpx;
  84. font-weight: 400;
  85. .list-title {
  86. display: flex;
  87. align-items: center;
  88. background: $uni-color-new;
  89. padding: 3rpx 34rpx;
  90. color: #fff;
  91. border-radius: 0rpx 50rpx 50rpx 0rpx;
  92. overflow: hidden;
  93. image {
  94. width: 32rpx;
  95. height: 32rpx;
  96. }
  97. text {
  98. margin-left: 10rpx;
  99. }
  100. }
  101. .list-boby {
  102. margin-bottom: 30rpx;
  103. padding-top: 30rpx;
  104. }
  105. .no-top {
  106. padding-top: 0rpx !important;
  107. }
  108. .list-tophight {
  109. margin-top: 30rpx;
  110. }
  111. .list-boby-border {
  112. border-bottom: 2rpx dashed #e2e2e2;
  113. }
  114. .list-detali {
  115. font-size: 28rpx;
  116. color: $uni-color-new;
  117. margin: 20rpx 0 5rpx;
  118. text-align: right;
  119. padding-bottom: 30rpx;
  120. }
  121. }
  122. .official-notice {
  123. width: calc(100% + 68rpx);
  124. margin-left: -34rpx;
  125. height: 150rpx;
  126. margin-top: 70rpx;
  127. image {
  128. width: 100%;
  129. height: 100%;
  130. }
  131. }
  132. }
  133. }
  134. </style>