mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
跳转id
This commit is contained in:
@@ -289,15 +289,16 @@ export default {
|
|||||||
this.gratefulVisible = false
|
this.gratefulVisible = false
|
||||||
},
|
},
|
||||||
toCourseDetail(item) {
|
toCourseDetail(item) {
|
||||||
|
console.log(item);
|
||||||
if (item.type == 10) {
|
if (item.type == 10) {
|
||||||
//console.log("直接进入学习页面");
|
//console.log("直接进入学习页面");
|
||||||
this.$router.push("/course/studyindex?id=" + item.id);
|
this.$router.push("/course/studyindex?id=" + item.courseId);
|
||||||
} else if (item.type == 20) {
|
} else if (item.type == 20) {
|
||||||
apiCourseStudy.hasSignup(item.id).then((rs) => {
|
apiCourseStudy.hasSignup(item.courseId).then((rs) => {
|
||||||
if (rs.status == 200) {
|
if (rs.status == 200) {
|
||||||
this.$router.push("/course/studyindex?id=" + item.id);
|
this.$router.push("/course/studyindex?id=" + item.courseId);
|
||||||
} else {
|
} else {
|
||||||
this.$router.push("/course/detail?id=" + item.id);
|
this.$router.push("/course/detail?id=" + item.courseId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,15 +116,15 @@ export default {
|
|||||||
if (item.type == 10) {
|
if (item.type == 10) {
|
||||||
//return this.webBaseUrl + "/course/studyindex?id=" + item.id;
|
//return this.webBaseUrl + "/course/studyindex?id=" + item.id;
|
||||||
//console.log("直接进入学习页面");
|
//console.log("直接进入学习页面");
|
||||||
this.$router.push("/course/studyindex?id=" + item.id);
|
this.$router.push("/course/studyindex?id=" + item.courseId);
|
||||||
} else if (item.type == 20) {
|
} else if (item.type == 20) {
|
||||||
apiCourseStudy.hasSignup(item.id).then((rs) => {
|
apiCourseStudy.hasSignup(item.courseId).then((rs) => {
|
||||||
if (rs.status == 200) {
|
if (rs.status == 200) {
|
||||||
//return $this.webBaseUrl + "/course/studyindex?id=" + item.id;
|
//return $this.webBaseUrl + "/course/studyindex?id=" + item.id;
|
||||||
this.$router.push("/course/studyindex?id=" + item.id);
|
this.$router.push("/course/studyindex?id=" + item.courseId);
|
||||||
} else {
|
} else {
|
||||||
//return $this.webBaseUrl + "/course/detail?id=" + item.id;
|
//return $this.webBaseUrl + "/course/detail?id=" + item.id;
|
||||||
this.$router.push("/course/detail?id=" + item.id);
|
this.$router.push("/course/detail?id=" + item.courseId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//return $this.webBaseUrl + "/course/detail?id=" + item.id;
|
//return $this.webBaseUrl + "/course/detail?id=" + item.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user