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