activeParty.vue 4.2 KB

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