From 89ed79828f0e29adb893395cd0eecd79b17d2b96 Mon Sep 17 00:00:00 2001 From: "dong.ai" Date: Sun, 14 Sep 2025 21:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=B3=E8=BD=AC=E8=AF=A6?= =?UTF-8?q?=E6=83=852?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Index.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/Index.vue b/src/views/Index.vue index 30f105e2..6090bccd 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -1505,26 +1505,27 @@ export default { //二期调整,直接改成一个地址 //return this.webBaseUrl + '/course/detail?id=' + item.id; let $this = this; + let cId = ""; if (item.id) { - id = item.id; + cId = item.id; } else { - id = item.courseId; + cId = item.courseId; } 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=" + cId); } else if (item.type == 20) { - apiCourseStudy.hasSignup(item.id).then((rs) => { + apiCourseStudy.hasSignup(cId).then((rs) => { if (rs.status == 200) { - //return $this.webBaseUrl + "/course/studyindex?id=" + item.id; - this.$router.push("/course/studyindex?id=" + item.id); + //return $this.webBaseUrl + "/course/studyindex?id=" + cId; + this.$router.push("/course/studyindex?id=" + cId); } else { - //return $this.webBaseUrl + "/course/detail?id=" + item.id; - this.$router.push("/course/detail?id=" + item.id); + //return $this.webBaseUrl + "/course/detail?id=" + cId; + this.$router.push("/course/detail?id=" + cId); } }); - //return $this.webBaseUrl + "/course/detail?id=" + item.id; + //return $this.webBaseUrl + "/course/detail?id=" + cId; } }, orderTypeFilter(val) {