测试环境优化
This commit is contained in:
@@ -371,7 +371,7 @@
|
||||
num: 1, //当前播放的集数
|
||||
showPay: false, //购买视频的弹窗
|
||||
info: {}, //整部的信息
|
||||
courseDetailsId: '', //详情id
|
||||
courseDetailsId: null, //详情id
|
||||
scrollIntoView: '', //当前播放视频的位置
|
||||
scrollIntoViews: 'video0', //当前播放视频的位置
|
||||
isVips: '否', //是否显示会员
|
||||
@@ -536,10 +536,7 @@
|
||||
// 记录跳转过来的视频总id跟单集id
|
||||
if (e.id) {
|
||||
this.courseId = e.id;
|
||||
if (e.courseDetailsId && e.courseDetailsId != 'null') {
|
||||
this.courseDetailsId = e.courseDetailsId
|
||||
}
|
||||
console.log(this.courseDetailsId)
|
||||
|
||||
// this.getMyLoveStatus()
|
||||
this.getMoneyList()
|
||||
this.getMyMoney()
|
||||
@@ -548,9 +545,7 @@
|
||||
if (e.allId) {
|
||||
const arr = e.allId.split('-')
|
||||
this.courseId = arr[0];
|
||||
if (arr[1] && arr[1] != 'null') {
|
||||
this.courseDetailsId = arr[1]
|
||||
}
|
||||
|
||||
// this.getMyLoveStatus()
|
||||
this.getMoneyList()
|
||||
this.getMyMoney()
|
||||
@@ -1075,15 +1070,12 @@
|
||||
//单集解锁
|
||||
data.courseDetailsId = this.videoList[this.current].courseDetailsId
|
||||
}
|
||||
console.log(this.videoList[this.current].courseDetailsId)
|
||||
console.log((num && num == 10) ? '/app/order/insertCourseOrders/limit10' :
|
||||
'/app/order/insertCourseOrders')
|
||||
|
||||
httpsRequest.getT((num && num == 10) ? '/app/order/insertCourseOrders/limit10' :
|
||||
'/app/order/insertCourseOrders', data).then(res => {
|
||||
console.log(res)
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
|
||||
console.log(res.status && res.status == 1)
|
||||
if (res.status && res.status == 1) {
|
||||
this.showPay = false //关闭购买选择弹窗
|
||||
this.isOrder = true
|
||||
@@ -1321,6 +1313,7 @@
|
||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : ''
|
||||
};
|
||||
console.log("getDataList==="+courseDetailsId)
|
||||
console.log("getDataList===",data)
|
||||
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
|
||||
|
||||
if (res.code == 0) {
|
||||
@@ -1330,6 +1323,11 @@
|
||||
} else {
|
||||
this.isCollect = false
|
||||
}
|
||||
if( res.data && res.data.courseDetailsId && !this.courseDetailsId && !courseDetailsId) {
|
||||
this.courseDetailsId = res.data.courseDetailsId
|
||||
courseDetailsId = res.data.courseDetailsId
|
||||
}
|
||||
|
||||
if (res.data.listsDetail) {
|
||||
this.info = res.data;
|
||||
this.title = this.info.title;
|
||||
|
||||
Reference in New Issue
Block a user