增加转盘抽奖跳转

This commit is contained in:
YeMingfei666 2025-01-13 16:56:37 +08:00
parent 6a5a96558c
commit 8029d157b6
2 changed files with 15 additions and 0 deletions

View File

@ -110,3 +110,12 @@ export function goldPay(data){
}}
})
}
//获取转盘抽奖次数
export function getDrawCount(data){
return http.request({
url: 'discSpinning/drawCount',
method:'GET',
data
})
}

View File

@ -72,6 +72,12 @@
if(!isFirstLoad){
await init()
refVideoList.value.videoListUpdata()
const drawRes=await Api.getDrawCount()
if(drawRes.count>0){
uni.navigateTo({
url:'pages/me/prizeDraw'
})
}
}
})
</script>