reportChoiceness.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. </view>
  25. </template>
  26. <script>
  27. export default {
  28. props:{
  29. dataListResearch:{
  30. type:Array,
  31. required:true,
  32. default:[]
  33. }
  34. },
  35. data() {
  36. return {
  37. }
  38. },
  39. methods: {
  40. goListDetali(item){
  41. if(item.IsHaveVideo){
  42. //跳转路演精华
  43. uni.navigateTo({
  44. url:'/reportPages/roadEssence/roadEssence?id='+item.ReportLink
  45. })
  46. }else {
  47. uni.navigateTo({
  48. url:'/pages/reportDetail/reportDetail?id='+item.ReportLink
  49. })
  50. }
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scope>
  56. .container-report {
  57. .content {
  58. color: #4A4A4A;
  59. .content-title {
  60. display: flex;
  61. font-size: 32rpx;
  62. font-weight: 700;
  63. align-items: center;
  64. justify-content: center;
  65. margin-bottom: 60rpx;
  66. image {
  67. width: 48rpx;
  68. height: 44rpx;
  69. margin: 0 20rpx 0 26rpx;
  70. }
  71. view {
  72. flex: 1;
  73. border: 2rpx dashed #333333;
  74. }
  75. }
  76. .content-list {
  77. font-size: 32rpx;
  78. font-weight: 400;
  79. .list-title {
  80. display: flex;
  81. align-items: center;
  82. image {
  83. width: 48rpx;
  84. height: 44rpx;
  85. }
  86. text {
  87. margin-left: 10rpx;
  88. }
  89. }
  90. .list-boby {
  91. margin-bottom:30rpx;
  92. padding-top: 30rpx;
  93. }
  94. .no-top {
  95. padding-top: 0rpx !important;
  96. }
  97. .list-tophight {
  98. margin-top: 60rpx;
  99. }
  100. .list-boby-border {
  101. border-top: 2rpx dashed #E2E2E2;
  102. }
  103. .list-detali {
  104. font-size: 28rpx;
  105. color: #3385FF;
  106. margin: 20rpx 0;
  107. }
  108. }
  109. }
  110. }
  111. </style>