兑换记录
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<view class="t-bg" style="">
|
||||
<image class="t-wan" src="./luck/wenan.png"></image>
|
||||
<image class="t-wan-lp" src="./luck/hengfu.png"></image>
|
||||
<view class="t-choujiang t-flex-row" >
|
||||
<view class="t-choujiang t-flex-row">
|
||||
<l-dialer :prizeList="list" @click="onClick" @done="onDone" ref="dialer" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -24,7 +24,7 @@
|
||||
<view class="t-r-title t-flex-row">活动规则</view>
|
||||
<view class="t-rule">
|
||||
<text>1.抽奖细则:每日前{{ freeNumDay }}次付款均可获得抽奖机会</text>
|
||||
<text>2.奖励说明:红包奖励将自动发放到红包余额,已绑定支付宝账号将会自动发起提现。其余奖品则需联系客服领取。</text>
|
||||
<text>2.奖励说明:红包奖励将自动发放到红包余额,已绑定银行卡账号将会自动发起提现。其余奖品则需联系客服领取。</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -38,7 +38,7 @@
|
||||
<view class="t-xxcy-ts t-flex-row">再努力努力肯定就会中哦~</view>
|
||||
</view> -->
|
||||
<view class="t-tk-zj t-flex-col-s">
|
||||
<image class="t-tk-zj-tip" src="./luck/wenzi.png" ></image>
|
||||
<image class="t-tk-zj-tip" src="./luck/wenzi.png"></image>
|
||||
<view class="t-tk-zj-desc t-flex-col">
|
||||
<image class="t-zj-jp" :src="selectData.img" mode="aspectFit"></image>
|
||||
<view class="t-zj-jp-desc">
|
||||
@@ -84,9 +84,13 @@
|
||||
freeNumDay: 0,
|
||||
list: [],
|
||||
selectData: "",
|
||||
source:1
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(opt) {
|
||||
if (opt.source) {
|
||||
this.source = opt.source
|
||||
}
|
||||
this.getRedPack();
|
||||
this.getCount();
|
||||
this.getPrizeList();
|
||||
@@ -105,7 +109,7 @@
|
||||
async onClick() {
|
||||
if (this.luckDrawTimes) {
|
||||
const res = await discSpinningdraw({
|
||||
source: 1
|
||||
source: this.source
|
||||
});
|
||||
let indexs = -1
|
||||
this.list.forEach((ele, index) => {
|
||||
@@ -121,7 +125,7 @@
|
||||
// 抽奖次数
|
||||
async getCount() {
|
||||
const res = await drawCount({
|
||||
source: 1
|
||||
source: this.source
|
||||
});
|
||||
this.luckDrawTimes = res.count || 0;
|
||||
this.freeNumDay = res.sum || 0;
|
||||
@@ -134,7 +138,7 @@
|
||||
// 获取奖品列表
|
||||
async getPrizeList() {
|
||||
const res = await selectDiscSpinning({
|
||||
source: 1
|
||||
source: this.source
|
||||
});
|
||||
res.records.forEach(res => {
|
||||
res.img = res.url
|
||||
@@ -216,7 +220,7 @@
|
||||
background-repeat: no-repeat;
|
||||
margin: 0rpx auto;
|
||||
position: relative;
|
||||
background-image:url('./luck/BJ.png')
|
||||
background-image: url('./luck/BJ.png')
|
||||
}
|
||||
|
||||
.t-zp {
|
||||
|
||||
Reference in New Issue
Block a user