解锁后播放失败优化
This commit is contained in:
parent
54910d3330
commit
6f3f205a28
|
|
@ -1121,7 +1121,7 @@
|
||||||
httpsRequest.postT("/app/order/payOrders", {
|
httpsRequest.postT("/app/order/payOrders", {
|
||||||
orderId: orderId,
|
orderId: orderId,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log("orderIds==" + res)
|
console.log("orderIds==", res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -1393,8 +1393,12 @@
|
||||||
this.videoContext = uni.createVideoContext(this
|
this.videoContext = uni.createVideoContext(this
|
||||||
.videoContextId,
|
.videoContextId,
|
||||||
this);
|
this);
|
||||||
console.log(this.videoContext);
|
if (this.videoList[this.current].videoUrl) {
|
||||||
this.videoContext.play();
|
this.videoContext.play();
|
||||||
|
}else {
|
||||||
|
console.log("播放失败")
|
||||||
|
this.getDataList(this.courseId, courseDetailsIds, true);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue