|
@@ -106,7 +106,6 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
courseid: this.$route.query.courseid,
|
|
courseid: this.$route.query.courseid,
|
|
|
oid: '',
|
|
oid: '',
|
|
|
- routeType: this.$route.query.routeType,
|
|
|
|
|
courseDetail: {},
|
|
courseDetail: {},
|
|
|
chapInfo: {},
|
|
chapInfo: {},
|
|
|
chapList: [],
|
|
chapList: [],
|
|
@@ -148,6 +147,8 @@ export default {
|
|
|
this.courseDetail = res[0][0]
|
|
this.courseDetail = res[0][0]
|
|
|
this.chapInfo = JSON.parse(this.courseDetail.chapters)[this.courseType]
|
|
this.chapInfo = JSON.parse(this.courseDetail.chapters)[this.courseType]
|
|
|
this.chapList = JSON.parse(this.courseDetail.chapters)
|
|
this.chapList = JSON.parse(this.courseDetail.chapters)
|
|
|
|
|
+ console.log('this.courseDetail',this.chapList);
|
|
|
|
|
+
|
|
|
this.oid = res[0][0].organizeid
|
|
this.oid = res[0][0].organizeid
|
|
|
this.tcid = this.arrayToArray(
|
|
this.tcid = this.arrayToArray(
|
|
|
this.courseDetail.juri ? this.courseDetail.juri.split(',') : [],
|
|
this.courseDetail.juri ? this.courseDetail.juri.split(',') : [],
|
|
@@ -178,7 +179,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
back() {
|
|
back() {
|
|
|
// eslint-disable-next-line prettier/prettier
|
|
// eslint-disable-next-line prettier/prettier
|
|
|
- this.$router.push({ path: '/courseDetail', query: { courseid: this.courseid, routeType: this.routeType }})
|
|
|
|
|
|
|
+ this.$router.push({ path: '/courseDetail', query: { courseid: this.courseid }})
|
|
|
},
|
|
},
|
|
|
onRefresh() {
|
|
onRefresh() {
|
|
|
this.getCourse()
|
|
this.getCourse()
|