activeParty.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <!-- 活动模方 -->
  3. <view v-show="!isSortType">
  4. <view class="explosion" :style="'margin-top:' + mbConfig*2 +'rpx;background-color:' + boxColor+';'"
  5. v-if="explosiveMoney.length">
  6. <view class="hd skeleton-rect">
  7. <!-- <image src="/static/images/explosion-title.png" mode=""></image> -->
  8. <view class="title" :style="'color:'+themeColor+';'">{{titleConfig}}</view>
  9. <view class="txt acea-row row-center-wrapper"
  10. :style="'background: linear-gradient(90deg, '+ bgColor[0].item +' 0%, '+ bgColor[1].item +' 100%);'">
  11. {{desConfig}}
  12. </view>
  13. </view>
  14. <view class="bd">
  15. <view class="item skeleton-rect" @click="goDetail(item)" v-for="(item,index) in explosiveMoney" :key="index">
  16. <view class="con-box">
  17. <view class="title line1">{{item.info[0].value}}</view>
  18. <view class="con line2">{{item.info[1].value}}</view>
  19. <view class="go">GO!<image src="/static/images/right-icon.png" mode=""></image>
  20. <!-- #ifdef H5 || APP-PLUS -->
  21. <slot name="bottom" :item="item"></slot>
  22. <!-- #endif -->
  23. <!-- #ifdef MP -->
  24. <slot name="bottom{{index}}"></slot>
  25. <!-- #endif -->
  26. </view>
  27. </view>
  28. <image :src="item.img" mode="aspectFill"></image>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. name: 'activeParty',
  37. props: {
  38. dataConfig: {
  39. type: Object,
  40. default: () => {}
  41. },
  42. isSortType: {
  43. type: String | Number,
  44. default: 0
  45. }
  46. },
  47. data() {
  48. return {
  49. titleConfig: this.dataConfig.titleConfig.value,
  50. desConfig: this.dataConfig.desConfig.value,
  51. explosiveMoney: this.dataConfig.menuConfig.list,
  52. themeColor: this.dataConfig.themeColor.color[0].item,
  53. bgColor: this.dataConfig.bgColor.color,
  54. mbConfig: this.dataConfig.mbConfig.val,
  55. boxColor: this.dataConfig.boxColor.color[0].item
  56. };
  57. },
  58. created() {},
  59. methods: {
  60. goDetail(item) {
  61. let urls = item.info[2].value;
  62. this.$util.JumpPath(urls);
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss">
  68. .explosion {
  69. width: 710rpx;
  70. margin-top: 20rpx;
  71. margin: 20rpx auto 0 auto;
  72. padding: 30rpx 20rpx;
  73. padding: 30rpx 20rpx 6rpx 20rpx;
  74. background-color: #FFE5E3;
  75. background-size: 100% 100%;
  76. border-radius: 13px;
  77. box-sizing: border-box;
  78. .hd {
  79. display: flex;
  80. align-items: center;
  81. .title {
  82. font-size: 32rpx;
  83. font-weight: bold;
  84. margin-right: 12rpx;
  85. }
  86. image {
  87. width: 147rpx;
  88. height: 35rpx;
  89. margin-right: 20rpx;
  90. }
  91. .txt {
  92. padding: 0 10rpx;
  93. height: 36rpx;
  94. // background: linear-gradient(90deg, rgba(255, 168, 0, 1) 0%, rgba(255, 34, 15, 1) 100%);
  95. border-radius: 26rpx 0px 26rpx 0px;
  96. color: #fff;
  97. text-align: center;
  98. font-size: 22rpx;
  99. box-shadow: 3px 1px 1px 1px var(--view-minorColorT);
  100. padding-bottom: 2rpx;
  101. }
  102. }
  103. .bd {
  104. display: flex;
  105. flex-wrap: wrap;
  106. margin-top: 28rpx;
  107. .item {
  108. display: flex;
  109. align-items: center;
  110. justify-content: space-between;
  111. position: relative;
  112. width: 325rpx;
  113. height: 180rpx;
  114. margin-bottom: 20rpx;
  115. margin-right: 20rpx;
  116. background-color: #fff;
  117. border-radius: 16rpx;
  118. padding: 0 20rpx;
  119. box-sizing: border-box;
  120. image {
  121. width: 140rpx;
  122. height: 140rpx;
  123. }
  124. .con-box {
  125. display: flex;
  126. flex-direction: column;
  127. justify-content: center;
  128. width: 130rpx;
  129. height: 100%;
  130. .title {
  131. color: #282828;
  132. font-size: 28rpx;
  133. }
  134. .con {
  135. color: #999999;
  136. font-size: 20rpx;
  137. margin-top: 2rpx;
  138. }
  139. .go {
  140. display: flex;
  141. align-items: center;
  142. justify-content: center;
  143. margin-top: 10rpx;
  144. width: 112rpx;
  145. height: 36rpx;
  146. border-radius: 18rpx;
  147. color: #fff;
  148. font-size: 26rpx;
  149. font-weight: bold;
  150. font-style: italic;
  151. image {
  152. width: 26rpx;
  153. height: 26rpx;
  154. }
  155. }
  156. }
  157. &:first-child .go {
  158. background: linear-gradient(90deg, rgba(75, 196, 255, 1) 0%, rgba(32, 126, 255, 1) 100%);
  159. }
  160. &:nth-child(2) .go {
  161. background: linear-gradient(90deg, rgba(255, 144, 67, 1) 0%, rgba(255, 83, 29, 1) 100%);
  162. }
  163. &:nth-child(3) .go {
  164. background: linear-gradient(90deg, rgba(150, 225, 135, 1) 0%, rgba(72, 206, 44, 1) 100%);
  165. }
  166. &:nth-child(4) .go {
  167. background: linear-gradient(90deg, rgba(255, 197, 96, 1) 0%, rgba(255, 156, 0, 1) 100%);
  168. }
  169. &:nth-child(2n) {
  170. margin-right: 0;
  171. }
  172. }
  173. }
  174. }
  175. </style>