activity.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <template>
  2. <view>
  3. <scroll-view
  4. class="scroll-wrapper"
  5. :style="{ top: top + 'px' }"
  6. scroll-y
  7. refresher-enabled
  8. refresher-default-style="white"
  9. @refresherrefresh="pullRefresh"
  10. :refresher-triggered="refreshing"
  11. >
  12. <view class="wrapper">
  13. <image :src="resource.weal_activity_bg" webp class="bg" mode="widthFix" />
  14. <view style="height: 492rpx"></view>
  15. <view class="content paddingX15">
  16. <view class="title-wrapper translateX flex-align-center">
  17. <image
  18. :src="resource.weal_activity_title_1"
  19. style="width: 446rpx; height: 32rpx"
  20. />
  21. </view>
  22. <view class="flex paddingT38">
  23. <image
  24. class="flex-shrink0 marginT4"
  25. :src="resource.weal_activity_flag"
  26. style="width: 28rpx; height: 28rpx"
  27. />
  28. <view class="font5 paddingL10 color-1">
  29. <text class="bold">规则:</text>
  30. 1.活动期间注册的新用户(自12月25日0时-5日24时)可领
  31. <text class="color-theme">限时8元无门槛优惠券+199源石</text>
  32. ,即可
  33. <text class="color-theme">0元</text>
  34. 享9.9元抽奖活动。
  35. </view>
  36. </view>
  37. <view class="flex paddingT20 paddingB24">
  38. <image
  39. class="flex-shrink0 marginT4"
  40. :src="resource.weal_activity_flag"
  41. style="width: 28rpx; height: 28rpx"
  42. />
  43. <view class="font5 paddingL10 color-1">
  44. 2.所得奖品需自行支付
  45. <text class="color-theme">15元邮费</text>
  46. ,或满
  47. <text class="color-theme">五</text>
  48. 件商品享
  49. <text class="color-theme">包邮</text>
  50. ,三个工作日内发货(目前受疫情影响暂无法发货,我们会在恢复物流的第一时间为您发货)
  51. </view>
  52. </view>
  53. </view>
  54. <view class="content paddingX15 marginT38">
  55. <view class="title-wrapper translateX flex-align-center">
  56. <image
  57. :src="resource.weal_activity_title_2"
  58. style="width: 364rpx; height: 32rpx"
  59. />
  60. </view>
  61. <view class="paddingT26 flex-align-center color-1 bold font6">
  62. 源力积累,祈福成功!
  63. </view>
  64. <view class="paddingT8 paddingB17 flex-align-between">
  65. <view
  66. v-for="item in list1"
  67. :key="item.id"
  68. class="goods-wrapper flex-align-center"
  69. >
  70. <image :src="item.spu.cover" class="image" mode="aspectFit" />
  71. </view>
  72. </view>
  73. </view>
  74. <view class="content paddingX15 marginT38">
  75. <view class="title-wrapper translateX flex-align-center">
  76. <image
  77. :src="resource.weal_activity_title_3"
  78. style="width: 408rpx; height: 32rpx"
  79. />
  80. </view>
  81. <view class="flex paddingT38 paddingB20">
  82. <image
  83. class="flex-shrink0 marginT4"
  84. :src="resource.weal_activity_flag"
  85. style="width: 28rpx; height: 28rpx"
  86. />
  87. <view class="font5 paddingL10 color-1">
  88. <text class="bold">规则:</text>
  89. 1、活动期间(自25日0时-5日24时),无论新老用户,凡充值100元起,即可获得额外3%源石,大客户(消费满5w元即可成为大客户)可获得额外5%源石,充值金额不支持提现。
  90. </view>
  91. </view>
  92. <view class="flex-align-center paddingB24">
  93. <view
  94. class="rank-btn font6 color-white flex-align-center"
  95. @click="recharge"
  96. >
  97. 去充值
  98. </view>
  99. </view>
  100. </view>
  101. <!--
  102. <view class="content paddingX15 marginT38">
  103. <view class="title-wrapper translateX flex-align-center">
  104. <image :src="resource.weal_activity_title_4" style="width: 282rpx; height: 32rpx" />
  105. </view>
  106. <view style="height: 52rpx"></view>
  107. <view class="relative flex-align-center">
  108. <image :src="resource.weal_activity_rank_1" style="width: 184rpx; height: 60rpx" />
  109. <button open-type="share" class="share-btn btn-clear translateY">去号召</button>
  110. </view>
  111. <view class="flex-align-center paddingT8">
  112. <view class="rank-btn font6 color-white flex-align-center" @click="showRank1">查看实时榜单</view>
  113. </view>
  114. <view class="paddingT12 flex-align-between">
  115. <scroll-view scroll-x class="scroll-goods-wrapper">
  116. <view v-for="item in list2" :key="item.id" class="goods-wrapper flex-align-center">
  117. <image :src="item.cover" class="image" mode="aspectFit" />
  118. </view>
  119. </scroll-view>
  120. </view>
  121. <view class="flex paddingT20">
  122. <image class="flex-shrink0 marginT4" :src="resource.weal_activity_flag" style="width: 28rpx; height: 28rpx" />
  123. <view class="font5 paddingL10 color-1">
  124. <text class="bold">规则:</text>
  125. :活动期间(自25日0时-5日24时),无论新老用户,凡【消费钱包或实际金额】即可计入榜单(源石、魔换消费等均不计入),榜单实时更新。
  126. </view>
  127. </view>
  128. <view class="flex paddingT20">
  129. <image class="flex-shrink0 marginT4" :src="resource.weal_activity_flag" style="width: 28rpx; height: 28rpx" />
  130. <view class="font5 paddingL10 color-1">
  131. <text class="bold">奖励领取要求:</text>
  132. 榜单<text class="color-theme">前十名</text>,且累计成功邀请<text class="color-theme">20人</text>
  133. 以上(含20人),即可依名次获得相应奖品;榜单<text class="color-theme">前三名</text>,且累计成功邀请
  134. <text class="color-theme">50人</text>以上(含50人),即可获得相应前三奖品。奖品均于活动结束后十个工作日内发放。
  135. </view>
  136. </view>
  137. <view class="relative flex-align-center paddingT18">
  138. <image :src="resource.weal_activity_rank_2" style="width: 184rpx; height: 60rpx" />
  139. </view>
  140. <view class="flex-align-center paddingT8">
  141. <view class="rank-btn font6 color-white flex-align-center">查看实时榜单</view>
  142. </view>
  143. <view class="paddingT12 flex-align-between">
  144. <scroll-view scroll-x class="scroll-goods-wrapper">
  145. <view v-for="item in list3" :key="item.id" class="goods-wrapper flex-align-center">
  146. <image :src="item.cover" class="image" mode="aspectFit" />
  147. </view>
  148. </scroll-view>
  149. </view>
  150. <view class="flex paddingT20">
  151. <image class="flex-shrink0 marginT4" :src="resource.weal_activity_flag" style="width: 28rpx; height: 28rpx" />
  152. <view class="font5 paddingL10 color-1">
  153. <text class="bold">规则:</text>
  154. 活动期间(自25日0时-5日24时),无论新老用户,凡<text class="color-theme">【实际消费】</text>
  155. 即可计入榜单,包含<text class="color-theme">充值源石及实际金额消费</text>
  156. (消费已有源石、魔换消费等均不计入),榜单实时更新。
  157. </view>
  158. </view>
  159. <view class="flex paddingY20">
  160. <image class="flex-shrink0 marginT4" :src="resource.weal_activity_flag" style="width: 28rpx; height: 28rpx" />
  161. <view class="font5 paddingL10 color-1">
  162. <text class="bold">奖励领取要求:</text>
  163. 榜单<text class="color-theme">前二十</text>
  164. 名可依名次获得相应奖品,奖品均于活动结束后十个工作日内发放。
  165. </view>
  166. </view>
  167. </view>-->
  168. <view
  169. class="paddingX15 paddingT20 paddingB30 color-white font4"
  170. style="opacity: 0.8"
  171. >
  172. <view class="text-center">微信小程序@燚火漫域SuperMarts</view>
  173. <view class="text-center paddingT4">微信公众号@燚火漫域SuperMarts</view>
  174. <view class="text-center paddingT4">客服@超级小可爱</view>
  175. <view class="text-center paddingT4">
  176. 活动期间流水成就房暂时关闭使用,活动结束后恢复上线
  177. </view>
  178. <view class="text-center paddingT4">@本活动最终解释权归本平台所有</view>
  179. </view>
  180. </view>
  181. </scroll-view>
  182. <rank1 ref="rank1" />
  183. </view>
  184. </template>
  185. <script>
  186. import resource from '@/utils/resource'
  187. import rank1 from './rank1'
  188. import store from '@/store'
  189. export default {
  190. components: { rank1 },
  191. props: {
  192. statusBarHeight: Number,
  193. activityId: Number
  194. },
  195. data() {
  196. return {
  197. resource,
  198. refreshing: false,
  199. requesting: false,
  200. list1: [],
  201. list2: [],
  202. list3: []
  203. }
  204. },
  205. computed: {
  206. top() {
  207. return this.statusBarHeight + uni.upx2px(72) + 45
  208. }
  209. },
  210. mounted() {
  211. this.getData()
  212. },
  213. methods: {
  214. pullRefresh() {
  215. getData()
  216. },
  217. async getData() {
  218. if (this.requesting) return
  219. this.requesting = true
  220. const res = await this.$service.weal.activityTabDetail()
  221. if (res) {
  222. this.list1 = res.substituteGoodsList.slice(0, 4)
  223. this.list2 = res.callGoodsList
  224. this.list3 = res.niuGoodsList
  225. }
  226. setTimeout(() => {
  227. this.refreshing = false
  228. this.requesting = false
  229. }, 1000)
  230. },
  231. recharge() {
  232. if (!this.$common.checkLogin()) return
  233. const user = store.getters.user
  234. this.$common.showKefu(`我要充值 (${user.username})`)
  235. },
  236. showRank1() {
  237. this.$refs.rank1.show()
  238. }
  239. }
  240. }
  241. </script>
  242. <style lang="scss" scoped>
  243. .scroll-wrapper {
  244. position: fixed;
  245. left: 0;
  246. right: 0;
  247. bottom: 0;
  248. }
  249. .wrapper {
  250. background: linear-gradient(180deg, #922dff 0%, #2f4abd 100%);
  251. }
  252. .bg {
  253. width: 100%;
  254. height: 0;
  255. position: absolute;
  256. left: 0;
  257. top: 0;
  258. right: 0;
  259. }
  260. .content {
  261. position: relative;
  262. background: #ffffff;
  263. box-shadow: inset 0px 0px 10px 5px rgba(143, 75, 241, 0.15);
  264. border-radius: 10px;
  265. margin-left: 30rpx;
  266. margin-right: 30rpx;
  267. .title-wrapper {
  268. position: absolute;
  269. top: -36rpx;
  270. width: 560rpx;
  271. height: 72rpx;
  272. background: linear-gradient(360deg, #6832dd 0%, #ab5dff 100%);
  273. border-radius: 36rpx;
  274. }
  275. .scroll-goods-wrapper {
  276. overflow: hidden;
  277. height: 180rpx;
  278. white-space: nowrap;
  279. width: 100%;
  280. .goods-wrapper {
  281. display: inline-block;
  282. margin-right: 16rpx;
  283. }
  284. }
  285. .goods-wrapper {
  286. width: 152rpx;
  287. height: 180rpx;
  288. background: #ffffff;
  289. border-radius: 12rpx;
  290. border: 4rpx solid #8f4bf1;
  291. .image {
  292. width: 142rpx;
  293. height: 165rpx;
  294. }
  295. }
  296. .rank-btn {
  297. width: 286rpx;
  298. height: 64rpx;
  299. background: linear-gradient(360deg, #5da6ff 0%, #1ed3c5 100%);
  300. border-radius: 32rpx;
  301. }
  302. .share-btn {
  303. position: absolute;
  304. right: 40rpx;
  305. margin: 0;
  306. width: 140rpx;
  307. height: 52rpx;
  308. line-height: 52rpx;
  309. background: linear-gradient(180deg, #ff9e30 0%, #ff5d5d 100%);
  310. border-radius: 26rpx;
  311. color: #fff;
  312. font-size: 28rpx;
  313. }
  314. }
  315. </style>