discount.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="discount">
  3. <view class="discount-top">
  4. <view class="seckill border-index" @click="loadMore('/pages/product/seckill')">
  5. <view class="image">
  6. <image src="../../static/icon/seckill.png" mode=""></image>
  7. </view>
  8. <view class="idt">
  9. <b>限时秒杀</b><br>
  10. <text>挑战全网最低价格</text>
  11. </view>
  12. </view>
  13. <view class="exchange-certificate border-index" @click="loadMore('/pages/product/exchange')">
  14. <view class="image">
  15. <image src="../../static/icon/exchange-certificate.png" mode=""></image>
  16. </view>
  17. <view class="idt">
  18. <b>兑换券</b><br>
  19. <text>超值兑换</text>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="exchange-certificate border-index" @click="loadMore('/pages/product/pointsExchange')" style="width: 690rpx;height: 110rpx;margin: 0 auto;">
  24. <view class="image">
  25. <image src="../../static/icon/collage.png" mode=""></image>
  26. </view>
  27. <view class="idt">
  28. <b>积分兑换</b><br>
  29. <text>超值兑换</text>
  30. </view>
  31. </view>
  32. <view class="collage border-index" @click="loadMore('/pages/product/groupBooking/index')" v-if="combinationList.list.length > 0">
  33. <view class="">
  34. <view class="image">
  35. <image src="../../static/icon/collage.png" mode=""></image>
  36. </view>
  37. <view class="idt">
  38. <b>超值拼团</b><br>
  39. <text>拼团专场</text>
  40. </view>
  41. <view class="collage-d">
  42. <span>美食拼团专场 · · ·</span>
  43. </view>
  44. </view>
  45. <view class="collage-r">
  46. <view class="cr" v-for="(item,index) in combinationList.list">
  47. <image :src="item.image"></image>
  48. <view class="crt">{{item.title}}</view>
  49. </view>
  50. <!-- <view class="cr">
  51. <image src="../../static/img/hpb.png"></image>
  52. <view class="crt">88</view>
  53. </view><view class="cr">
  54. <image src="../../static/img/hpb.png"></image>
  55. <view class="crt">88</view>
  56. </view> -->
  57. <!-- <view class="" v-for="c in combinationList.list" :key="c.id"> -->
  58. <!-- </view> -->
  59. </view>
  60. </view>
  61. <view class="" style="height: 20rpx;">
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. export default {
  67. props: ["combinationList"],
  68. data() {
  69. return {
  70. }
  71. },
  72. onShow() {
  73. },
  74. methods: {
  75. loadMore(url) {
  76. uni.navigateTo({
  77. url: url
  78. })
  79. },
  80. }
  81. }
  82. </script>
  83. <style lang="scss" scoped>
  84. .discount {
  85. display: grid;
  86. b {
  87. font-family: PingFang-SC-Medium;
  88. color: #333333;
  89. font-size: 32rpx;
  90. }
  91. text {
  92. font-size: 21rpx;
  93. color: #989B9F;
  94. }
  95. }
  96. .image {
  97. float: left;
  98. margin: 20rpx;
  99. image {
  100. width: 66rpx;
  101. height: 66rpx;
  102. }
  103. }
  104. .idt {
  105. margin-top: 20rpx;
  106. }
  107. .seckill {
  108. // flex: 1;
  109. width: 337rpx;
  110. margin: 27rpx;
  111. height: 130rpx;
  112. }
  113. .exchange-certificate {
  114. flex: 1;
  115. margin: 27rpx;
  116. height: 130rpx;
  117. margin-left: 0;
  118. }
  119. .discount-top {
  120. width: 100%;
  121. display: flex;
  122. // margin-bottom: -27rpx;
  123. }
  124. .collage {
  125. margin: 27rpx;
  126. margin-top: -12rpx;
  127. height: 198rpx;
  128. display: flex;
  129. .collage-d {
  130. height: 50rpx;
  131. padding: 10rpx 0;
  132. margin-top: 10rpx;
  133. margin-left: 20rpx;
  134. width: 279rpx;
  135. background-color: #DCB876;
  136. border-radius: 10px;
  137. text-align: center;
  138. color: #FFFFFF;
  139. font-size: 26rpx;
  140. }
  141. .collage-r {
  142. display: flex;
  143. margin: 15rpx 0 0 50rpx;
  144. .cr {
  145. text-align: center;
  146. margin: 40rpx;
  147. margin-left: 0;
  148. .crt {
  149. color: #989B9F;
  150. font-size: 19rpx;
  151. }
  152. }
  153. image {
  154. width: 74rpx;
  155. height: 74rpx;
  156. }
  157. }
  158. }
  159. </style>