|
@@ -237,7 +237,7 @@ export default {
|
|
|
Verify.init();
|
|
Verify.init();
|
|
|
this.id = option.id
|
|
this.id = option.id
|
|
|
this.$api.courseInfo(option.id).then(res => {
|
|
this.$api.courseInfo(option.id).then(res => {
|
|
|
- this.queryData = res.data.data;
|
|
|
|
|
|
|
+ this.pageData = res.data.data;
|
|
|
this.getTeacher(res.data.data.teacherIds);
|
|
this.getTeacher(res.data.data.teacherIds);
|
|
|
});
|
|
});
|
|
|
this.getChapter(this.id);
|
|
this.getChapter(this.id);
|
|
@@ -347,7 +347,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
if (this.collecStatus) {
|
|
if (this.collecStatus) {
|
|
|
- this.$api.coursecollectPD(this.queryData.courseId).then(results => {
|
|
|
|
|
|
|
+ this.$api.coursecollectPD(self.id).then(results => {
|
|
|
self.$api.deletecoursecollect(results.data.data.collectCourseId).then(resz => {
|
|
self.$api.deletecoursecollect(results.data.data.collectCourseId).then(resz => {
|
|
|
self.favoritesStatus();
|
|
self.favoritesStatus();
|
|
|
});
|
|
});
|
|
@@ -355,7 +355,7 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
var data = {
|
|
var data = {
|
|
|
userId: this.$store.state.userInfo.userId,
|
|
userId: this.$store.state.userInfo.userId,
|
|
|
- courseId: this.queryData.courseId
|
|
|
|
|
|
|
+ courseId: self.id
|
|
|
};
|
|
};
|
|
|
this.$api.coursecollect(data).then(res => {
|
|
this.$api.coursecollect(data).then(res => {
|
|
|
self.favoritesStatus();
|
|
self.favoritesStatus();
|