修复h5没有抽奖次数跳抽奖问题

This commit is contained in:
YeMingfei666 2024-12-26 14:40:24 +08:00
parent 27a7af2005
commit 52edbfc424
1 changed files with 12 additions and 4 deletions

View File

@ -1570,11 +1570,19 @@
}
})
})
if (this.noBuyVideoIndex !== null) {
this.noBuyVideoIndex = null
return uni.navigateTo({
url: '/me/choujiang/choujiang'
if (this.noBuyVideoIndex !== null && this.noBuyVideoIndex !==
undefined && this.noBuyVideoIndex !== '') {
console.log('获取转盘抽奖次数')
this.$Request.getT('app/discSpinning/drawCount').then(res => {
console.log('转盘抽奖次数', res.count)
if (res.count >= 1) {
uni.navigateTo({
url: '/me/choujiang/choujiang'
})
} else {}
})
uni.removeStorageSync('noBuyVideoIndex')
this.noBuyVideoIndex = null
}
} else { //