Commit afb8ff07 by 李伟康

Merge branch 'SAAS+V4.55.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.55.0

2 parents ace522a7 043a9d97
......@@ -74,13 +74,6 @@ export default {
isYb: false, // 当前驻店人员所关联的门店是否是延保业务
}
},
created () {
// 监听自定义事件
uni.$on('backStudyCenter', () => {
console.log('backStudyCenter')
this.$refs.myTask.getCourseTaskPage(0)
})
},
mounted() {
const beisenToken = uni.$storage.get('beisenToken')
const studyCenterPermission = uni.$storage.get('studyCenterPermission')
......
......@@ -111,10 +111,17 @@ export default {
total: options.total
}
this.selectedIndex = options.index;
if (options.courseList) this.courseList = JSON.parse(decodeURIComponent(options.courseList));
if (options.recommendCourseList) this.recommendCourseList = JSON.parse(decodeURIComponent(options.recommendCourseList));
let courseId = null;
if (options.courseList) {
this.courseList = JSON.parse(decodeURIComponent(options.courseList));
courseId = this.courseList[options.index].courseId;
}
if (options.recommendCourseList) {
this.recommendCourseList = JSON.parse(decodeURIComponent(options.recommendCourseList));
courseId = this.recommendCourseList[options.index].courseId;
}
console.log(this.recommendCourseList, 'this.recommendCourseList')
this.handleOperation('17983a1a-5bcd-4e7d-a180-061ef3f9a49d');
this.handleOperation(courseId);
// 只在页面初始化时设置webview的样式
this.setWebviewStyle();
},
......
......@@ -152,6 +152,7 @@ export default {
},
backPage() {
uni.navigateBack();
uni.$emit('backStudyCenter')
},
async getLongCourseDetail(id) {
const res = await uni.$api.commonApi.getLongCourseDetail({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!