修改转盘

This commit is contained in:
2024-12-06 11:28:25 +08:00
parent fb9733d9eb
commit 8a340fabdd
14 changed files with 827 additions and 82 deletions

View File

@@ -314,6 +314,8 @@
},
data() {
return {
//记录未购买视频索引
noBuyVideoIndex:null,
//奖品列表
prizeList: [{
id: 'coupon88',
@@ -755,6 +757,7 @@
this.zongPrice = this.info.price
this.countPrice = this.videoList[this.current].price
this.showPay = true
this.noBuyVideoIndex=this.current
},
// 获取收藏状态
getMyLoveStatus() {
@@ -1419,6 +1422,12 @@
}
})
})
if(this.noBuyVideoIndex!==null&&this.noBuyVideoIndex==indexss){
this.noBuyVideoIndex=null
return uni.navigateTo({
url:'/me/choujiang/choujiang?orderId'+2144
})
}
} else { //直接跳转进来的
let indexs = -1
@@ -1502,6 +1511,13 @@
this.zongPrice = this.info.price
this.countPrice = this.videoList[this.current].price
this.showPay = true
this.noBuyVideoIndex=this.current
}else{
if(this.noBuyVideoIndex!==null&& this.current==this.noBuyVideoIndex){
uni.navigateTo({
url:'/me/choujaing/choujiang'
})
}
}
})
@@ -1654,6 +1670,7 @@
this.zongPrice = this.info.price
this.countPrice = this.videoList[this.current].price
this.showPay = true
this.noBuyVideoIndex=this.current
}
this.$nextTick(() => {
//插入历史记录
@@ -1694,6 +1711,7 @@
this.zongPrice = this.info.price
this.countPrice = this.videoList[this.current].price
this.showPay = true
this.noBuyVideoIndex=this.current
}
},
//播放时的回掉