diff --git a/api/video/index.js b/api/video/index.js index 661a324..4bc7fd2 100644 --- a/api/video/index.js +++ b/api/video/index.js @@ -109,4 +109,13 @@ export function goldPay(data){ 'content-type':'application/x-www-form-urlencoded' }} }) +} + +//获取转盘抽奖次数 +export function getDrawCount(data){ + return http.request({ + url: 'discSpinning/drawCount', + method:'GET', + data + }) } \ No newline at end of file diff --git a/pages/video/detail.nvue b/pages/video/detail.nvue index a087f23..09f126e 100644 --- a/pages/video/detail.nvue +++ b/pages/video/detail.nvue @@ -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' + }) + } } })