bug 回滚2

This commit is contained in:
GYJ
2025-01-05 11:43:21 +08:00
parent 63a432c07c
commit f98abcc079

View File

@@ -575,10 +575,8 @@ export default {
//播放时的回掉
videoPlay(videoId, courseDetailsId) {
console.log(courseDetailsId)
console.log(this.playFlag)
// this.courseDetailsId = courseDetailsId
if (!this.playFlag) {
this.getDataList(this.courseId, this.videoList[this.current].courseDetailsId, true);
this.playFlag = true
httpsRequest.getT('app/course/viewCourse', {
courseId: this.courseId,
@@ -608,7 +606,6 @@ export default {
},
appear(e, index) {
this.playFlag = false
this.courseDetailsId = e;
// 清除已经设置的定时器
clearTimeout(this.appearTimeout);
@@ -1059,8 +1056,7 @@ export default {
//单集解锁
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 //记录订单价格
@@ -1292,7 +1288,6 @@ export default {
};
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
if (res.code == 0) {
console.log(res)
if (res.data.listsDetail) {
this.info = res.data;
this.title = this.info.title;
@@ -1349,17 +1344,6 @@ export default {
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)
@@ -1441,8 +1425,7 @@ export default {
type: 1
};
console.log(data, '记录了')
httpsRequest.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {
})
httpsRequest.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
}
},
}
@@ -1569,6 +1552,11 @@ export default {
}
.popuppay {
width: 750rpx;
background-color: #ffffff;
@@ -1814,6 +1802,11 @@ export default {
}
.bs {
display: flex;
flex-direction: row;
@@ -2089,6 +2082,7 @@ export default {
}
.pay {
width: 750rpx;
align-items: center;