|
@@ -18,8 +18,13 @@
|
|
|
:canvasMargin="canvasData.margin"
|
|
|
/>
|
|
|
<view class="synums">
|
|
|
- 抽奖剩余次数:
|
|
|
- <text>{{ reTimes }}</text>
|
|
|
+ <view v-if="reTimes">
|
|
|
+ 抽奖剩余次数:
|
|
|
+ <text>{{ reTimes }}</text>
|
|
|
+ </view>
|
|
|
+ <view v-else @click="showPayWin">
|
|
|
+ 支付10乐豆继续抽奖 >
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 获奖人员滚动列表 -->
|
|
@@ -74,7 +79,7 @@
|
|
|
<view class="lottery-title">
|
|
|
<image src="../../static/nozj.png"></image>
|
|
|
</view>
|
|
|
- <view class="lottery-confrim-btn">
|
|
|
+ <view @click="showLottery=false" class="lottery-confrim-btn">
|
|
|
继续抽奖
|
|
|
</view>
|
|
|
</view>
|
|
@@ -91,7 +96,7 @@
|
|
|
<image v-if="targetPrize.prizeImage" :src="targetPrize.prizeImage"></image>
|
|
|
<view>{{targetPrize.name}}</view>
|
|
|
</view>
|
|
|
- <view class="lottery-confrim-btn">
|
|
|
+ <view @click="viewMyJp" class="lottery-confrim-btn">
|
|
|
去领取
|
|
|
</view>
|
|
|
</view>
|
|
@@ -99,7 +104,7 @@
|
|
|
<view class="lottery-title">
|
|
|
很抱歉,您来晚了,当前奖品已无库存
|
|
|
</view>
|
|
|
- <view class="lottery-confrim-btn">
|
|
|
+ <view @click="showLottery=false" class="lottery-confrim-btn">
|
|
|
继续抽奖
|
|
|
</view>
|
|
|
</view>
|
|
@@ -275,16 +280,20 @@ export default {
|
|
|
getPrizeSetting(){
|
|
|
this.reTimes = 3
|
|
|
},
|
|
|
+ // 抽奖次数用完了
|
|
|
+ showPayWin(){
|
|
|
+ this.showLottery = true
|
|
|
+ this.winTypes = 'win_1'
|
|
|
+ this.prizeIndex = -1
|
|
|
+ clearCacheFile()
|
|
|
+ },
|
|
|
// 本次抽奖开始
|
|
|
handleDrawStart() {
|
|
|
this.targetName = '';
|
|
|
this.targetPrize = null;
|
|
|
- console.log(this.reTimes)
|
|
|
// 抽奖次数用完了
|
|
|
if(this.reTimes<=0){
|
|
|
- this.showLottery = true
|
|
|
- this.winTypes = 'win_1'
|
|
|
- this.prizeIndex = -1
|
|
|
+ this.showPayWin()
|
|
|
return
|
|
|
}
|
|
|
let list = [...this.prizeList];
|
|
@@ -341,6 +350,10 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.showLottery = true
|
|
|
+ if(this.reTimes == 0){
|
|
|
+ this.prizeIndex = -1
|
|
|
+ }
|
|
|
+ console.log(this.reTimes)
|
|
|
console.log(this.targetName);
|
|
|
},
|
|
|
// 抽奖转盘绘制完成
|
|
@@ -387,6 +400,7 @@ export default {
|
|
|
},
|
|
|
// 我的奖品
|
|
|
viewMyJp(){
|
|
|
+ this.showLottery=false
|
|
|
uni.navigateTo({
|
|
|
url: '/pagesA/luckDraw/myJp'
|
|
|
})
|