From 8c605fb25b0a4b546afd8a36c183eeb8897dc9bb Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Mon, 7 Apr 2025 17:15:05 +0800
Subject: [PATCH] =?UTF-8?q?feat(student):=20=E5=AD=A6=E5=91=98=E4=BD=93?=
=?UTF-8?q?=E6=B5=8B=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增学员体测列表 API 接口
- 实现学员体测列表页面,包括数据加载和分页功能- 优化学员首页,添加体测列表跳转入口
---
api/member.js | 8 +
pages/student/index/index.vue | 8 +-
pages/student/index/physical_examination.vue | 159 +++++++++++++++----
3 files changed, 143 insertions(+), 32 deletions(-)
diff --git a/api/member.js b/api/member.js
index 3703fc7..50b30a0 100644
--- a/api/member.js
+++ b/api/member.js
@@ -93,6 +93,14 @@ export default {
})
},
+ //学员-体测列表
+ surveyList(data) {
+ let url = '/member/survey_list'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
+
//提交作业
assignmentsSubmit(data) {
let url = '/member/assignments_submit'
diff --git a/pages/student/index/index.vue b/pages/student/index/index.vue
index 6886887..ec4ae94 100644
--- a/pages/student/index/index.vue
+++ b/pages/student/index/index.vue
@@ -46,7 +46,7 @@
- 更多
+ 更多
@@ -246,9 +246,11 @@
url: '/pages/student/index/work_details'
})
},
- physical_examination(){
+ //跳转体测列表
+ physical_examination(e){
+ let students_id = e.students_id
uni.navigateTo({
- url: '/pages/student/index/physical_examination'
+ url: `/pages/student/index/physical_examination?students_id=${students_id}`
})
},
//跳转作业列表页
diff --git a/pages/student/index/physical_examination.vue b/pages/student/index/physical_examination.vue
index 6aef917..ed96bc3 100644
--- a/pages/student/index/physical_examination.vue
+++ b/pages/student/index/physical_examination.vue
@@ -1,46 +1,138 @@
+
- 2021年03月12日
-
-
-
-
-
-
- 90
- 综合评分
-
-
-
-
- 身高 (CM)
- 123
-
-
- 体重 (KG)
- 45
-
-
-
-
-
-
- 教练寄语教练寄语教练寄语教练寄语教练寄语教练寄语教练寄教练寄语教练寄语教练寄语教练寄语教练寄语教练教练寄语教练寄语教练寄语教练寄语练教练语教练寄教练寄语教练寄语教练寄语教练寄语教练寄语教练
-
- 详细数据信息
-
+
+
+
+
+ {{$util.formatToDateTime(v.create_time, 'Y-m-d')}}
+
+
+
+
+
+ {{v.score}}
+ 综合评分
+
+
+
+
+ 身高 (CM)
+ {{(v.height * 100)}}
+
+
+ 体重 (KG)
+ {{v.weight}}
+
+
+
+
+
+
+ {{v.content}}
+
+ 详细数据信息
+
+
+
+
@@ -52,6 +144,15 @@
background-color: #29d3b4;
}
+ .table_list{
+ padding-bottom: 40rpx;
+ display: flex;
+ flex-direction: column;
+ .item{
+ margin-bottom: 40rpx;
+ }
+ }
+
.date {
color: #fff;
width: 92%;