| | |
| | | img: item.prizeImg |
| | | } |
| | | }) |
| | | this.prizeList = [...this.prizeList] |
| | | this.prizeList.push({ |
| | | id: 'notWIn', |
| | | name: "谢谢参与" |
| | |
| | | await this.getUnmber(this.activityId) |
| | | await this.getGrantRecord(this.activityId) |
| | | }, |
| | | onShareTimeline(e) { |
| | | console.log('------------------>', e) |
| | | // 如果用户尝试过分享朋友圈,给予奖励 |
| | | if (this.shareTimelineAttempt) { |
| | | this.remainingTimes++; |
| | | this.shareTimelineAttempt = false; |
| | | uni.showToast({ |
| | | title: '获得1次抽奖机会', |
| | | icon: 'success' |
| | | }); |
| | | } |
| | | return { |
| | | title: '快来参与抽奖活动吧!', |
| | | path: '/pages/prize/PrizeDetail/PrizeDetail?id=' + this.activityId |
| | | } |
| | | }, |
| | | // onShareTimeline(e) { |
| | | // console.log('------------------>', e) |
| | | // // 如果用户尝试过分享朋友圈,给予奖励 |
| | | // if (this.shareTimelineAttempt) { |
| | | // this.remainingTimes++; |
| | | // this.shareTimelineAttempt = false; |
| | | // uni.showToast({ |
| | | // title: '获得1次抽奖机会', |
| | | // icon: 'success' |
| | | // }); |
| | | // } |
| | | // return { |
| | | // title: '快来参与抽奖活动吧!', |
| | | // path: '/pages/prize/PrizeDetail/PrizeDetail?id=' + this.activityId |
| | | // } |
| | | // }, |
| | | //可能会使用到 |
| | | mounted() { |
| | | // this.startAutoScroll() |
| | |
| | | this.closeMoreChancesModal(); |
| | | uni.showModal({ |
| | | title: '去购物', |
| | | content: '即将跳转到商品广场', |
| | | content: '即将跳转到购物车', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | // 或者跳转到购物车 |
| | |
| | | .prize-grid { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | justify-content: flex-start; |
| | | } |
| | | |
| | | .prize-item:nth-child(n+1){ |
| | | margin-left: 15rpx; |
| | | } |
| | | .prize-item { |
| | | width: 22%; |
| | | margin-bottom: 20rpx; |