From 0c0a30e85ac8c8ba1144871c8a64eb140a9f7207 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 16 Dec 2024 18:05:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9h5=E4=B8=BA=E6=9C=89=E6=8A=BD?= =?UTF-8?q?=E5=A5=96=E6=9C=BA=E4=BC=9A=E5=B0=B1=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- me/detail/detail.vue | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/me/detail/detail.vue b/me/detail/detail.vue index fb25cae..7fd4108 100644 --- a/me/detail/detail.vue +++ b/me/detail/detail.vue @@ -703,6 +703,7 @@ // #endif this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否' if (this.courseId) { + console.log('has this.courseId getDataList()'); this.getDataList(this.courseId, this.courseDetailsId); } this.$Request.getT('app/course/getRedEnvelopeTips').then(res => { @@ -1232,7 +1233,6 @@ // data.h5Url 跳转地址 this.showMoney = false //显示充值弹窗 uni.setStorageSync('noBuyVideoIndex', this.current) - this.noBuyVideoIndex = this.current // this.payOrder(this.ordersId, this.payMoney) // #ifdef APP uni.navigateTo({ @@ -1579,6 +1579,24 @@ } } + console.log('到达判断抽奖'); + // if (this.noBuyVideoIndex != null ) { + console.log(this.noBuyVideoIndex); + console.log(this.videoList); + if (this.noBuyVideoIndex !== null && this.noBuyVideoIndex !== + undefined && this.noBuyVideoIndex !== '' ) { + console.log('获取转盘抽奖次数') + this.$Request.getT('app/discSpinning/drawCount').then(res => { + console.log('转盘抽奖次数',res.count) + if (res.count >= 1) { + uni.navigateTo({ + url: '/me/choujiang/choujiang' + }) + } else {} + }) + uni.removeStorageSync('noBuyVideoIndex') + this.noBuyVideoIndex = null + } let numIdCurr = this.videoList[0].courseDetailsId this.videoContextId = 'myVideo' + numIdCurr this.$forceUpdate() @@ -1592,25 +1610,8 @@ this.countPrice = this.videoList[this.current].price this.showPay = true this.noBuyVideoIndex = this.current - } else { - console.log('到达判断抽奖'); - // if (this.noBuyVideoIndex != null ) { - console.log(this.noBuyVideoIndex); - if (this.noBuyVideoIndex !== null && this.noBuyVideoIndex !== - undefined && this.noBuyVideoIndex !== '' && this.videoList[this - .noBuyVideoIndex].videoUrl) { - this.$Request.getT('app/discSpinning/drawCount').then(res => { - console.log('转盘抽奖次数') - if (res.count >= 1) { - uni.navigateTo({ - url: '/me/choujiang/choujiang' - }) - } else {} - }) - uni.removeStorageSync('noBuyVideoIndex') - this.noBuyVideoIndex = null - } - } + } + })