From 8029d157b62fd253b3ae947ca7ea0735e3ecc37c Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 13 Jan 2025 16:56:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BD=AC=E7=9B=98=E6=8A=BD?= =?UTF-8?q?=E5=A5=96=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/video/index.js | 9 +++++++++ pages/video/detail.nvue | 6 ++++++ 2 files changed, 15 insertions(+) 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' + }) + } } })