增加转盘抽奖跳转
This commit is contained in:
parent
6a5a96558c
commit
8029d157b6
|
|
@ -110,3 +110,12 @@ export function goldPay(data){
|
|||
}}
|
||||
})
|
||||
}
|
||||
|
||||
//获取转盘抽奖次数
|
||||
export function getDrawCount(data){
|
||||
return http.request({
|
||||
url: 'discSpinning/drawCount',
|
||||
method:'GET',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue