From d4edbd321a01cf83c4fa10ce4b00e624b6775af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=97=AD?= <2405973191@qq.com> Date: Sun, 1 Sep 2024 22:27:35 +0800 Subject: [PATCH] 11 --- pages/index/Details.vue | 2 +- pages/index/bmPage.vue | 6 +++--- pages/index/courseInfo.vue | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/index/Details.vue b/pages/index/Details.vue index 306faaf..1e3ac58 100644 --- a/pages/index/Details.vue +++ b/pages/index/Details.vue @@ -373,7 +373,7 @@ url: "/drivingSchool/system/schoolCoach/list?deptId=" + id, method: 'get', }) - this.jlInfoList = res.rows + this.jlInfoList = res.data console.log("明星教练", this.jlInfoList) }, goNavigationClick(lat, lgt) { diff --git a/pages/index/bmPage.vue b/pages/index/bmPage.vue index 2da01ce..97d3d22 100644 --- a/pages/index/bmPage.vue +++ b/pages/index/bmPage.vue @@ -254,7 +254,7 @@ async getListAll() { this.columnjl = [] let res = await request({ - url: '/drivingSchool/applet/schoolCoach/ListAll?deptId=' + this.jxId, + url: '/drivingSchool/applet/schoolCoach/listAll?deptId=' + this.jxId, method: 'get', }) @@ -461,7 +461,7 @@ url: '/drivingSchool/system/driveSchoolCourse/list?id=' + this.courseId, method: 'get', }) - this.rightInfoList = res.rows[0], + this.rightInfoList = res.data.records[0], console.log("报名班类型", this.rightInfoList) }, async xxgetRightInfoList() { @@ -470,7 +470,7 @@ this.id, method: 'get', }) - this.rightInfoList = res.rows[0], + this.rightInfoList = res.data.records[0], console.log("报名班类型", this.rightInfoList) }, // 上传 diff --git a/pages/index/courseInfo.vue b/pages/index/courseInfo.vue index 9b229f9..4337a16 100644 --- a/pages/index/courseInfo.vue +++ b/pages/index/courseInfo.vue @@ -135,8 +135,9 @@ let res = await request({ url: `/drivingSchool/system/driveSchoolCourse/list?id=` + this.courseId, }) - this.content = res.rows[0].describ, - this.kcInfo = res.rows[0], + console.log("138:",res); + this.content = res.data.records[0].describ, + this.kcInfo = res.data.records[0], console.log("课程详情", this.kcInfo) }, goBmPage() {