|
@@ -711,17 +711,15 @@ export default {
|
|
|
this.informId = option.informId
|
|
|
this.clickOfficial()
|
|
|
}
|
|
|
- if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
|
|
|
- return;
|
|
|
- }
|
|
|
- this.courseCourseList();
|
|
|
+
|
|
|
this.$store.getters.dictObj;
|
|
|
},
|
|
|
onShow() {
|
|
|
- console.log('onShowonShowonShowonShow')
|
|
|
- if (this.courseId) {
|
|
|
- this.originOnShow()
|
|
|
+ if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
|
|
|
+ return;
|
|
|
}
|
|
|
+ console.log('onShowonShowonShowonShow', this.courseId,)
|
|
|
+ this.courseCourseList();
|
|
|
|
|
|
},
|
|
|
onUnload() {
|
|
@@ -756,10 +754,6 @@ export default {
|
|
|
// websocket.sendMsg("delAction");
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log('mountedmountedmounted')
|
|
|
- if (this.courseId) {
|
|
|
- this.originMounted()
|
|
|
- }
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations(["updateChapterOpen","updateLiveLast"]),
|
|
@@ -776,6 +770,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
courseCourseList() {
|
|
|
+ console.log('ahhhhhhhhhhhhh')
|
|
|
// /course/courseList查询商品下的课程列表
|
|
|
this.$api.courseCourseList({
|
|
|
pageNum: 1,
|
|
@@ -787,7 +782,6 @@ export default {
|
|
|
if (res.data.code == 200) {
|
|
|
this.courseList.push.apply(this.courseList, res.data.rows)
|
|
|
this.courseTotal = res.data.total || 0
|
|
|
- console.log("total", res.data.rows.length)
|
|
|
if (res.data.rows.length) {
|
|
|
this.courseBusiness(res.data.rows[0].businessId)
|
|
|
}
|
|
@@ -834,7 +828,7 @@ export default {
|
|
|
},
|
|
|
// 原来onshow里面的内容
|
|
|
originOnShow() {
|
|
|
- console.log('originOnShow')
|
|
|
+ console.log('原来onshow里面的originOnShow')
|
|
|
if(this.isOther) {
|
|
|
this.showMark = true;
|
|
|
return;
|
|
@@ -2300,7 +2294,6 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
} else {
|
|
|
- console.log("无需压缩");
|
|
|
const waitUpload = await self.uploadFile(self.avatarUrl, 0);
|
|
|
resolve(waitUpload);
|
|
|
}
|
|
@@ -2678,7 +2671,6 @@ export default {
|
|
|
},
|
|
|
getMenuList() {
|
|
|
let self = this;
|
|
|
- console.log('-------------------------------------')
|
|
|
// /course/menuList 查询课程目录结构列表
|
|
|
this.$api
|
|
|
.reMenuList({ courseId: this.courseId, gradeId: this.gradeId,orderGoodsId: this.orderGoodsId, })
|
|
@@ -2692,7 +2684,7 @@ export default {
|
|
|
item.menuType = item.type;
|
|
|
}
|
|
|
self.menuList = res.data.rows;
|
|
|
-console.log('======menuList', this.menuList)
|
|
|
+ console.log('======menuList', this.menuList)
|
|
|
this.reStart = true
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
if (res.data.rows[i].type == 1) {
|