From 8ee9e3384fb8901fe8d74888ad0ccef68f782e30 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Mon, 14 Apr 2025 15:18:52 +0800
Subject: [PATCH] =?UTF-8?q?feat(coach):=20=E6=B7=BB=E5=8A=A0=E5=AD=A6?=
=?UTF-8?q?=E7=94=9F=E4=BD=93=E6=B5=8B=E6=8A=A5=E5=91=8A=E8=AF=A6=E6=83=85?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在 member.js 中新增 jlSurveyInfo 方法获取评测详情
- 修改 student/info.vue 中的 openViewPhysicalExamination 方法,传递 survey_id 参数
- 重构 physical_examination.vue 页面,展示具体的评测信息
---
api/member.js | 10 +++++
pages/coach/student/info.vue | 3 +-
pages/coach/student/physical_examination.vue | 41 +++++++++++++++++---
3 files changed, 47 insertions(+), 7 deletions(-)
diff --git a/api/member.js b/api/member.js
index e8867b3..9cdddb0 100644
--- a/api/member.js
+++ b/api/member.js
@@ -218,6 +218,16 @@ export default {
})
},
+ //教练端-评测详情
+ jlSurveyInfo(data = {}) {
+ let url = '/member/survey_info'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
+
+
+
diff --git a/pages/coach/student/info.vue b/pages/coach/student/info.vue
index 69bfaae..77fc433 100644
--- a/pages/coach/student/info.vue
+++ b/pages/coach/student/info.vue
@@ -292,8 +292,9 @@ export default {
//打开体测报告
openViewPhysicalExamination(item){
+ let survey_id = item.id
uni.navigateTo({
- url: '/pages/coach/student/physical_examination'
+ url: `/pages/coach/student/physical_examination?survey_id=${survey_id}`
})
},
diff --git a/pages/coach/student/physical_examination.vue b/pages/coach/student/physical_examination.vue
index 270c1e1..4b1ade4 100644
--- a/pages/coach/student/physical_examination.vue
+++ b/pages/coach/student/physical_examination.vue
@@ -1,47 +1,76 @@
- 2021年03月12日
+ {{$util.formatToDateTime(surveyInfo.create_time,'Y-m-d')}}
- 90
+ {{surveyInfo.score}}
综合评分
身高 (CM)
- 123
+ {{surveyInfo.height}}
体重 (KG)
- 45
+ {{surveyInfo.weight}}
- 教练寄语教练寄语教练寄语教练寄语教练寄语教练寄语教练寄教练寄语教练寄语教练寄语教练寄语教练寄语教练教练寄语教练寄语教练寄语教练寄语练教练语教练寄教练寄语教练寄语教练寄语教练寄语教练寄语教练
+ {{surveyInfo.content}}
- 详细数据信息
+