From 168a7bf6cc76005d1ae6cac75bb1b1e4a314f4a0 Mon Sep 17 00:00:00 2001 From: LLL <15374889135@163.com> Date: Thu, 5 Jun 2025 18:24:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/apiRoute.js | 35 +- pages/coach/class/info.vue | 1208 +++++++++--------- pages/coach/course/info_list.vue | 20 +- pages/coach/student/info.vue | 45 +- pages/coach/student/physical_examination.vue | 54 +- 5 files changed, 723 insertions(+), 639 deletions(-) diff --git a/api/apiRoute.js b/api/apiRoute.js index 5f0f4a2..5d08e2e 100644 --- a/api/apiRoute.js +++ b/api/apiRoute.js @@ -143,13 +143,27 @@ export default { //↓↓↓↓↓↓↓↓↓↓↓↓-----教练接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓ - - - - - - - + //体测报告-详情 + physicalTestInfo(data = {}) { + let url = '/class/physicalTest/info' + return http.get(url, data).then(res => { + return res; + }) + }, + //体测报告-列表 + physicalTest(data = {}) { + let url = '/class/physicalTest' + return http.get(url, data).then(res => { + return res; + }) + }, + //获取学员详情 + jlStudentsInfo(data = {}) { + let url = '/class/jlStudentsInfo' + return http.get(url, data).then(res => { + return res; + }) + }, //获取添加学员列表 addStudentList(data = {}) { let url = '/course/addStudentList' @@ -190,6 +204,13 @@ export default { return res; }) }, + //获取班级课程列表 + classCourseList(data = {}) { + let url = '/course/classCourseList' + return http.get(url, data).then(res => { + return res; + }) + }, //获取课程详情 courseInfo(data = {}) { let url = '/course/courseInfo' diff --git a/pages/coach/class/info.vue b/pages/coach/class/info.vue index 27a0e9d..d130daf 100644 --- a/pages/coach/class/info.vue +++ b/pages/coach/class/info.vue @@ -1,602 +1,638 @@ \ No newline at end of file diff --git a/pages/coach/course/info_list.vue b/pages/coach/course/info_list.vue index 56a325c..43886a4 100644 --- a/pages/coach/course/info_list.vue +++ b/pages/coach/course/info_list.vue @@ -11,11 +11,11 @@ 添加学员 - 上课中 + 上课中 - 已结束 + 已结束 - 未开始 + 未开始 @@ -189,6 +189,20 @@ async init() { this.getCourseInfo() }, + + isNowBetween(start_date, end_date) { + const now = new Date(); + const start = new Date(start_date); + const end = new Date(end_date); + + return now >= start && now <= end; + }, + + isCourseFuture(courseDate) { + const courseTime = new Date(courseDate).getTime(); + const nowTime = new Date().getTime(); + return courseTime > nowTime; + }, //教练端-课程详情 async getCourseInfo() { diff --git a/pages/coach/student/info.vue b/pages/coach/student/info.vue index 904152f..d8e314b 100644 --- a/pages/coach/student/info.vue +++ b/pages/coach/student/info.vue @@ -10,23 +10,24 @@ - - + + {{studentsInfo.name}} - {{studentsInfo.age}}岁 + + {{studentsInfo.customerResources.age}}岁 - 电话:{{studentsInfo.phone}} + 电话:{{studentsInfo.customerResources.phone_number}} @@ -111,10 +112,10 @@ :key="k" @click="openViewPhysicalExamination(v)" > - 综合评分:{{v.score}} + 综合评分:{{v.calculateChildHealthScore}} - 测试时间:{{v.create_time}} + 测试时间:{{$util.formatToDateTime(v.created_at, 'Y-m-d')}} @@ -133,7 +134,7 @@