|
@@ -33,7 +33,7 @@
|
|
|
<view v-else-if="user.currentGold < luckDraw.purchaseTimesGold" @click="toTaskList()">
|
|
|
做任务赚抽奖
|
|
|
</view>
|
|
|
- <view v-else @click="showPayWin('win_1')">
|
|
|
+ <view v-else @click="handleDrawStart">
|
|
|
支付{{luckDraw.purchaseTimesGold||''}}乐豆继续抽奖 >
|
|
|
</view>
|
|
|
</view>
|
|
@@ -326,17 +326,19 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
}else{
|
|
|
- this.nodata = '活动已结束'
|
|
|
- uni.showModal({
|
|
|
- showCancel: false,
|
|
|
- title: '活动已结束',
|
|
|
- success() {
|
|
|
- _this.$store.state.vuex_noLogin = true
|
|
|
- uni.reLaunch({
|
|
|
- url: '/pages/index/index'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ this.nodata = this.scene == 1154 ? '请前往小程序使用完整服务':'活动已结束'
|
|
|
+ if(this.scene != 1154){
|
|
|
+ uni.showModal({
|
|
|
+ showCancel: false,
|
|
|
+ title: '活动已结束',
|
|
|
+ success() {
|
|
|
+ _this.$store.state.vuex_noLogin = true
|
|
|
+ uni.reLaunch({
|
|
|
+ url: '/pages/index/index'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -401,6 +403,7 @@ export default {
|
|
|
this.toLogin()
|
|
|
return
|
|
|
}
|
|
|
+ console.log(this.isSocktOut)
|
|
|
// 正在抽奖中
|
|
|
if(this.isSocktOut){
|
|
|
return
|
|
@@ -423,11 +426,12 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- this.isSocktOut = true
|
|
|
this.getTakeOut()
|
|
|
},
|
|
|
getTakeOut(){
|
|
|
let list = [...this.prizeList];
|
|
|
+ // 防止重复点击
|
|
|
+ this.isSocktOut = true
|
|
|
takeOut({id: this.luckDraw.luckyDrawNo}).then(res => {
|
|
|
if(res.status == 200){
|
|
|
console.log(res)
|
|
@@ -535,6 +539,7 @@ export default {
|
|
|
// 打开任务列表
|
|
|
toTaskList(){
|
|
|
this.showTask = true
|
|
|
+ this.showLottery = false
|
|
|
},
|
|
|
// 做任务
|
|
|
toDoTask(taskCode){
|