This commit is contained in:
nisen
2023-09-04 19:38:44 +08:00
parent ce06d6204a
commit c14f36d1b4
2 changed files with 9 additions and 8 deletions

View File

@@ -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);
}
});
}