修改支付跳转逻辑

This commit is contained in:
YeMingfei666 2024-12-09 10:49:44 +08:00
parent c63deab9f8
commit 0041214912
2 changed files with 3 additions and 17 deletions

View File

@ -1105,13 +1105,6 @@
this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this.videoContextId, this);
console.log('走更新了')
if(this.noBuyVideoIndex!==null ){
this.noBuyVideoIndex=null;
this.videoContext.stop()
return uni.navigateTo({
url:'/me/choujiang/choujiang'
})
}
this.$nextTick(() => {
//播放当前的
@ -1193,7 +1186,7 @@
this.noBuyVideoIndex=null
this.videoContext.stop()
return uni.navigateTo({
url:'/me/choujiang/choujiang?orderId'+2144
url:'/me/choujiang/choujiang'
})
}
} else { //直接跳转进来的
@ -1206,13 +1199,6 @@
this.$nextTick(() => {
let indexss = indexs > 0 ? indexs : 0
if (this.videoList[indexss].videoUrl) { //有播放权限
if(this.noBuyVideoIndex!==null){
this.noBuyVideoIndex=null
this.videoContext.stop()
return uni.navigateTo({
url:'/me/choujiang/choujiang'
})
}
let numIdCurr = this.videoList[indexss].courseDetailsId;
this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this

View File

@ -1456,10 +1456,10 @@
}
})
})
if(this.noBuyVideoIndex!==null&&this.noBuyVideoIndex==indexss){
if(this.noBuyVideoIndex!==null){
this.noBuyVideoIndex=null
return uni.navigateTo({
url:'/me/choujiang/choujiang?orderId'+2144
url:'/me/choujiang/choujiang'
})
}
} else { //