抽奖次数修改,视频详情修改

This commit is contained in:
GaoHao
2024-12-09 17:50:49 +08:00
parent 9bb1b060e3
commit afa4afbab6
5 changed files with 27 additions and 21 deletions

View File

@@ -531,7 +531,7 @@
}
},
lingquClose(){
this.getCount()
// this.getCount()
this.getRedPack()
},
showLingPop(data){

View File

@@ -552,7 +552,6 @@
},
//播放进度变化回掉
timeupdate(e) {
if (e.detail.currentTime > e.detail.duration*0.9) {
if ( this.playFlag) {
this.playFlag = false
@@ -568,6 +567,7 @@
},
appear(e, index) {
this.courseDetailsId = e
this.current = index
this.showControls = true
this.isShowVideo = e
@@ -586,10 +586,15 @@
this.videoContext.stop();
this.videoContext = null;
}
let numIdCurr = this.videoList[index-1].courseDetailsId;
if (this.videoList[index-1].videoUrl) { //已经购买可直接播放
if ( this.current > index) {
index = index+1
} else {
index = index-1
}
let numIdCurr = this.videoList[index].courseDetailsId;
if (this.videoList[index].videoUrl) { //已经购买可直接播放
// 播放时记录当前播放的id
this.appear(numIdCurr,index-1)
this.appear(numIdCurr,index)
this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this.videoContextId, this);
console.log('走更新了')
@@ -1234,18 +1239,19 @@
this.goListPosition(this.videoList[indexs].courseDetailsId)
}
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex)
if(this.noBuyVideoIndex!==null){
uni.navigateTo({
url:'/me/choujiang/choujiang'
})
}
if (this.videoList[indexss].videoUrl) { //有播放权限
let numIdCurr = this.videoList[indexss].courseDetailsId;
this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this
.videoContextId,
this);
if(this.noBuyVideoIndex!=null){
if(this.noBuyVideoIndex!=null&&this.videoList[this.noBuyVideoIndex].videoUrl){
this.videoContext.stop();
uni.navigateTo({
url:'/me/choujiang/choujiang'
})
this.noBuyVideoIndex=null
}else{
this.videoContext.play();

View File

@@ -352,7 +352,7 @@
zongPrice: 0, //整部价格
countPrice: 0, //单集价格
wallCurr: 0,
wallet: [],
wallet: [],·
productId: '', //默认苹果内购商品ID
productIds: ['sixzuan', 'shierzuan'], //苹果内购商品
openLists: [],