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() {