aggregated_2.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <view class="aggregated-boxs" :style="{backgroundImage: `url(${themeVo.themeBanner})` }">
  3. <view class="aggregated-content">
  4. <!-- <view class="aggregated-themeName">
  5. {{themeVo.themeName}}
  6. </view> -->
  7. <view class="content-list">
  8. <u-waterfall v-model="themeModuleVoList">
  9. <template v-slot:left="{leftList}">
  10. <view class="list-item left-item" v-for="(item, index) in leftList" :key="`left_${index}`" @click.stop="openKongKim(item)">
  11. <image class="item-img" :src="item.moduleAdImage" mode="aspectFill"></image>
  12. <view class="info-box">
  13. <view class="info-title">
  14. <image class="info-icon" :src="item.moduleImage" mode="aspectFit"></image>
  15. <text class="info-name zw-one-row">{{item.moduleName}} </text>
  16. </view>
  17. <view class="info-remark zw-two-row">
  18. {{ item.remark }}
  19. </view>
  20. <view class="info-label" v-if="item.moduleLabelList && item.moduleLabelList.length > 0">
  21. <view class="label-item" v-for="(item , index) in item.moduleLabelList">
  22. {{item}}
  23. </view>
  24. </view>
  25. <view class="info-btn">
  26. <text class="info-btn-icon iconfont_yige">&#xe669;</text>呼叫代驾
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <template v-slot:right="{rightList}">
  32. <view class="list-item right-item" v-for="(item, index) in rightList" :key="`right_${index}`" @click.stop="openKongKim(item)">
  33. <image class="item-img" :src="item.moduleAdImage" mode="aspectFill"></image>
  34. <view class="info-box">
  35. <view class="info-title">
  36. <image class="info-icon" :src="item.moduleImage" mode="aspectFit"></image>
  37. <text class="info-name zw-one-row">{{item.moduleName}} </text>
  38. </view>
  39. <view class="info-remark zw-two-row">
  40. {{ item.remark }}
  41. </view>
  42. <view class="info-label" v-if="item.moduleLabelList && item.moduleLabelList.length > 0">
  43. <view class="label-item" v-for="(item , index) in item.moduleLabelList">
  44. {{item}}
  45. </view>
  46. </view>
  47. <view class="info-btn">
  48. <text class="info-btn-icon iconfont_yige">&#xe669;</text>呼叫代驾
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. </u-waterfall>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. import Mixin from "./Mixin.js"
  60. export default {
  61. mixins: [Mixin],
  62. data() {
  63. return {
  64. }
  65. },
  66. methods: {
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. ::v-deep .u-waterfall {
  72. width: 100%;
  73. .u-column {
  74. width: 50%;
  75. }
  76. #u-left-column {
  77. padding-right: 10rpx;
  78. }
  79. #u-right-column {
  80. padding-left: 10rpx;
  81. }
  82. }
  83. .aggregated-boxs {
  84. width: 100%;
  85. min-height: 100vh;
  86. background-repeat: no-repeat;
  87. background-size: 100% 577rpx;
  88. padding-top: 466rpx;
  89. .aggregated-content {
  90. width: 100%;
  91. min-height: calc(100vh - 466rpx);
  92. // border-radius: 80rpx 80rpx 0 0;
  93. .aggregated-themeName {
  94. // border-radius: 80rpx 80rpx 0 0;
  95. background-color: #fff;
  96. width: 100%;
  97. height: 140rpx;
  98. padding: 0 30rpx;
  99. font-size: 36rpx;
  100. font-family: PingFang SC, PingFang SC-Bold;
  101. font-weight: 700;
  102. color: #1a1a1a;
  103. line-height: 140rpx;
  104. border-bottom: 1rpx solid $zw-border-color;
  105. }
  106. }
  107. .content-list {
  108. width: 100%;
  109. padding: 30rpx;
  110. background-color: #fbfbfb;
  111. // background: linear-gradient(180deg, #fff, #fbfbfb);
  112. .list-item {
  113. width: 100%;
  114. margin-bottom: 20rpx;
  115. background-color: #fff;
  116. border-radius: 18rpx;
  117. overflow: hidden;
  118. .item-img {
  119. width: 100%;
  120. height: 240rpx;
  121. display: block;
  122. }
  123. .info-box {
  124. width: 100%;
  125. padding: 0 20rpx 30rpx;
  126. .info-title {
  127. width: 100%;
  128. height: 84rpx;
  129. display: flex;
  130. align-items: center;
  131. .info-icon {
  132. width: 55rpx;
  133. height: 55rpx;
  134. border-radius: 50%;
  135. }
  136. .info-name {
  137. width: calc(100% - 55rpx);
  138. font-size: 28rpx;
  139. font-family: PingFang SC, PingFang SC-Bold;
  140. font-weight: 700;
  141. color: #1a1a1a;
  142. padding-left: 12rpx;
  143. }
  144. }
  145. .info-remark {
  146. font-size: 28rpx;
  147. font-family: PingFang SC, PingFang SC-Regular;
  148. font-weight: 400;
  149. text-align: left;
  150. color: #4d4d4d;
  151. line-height: 1.4;
  152. }
  153. .info-label {
  154. display: flex;
  155. flex-direction: row;
  156. align-items: stretch;
  157. flex-wrap: wrap;
  158. padding: 10rpx 0 0;
  159. .label-item {
  160. width: calc((100% - 40rpx) / 3);
  161. height: 39rpx;
  162. margin-right: 20rpx;
  163. margin-bottom: 10rpx;
  164. background: #ededed;
  165. border-radius: 20rpx 20rpx 20rpx 0px;
  166. display: flex;
  167. justify-content: center;
  168. align-items: center;
  169. font-size: 18rpx;
  170. font-family: PingFang SC, PingFang SC-Regular;
  171. font-weight: 400;
  172. color: #333333;
  173. &:nth-child(3n) {
  174. margin-right: 0;
  175. }
  176. }
  177. }
  178. .info-btn {
  179. margin-top: 10rpx;
  180. width: 100%;
  181. height: 64rpx;
  182. background: linear-gradient(180deg, #fa6037, #feb26d);
  183. border-radius: 32rpx;
  184. font-size: 26rpx;
  185. font-family: PingFang SC, PingFang SC-Medium;
  186. font-weight: 500;
  187. color: #ffffff;
  188. display: flex;
  189. justify-content: center;
  190. align-items: center;
  191. .info-btn-icon {
  192. margin-right: 5px;
  193. }
  194. }
  195. }
  196. // width: 50%;
  197. // width: calc(50% - 10rpx);
  198. }
  199. }
  200. }
  201. </style>