增加支付跳转盘抽奖

This commit is contained in:
2025-01-13 17:37:51 +08:00
parent 8029d157b6
commit f410719b46
4 changed files with 42 additions and 35 deletions

View File

@@ -73,9 +73,13 @@
await init()
refVideoList.value.videoListUpdata()
const drawRes=await Api.getDrawCount()
if(drawRes.count>0){
console.log(drawRes);
const nobuyCourseId=uni.getStorageSync('nobuyCourseId')
const item=state.list.find(v=>v.courseId==nobuyCourseId)
uni.clearStorageSync('nobuyCourseId')
if(drawRes.count*1>0&&nobuyCourseId!==null&&nobuyCourseId!==undefined&&item.videoUrl){
uni.navigateTo({
url:'pages/me/prizeDraw'
url:'/pages/me/prizeDraw'
})
}
}