reportChoiceness.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 class="content-title">
  6. <view></view>
  7. <image :src="item.IcoLink" mode=""></image>
  8. <text style="margin-right: 26rpx">{{ item.ListName }}</text>
  9. <view></view>
  10. </view>
  11. <view class="content-list" v-for="(key, num) in item.List" :key="num">
  12. <view class="list-title" :class="num == 0 ? '' : 'list-tophight'" v-if="key.PermissionName">
  13. <image :src="key.IcoLink" mode=""></image>
  14. <text>{{ key.PermissionName }}:</text>
  15. </view>
  16. <view class="list-boby" :class="{ 'list-boby-border': indexs !== 0, 'no-top': !key.PermissionName }" v-for="(val, indexs) in key.List" :key="indexs">
  17. <mp-html :content="val.Body" />
  18. <view class="list-detali" v-if="val.ReportLink" @click="goListDetali(val)"> 点击查看详情 </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. props: {
  28. dataListResearch: {
  29. type: Array,
  30. required: true,
  31. default: [],
  32. },
  33. },
  34. data() {
  35. return {};
  36. },
  37. methods: {
  38. goListDetali(item) {
  39. if (item.IsHaveVideo) {
  40. //跳转路演精华
  41. uni.navigateTo({
  42. url: "/reportPages/roadEssence/roadEssence?id=" + item.ReportLink,
  43. });
  44. } else {
  45. uni.navigateTo({
  46. url: "/pageMy/reportDetail/reportDetail?id=" + item.ReportLink,
  47. });
  48. }
  49. },
  50. },
  51. };
  52. </script>
  53. <style lang="scss" scope>
  54. .container-report {
  55. .content {
  56. color: #4a4a4a;
  57. .content-title {
  58. display: flex;
  59. font-size: 32rpx;
  60. font-weight: 700;
  61. align-items: center;
  62. justify-content: center;
  63. margin-bottom: 60rpx;
  64. image {
  65. width: 48rpx;
  66. height: 44rpx;
  67. margin: 0 20rpx 0 26rpx;
  68. }
  69. view {
  70. flex: 1;
  71. border: 2rpx dashed #333333;
  72. }
  73. }
  74. .content-list {
  75. font-size: 32rpx;
  76. font-weight: 400;
  77. .list-title {
  78. display: flex;
  79. align-items: center;
  80. image {
  81. width: 48rpx;
  82. height: 44rpx;
  83. }
  84. text {
  85. margin-left: 10rpx;
  86. }
  87. }
  88. .list-boby {
  89. margin-bottom: 30rpx;
  90. padding-top: 30rpx;
  91. }
  92. .no-top {
  93. padding-top: 0rpx !important;
  94. }
  95. .list-tophight {
  96. margin-top: 60rpx;
  97. }
  98. .list-boby-border {
  99. border-top: 2rpx dashed #e2e2e2;
  100. }
  101. .list-detali {
  102. font-size: 28rpx;
  103. color: #3385ff;
  104. margin: 20rpx 0;
  105. }
  106. }
  107. }
  108. }
  109. </style>