增加转盘抽奖跳转
This commit is contained in:
@@ -109,4 +109,13 @@ export function goldPay(data){
|
|||||||
'content-type':'application/x-www-form-urlencoded'
|
'content-type':'application/x-www-form-urlencoded'
|
||||||
}}
|
}}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取转盘抽奖次数
|
||||||
|
export function getDrawCount(data){
|
||||||
|
return http.request({
|
||||||
|
url: 'discSpinning/drawCount',
|
||||||
|
method:'GET',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
@@ -72,6 +72,12 @@
|
|||||||
if(!isFirstLoad){
|
if(!isFirstLoad){
|
||||||
await init()
|
await init()
|
||||||
refVideoList.value.videoListUpdata()
|
refVideoList.value.videoListUpdata()
|
||||||
|
const drawRes=await Api.getDrawCount()
|
||||||
|
if(drawRes.count>0){
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'pages/me/prizeDraw'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user