|
@@ -766,7 +766,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- console.log('index:--onLoad')
|
|
|
this.courseId = Number(option.id) || '';
|
|
|
this.goodsId = Number(option.goodsId);
|
|
|
this.orderGoodsId = Number(option.orderGoodsId) || '';
|
|
@@ -782,22 +781,16 @@ export default {
|
|
|
|
|
|
this.$store.getters.dictObj;
|
|
|
},
|
|
|
- onReady() {
|
|
|
- console.log('index:--onReady')
|
|
|
- },
|
|
|
onShow() {
|
|
|
- console.log('index:--onShow')
|
|
|
if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
|
|
|
return;
|
|
|
}
|
|
|
this.courseCourseList();
|
|
|
},
|
|
|
onUnload() {
|
|
|
- console.log('index:--onUnload')
|
|
|
this.originUnload()
|
|
|
},
|
|
|
onHide() {
|
|
|
- console.log('index:--onHide')
|
|
|
this.originUnload()
|
|
|
},
|
|
|
mounted() {
|
|
@@ -866,6 +859,7 @@ export default {
|
|
|
* 获取业务层次详情
|
|
|
*/
|
|
|
courseBusiness(businessId) {
|
|
|
+ // '/app/common/course/business/'+data,
|
|
|
this.$api.courseBusiness(businessId).then((res) => {
|
|
|
this.businessData = res.data.data
|
|
|
});
|
|
@@ -1571,6 +1565,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
studyRecordMenuAllList() {
|
|
|
+ // study/record/menuAllList
|
|
|
this.$api.studyRecordMenuAllList({
|
|
|
courseId:this.courseId,
|
|
|
gradeId:this.gradeId,
|
|
@@ -2569,7 +2564,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
onStateChange(newstate, oldstate) {
|
|
|
- console.log('视频的开始播放事件', newstate.detail.newstate, this.needSeek)
|
|
|
+ // console.log('视频的开始播放事件', newstate.detail.newstate, this.needSeek)
|
|
|
if (newstate.detail.newstate == "playing") {
|
|
|
if (this.needSeek) {
|
|
|
var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
@@ -2788,6 +2783,7 @@ export default {
|
|
|
},
|
|
|
getGoodsDetail() {
|
|
|
let self = this;
|
|
|
+ // '/goods/'+ data,
|
|
|
this.$api.goodsDetail(this.goodsId).then((res) => {
|
|
|
this.goodsData = res.data.data;
|
|
|
if(self.goodsData.buyNote) {
|
|
@@ -2843,6 +2839,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getReMenuList() {
|
|
|
+ console.log('重修的目录');
|
|
|
let self = this;
|
|
|
this.$api
|
|
|
.reMenuList({
|
|
@@ -2860,6 +2857,7 @@ export default {
|
|
|
item.name = item.menuName;
|
|
|
}
|
|
|
self.reMenuList = res.data.rows;
|
|
|
+ console.log('reMenuList:' , this.reMenuList);
|
|
|
if (self.reMenuList.length > 0) {
|
|
|
this.showNotes = false;
|
|
|
self.list = [
|
|
@@ -2899,6 +2897,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getMenuList() {
|
|
|
+ console.log('menuList的目录');
|
|
|
let self = this;
|
|
|
// /course/menuList 查询课程目录结构列表
|
|
|
this.$api
|
|
@@ -2923,11 +2922,13 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ console.log('menuList: ---', this.menuList, 'menuIndex:', this.menuIndex);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
courseDetail() {
|
|
|
let self = this;
|
|
|
+ // '/course/'+data,
|
|
|
this.$api.courseDetail(this.courseId).then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
// if (res.data.data.educationName == "继续教育") {
|