修复金币解锁未自动播放问题
This commit is contained in:
@@ -1059,7 +1059,8 @@
|
||||
//单集解锁
|
||||
data.courseDetailsId = this.videoList[this.current].courseDetailsId
|
||||
}
|
||||
httpsRequest.getT((num && num == 10)?'/app/order/insertCourseOrders/limit10': '/app/order/insertCourseOrders', data).then(res => {
|
||||
httpsRequest.getT((num && num == 10) ? '/app/order/insertCourseOrders/limit10' :
|
||||
'/app/order/insertCourseOrders', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.ordersId = res.data.orders.ordersId //记录订单id
|
||||
this.payMoney = res.data.orders.payMoney //记录订单价格
|
||||
@@ -1348,6 +1349,17 @@
|
||||
this.videoContext.play();
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('播放')
|
||||
this.$nextTick(()=>{
|
||||
this.videoContextId = 'myVideo' + courseDetailsIds;
|
||||
this.videoContext = uni.createVideoContext(this
|
||||
.videoContextId,
|
||||
this);
|
||||
console.log(this.videoContext);
|
||||
this.videoContext.play();
|
||||
})
|
||||
|
||||
}
|
||||
// console.log('this.noBuyVideoIndex', this.noBuyVideoIndex)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user