From 3e0b8272772deebc9a8375d967b431dcdcc83aa5 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Wed, 12 Mar 2025 18:25:24 +0800
Subject: [PATCH 1/5] =?UTF-8?q?feat(coach):=20=E6=9B=B4=E6=96=B0=E6=95=99?=
=?UTF-8?q?=E7=BB=83=E7=AB=AF=E7=8F=AD=E7=BA=A7=E4=BF=A1=E6=81=AF=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修改用户类型存储为1
- 添加最近课程、班级成员和作业任务等功能模块- 优化页面布局和样式
---
pages/coach/class/info.vue | 592 +++++++++++++++++++++++++++++++++----
1 file changed, 536 insertions(+), 56 deletions(-)
diff --git a/pages/coach/class/info.vue b/pages/coach/class/info.vue
index 6066e86..a38d729 100644
--- a/pages/coach/class/info.vue
+++ b/pages/coach/class/info.vue
@@ -34,6 +34,349 @@
+
+
+
+ 最近课程
+
+
+
+
+ 篮球少儿课
+
+
+ 2020.05.30 15:30 - 17:30
+
+
+
+
+ 篮球少儿课
+
+
+ 2020.05.30 15:30 - 17:30
+
+
+
+
+
+
+
+
+ 班级成员(30)
+
+
+ 作业任务
+
+
+
+
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 34
+
+
+
+
+
+ 完成率:80%
+
+
+
+
+ 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 发布时间:2021.05.25
+ 详情
+
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 34
+
+
+
+
+
+ 完成率:80%
+
+
+
+
+ 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 发布时间:2021.05.25
+ 详情
+
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 34
+
+
+
+
+
+ 完成率:80%
+
+
+
+
+ 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 发布时间:2021.05.25
+ 详情
+
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 34
+
+
+
+
+
+ 完成率:80%
+
+
+
+
+ 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 发布时间:2021.05.25
+ 详情
+
+
+
+
+
@@ -109,90 +452,223 @@ export default {
color: #FFFFFF;
.section_1 {
- border-radius: 10rpx;
- background-color: #525252;
- ::v-deep .fui-input__wrap{
- border-radius: 10rpx !important;
- background-color: #525252 !important;
+ background: #333333;
+ border-radius: 16rpx;
+ padding: 34rpx 64rpx;
+ display: flex;
+ align-items: center;
+ gap: 38rpx;
+ .left{
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 12rpx;
+ .pic{
+ width: 92rpx;
+ height: 92rpx;
+ border-radius: 50%;
+ }
}
- ::v-deep .fui-input__background{
- background-color: #525252 !important;
+ .right{
+ display: flex;
+ flex-direction: column;
+ gap: 12rpx;
+ .item {}
}
- .input_item {
- height: 60rpx;
- ::v-deep .uni-input-wrapper{
- .uni-input-placeholder {
- font-size: 28rpx !important;
-
- }
+ }
+ .section_2{
+ margin-top: 42rpx;
+ .title_box{
+ font-size: 32rpx;
+ }
+ .tag_list{
+ margin-top: 26rpx;
+ display: flex;
+ align-items: center;
+ gap: 26rpx;
+ .item{
+ padding-left: 20rpx;
+ width: 330rpx;
+ height: 162rpx;
+ border: 1px solid #00e5bb;
+ border-radius: 10rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ gap: 10rpx;
}
}
- ::v-deep .uni-input-input {
- color: #fff;
+ }
+
+ //按钮切换
+ .section_3{
+ margin-top: 54rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ .btn_box{
+ border: 1px solid #d7d7d7;
+ border-radius: 25rpx;
+ width: 500rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ overflow: hidden;
+ .btn{
+ width: 250rpx;
+ height: 76rpx;
+ line-height: 76rpx;
+ text-align: center;
+ color: #7F7F7F;
+ font-size: 26rpx;
+ }
+ .select{
+ color: #29D3B4;
+ background-color: #fff;
+ }
}
+
}
- .section_2{
- margin-top: 34rpx;
+ //班级成员列表
+ .section_4{
+ margin-top: 40rpx;
.ul{
display: flex;
flex-direction: column;
- gap: 24rpx;
+ gap: 10rpx;
.li{
- background: #404045;
- padding: 50rpx 36rpx 46rpx;
- border-radius: 16rpx;
+ padding: 20rpx 0;
+ padding-bottom: 40rpx;
+ border-bottom: 2px solid #D7D7D7;
display: flex;
- gap: 32rpx;
+ justify-content: space-between;
.left{
- .pic{
- border-radius: 50%;
- width: 92rpx;
- height: 92rpx;
- }
- }
- .right{
display: flex;
- flex-direction: column;
- gap: 28rpx;
+ align-items: center;
+ gap: 30rpx;
.box_1{
+ padding-left: 20rpx;
display: flex;
+ flex-direction: column;
align-items: center;
- gap: 36rpx;
+ justify-content: center;
+ position: relative;
+ .pic{
+ width: 84rpx;
+ height: 84rpx;
+ border-radius: 50%;
+ }
+ .tag_box{
+ position: absolute;
+ bottom: -30rpx;
+ width: 120rpx;
+ height: 38rpx;
+ background-color: #F59A23;
+ border-radius: 4rpx;
+ line-height: 35rpx;
+ text-align: center;
+ font-size: 20rpx;
+ }
+ }
+ .box_2{
+ display: flex;
+ flex-direction: column;
+ gap: 20rpx;
.name{
font-size: 28rpx;
}
- .btn_box{
- view{
- border: 1px solid #FAD04D;
- border-radius: 10rpx;
- width: 182rpx;
- height: 48rpx;
- line-height: 42rpx;
- text-align: center;
- font-size: 26rpx;
- color: #FAD04D;
- }
+ .date{
+ font-size: 24rpx;
+ }
+ }
+ }
+ .right{
+ display: flex;
+ align-items: center;
+ gap: 14rpx;
+ .item{
+ border: 1px solid #00E5BB;
+ border-radius: 10rpx;
+ width: 102rpx;
+ display: flex;
+ flex-direction: column;
+ view{
+ text-align: center;
+ height: 50rpx;
+ line-height: 50rpx;
+ }
+ view:nth-child(1){
+ font-size: 32rpx;
+ background-color: #fff;
+ color: #00e5bb;
+ }
+ view:nth-child(2){
+ font-size: 20rpx;
+ background-color: #00e5bb;
+ }
+ }
+ }
+ }
+ }
+
+ }
+
+ .section_5{
+ .ul{
+ .li{
+ padding-top: 32rpx;
+ padding-bottom: 36rpx;
+ border-bottom: 2px solid #D7D7D7;
+ display: flex;
+ justify-content: space-between;
+ .left{
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 12rpx;
+ .box_1{
+ .custom_content{
+ font-size: 32rpx;
+ color: #AAAAAA;
}
}
+ .box_2{
+ color: #AAAAAA;
+ font-size: 26rpx;
+ }
+ }
+ .right{
+ width: 510rpx;
+ display: flex;
+ flex-direction: column;
+ gap: 16rpx;
+ .box_1{
+ color: #fff;
+ font-size: 28rpx;
+ }
.box_2{
display: flex;
align-items: center;
- gap: 44rpx;
- .user_list{
- display: flex;
- align-items: center;
- gap: 14rpx;
- image{
- border-radius: 50%;
- width: 48rpx;
- height: 48rpx;
- }
+ justify-content: space-between;
+ .date{
+ color: #AAAAAAFF;
+ font-size: 24rpx;
+ text-align: right;
+ }
+ .btn{
+ width: 120rpx;
+ height: 48rpx;
+ line-height: 40rpx;
+ border-radius: 8rpx;
+ background-color: #FFFFFF00;
+ color: #FAD04DFF;
+ font-size: 26rpx;
+ text-align: center;
+ border: 2rpx solid #FAD04DFF;
}
- .num{}
}
-
}
}
}
@@ -200,6 +676,10 @@ export default {
+
+
+
+
}
From 2b12cdf9b512f4d2510dfa39b415d1e405d87d03 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Wed, 12 Mar 2025 18:37:43 +0800
Subject: [PATCH 2/5] =?UTF-8?q?feat(coach):=20=E6=B7=BB=E5=8A=A0=E5=AD=A6?=
=?UTF-8?q?=E5=91=98=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=B9=B6=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E7=8F=AD=E7=BA=A7=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增学员详情页面,路径为/pages/coach/student/info
- 在班级信息页面添加课程详情和学员详情的跳转功能
- 优化班级成员列表的展示样式,增加点击事件
- 添加作业任务列表展示功能
---
pages.json | 13 +
pages/coach/class/info.vue | 16 +-
pages/coach/student/info.vue | 686 +++++++++++++++++++++++++++++++++++
3 files changed, 707 insertions(+), 8 deletions(-)
create mode 100644 pages/coach/student/info.vue
diff --git a/pages.json b/pages.json
index 737dc00..1efb958 100644
--- a/pages.json
+++ b/pages.json
@@ -132,7 +132,20 @@
"navigationBarBackgroundColor": "#292929",
"navigationBarTextStyle": "white"
}
+ },
+ {
+ "path": "pages/coach/student/info",
+ "style": {
+ "navigationBarTitleText": "学员详情",
+ "navigationStyle": "default",
+ "navigationBarBackgroundColor": "#29d3b4",
+ "navigationBarTextStyle": "white"
+ }
}
+
+
+
+
],
"globalStyle": {
"navigationBarTextStyle": "white",
diff --git a/pages/coach/class/info.vue b/pages/coach/class/info.vue
index a38d729..581e1f7 100644
--- a/pages/coach/class/info.vue
+++ b/pages/coach/class/info.vue
@@ -40,7 +40,7 @@
最近课程
-
+
篮球少儿课
@@ -48,7 +48,7 @@
2020.05.30 15:30 - 17:30
-
+
篮球少儿课
@@ -73,7 +73,7 @@
-
+
@@ -97,7 +97,7 @@
-
+
@@ -121,7 +121,7 @@
-
+
@@ -145,7 +145,7 @@
-
+
@@ -169,7 +169,7 @@
-
+
@@ -193,7 +193,7 @@
-
+
diff --git a/pages/coach/student/info.vue b/pages/coach/student/info.vue
new file mode 100644
index 0000000..f8116d2
--- /dev/null
+++ b/pages/coach/student/info.vue
@@ -0,0 +1,686 @@
+
+
+
+
+
+ 学员详情
+
+
+
+
+
+
+ 包皮子
+
+
+
+ 班级:少年班
+
+
+
+ 地点:XXXX体育馆 302室
+
+
+
+ 课程:篮球少儿课
+
+
+
+ 人数:30人
+
+
+
+ 时间:2020.05:25 15:30 - 17:30
+
+
+
+
+
+
+ 最近课程
+
+
+
+
+ 篮球少儿课
+
+
+ 2020.05.30 15:30 - 17:30
+
+
+
+
+ 篮球少儿课
+
+
+ 2020.05.30 15:30 - 17:30
+
+
+
+
+
+
+
+
+ 班级成员(30)
+
+
+ 作业任务
+
+
+
+
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+
+
+
+
+ 黄明明
+ 课程截止时间:2020.05:25
+
+
+
+
+ 24
+ 已上课时
+
+
+ 24
+ 剩余课时
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 34
+
+
+
+
+
+ 完成率:80%
+
+
+
+
+ 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 发布时间:2021.05.25
+ 详情
+
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 34
+
+
+
+
+
+ 完成率:80%
+
+
+
+
+ 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 发布时间:2021.05.25
+ 详情
+
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 34
+
+
+
+
+
+ 完成率:80%
+
+
+
+
+ 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 发布时间:2021.05.25
+ 详情
+
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 34
+
+
+
+
+
+ 完成率:80%
+
+
+
+
+ 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 发布时间:2021.05.25
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From a892c14cbbc135624fa945dfd7663c36a8db6a6a Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Wed, 12 Mar 2025 19:53:14 +0800
Subject: [PATCH 3/5] =?UTF-8?q?refactor(coach):=20=E9=87=8D=E6=9E=84?=
=?UTF-8?q?=E5=AD=A6=E5=91=98=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=B8=83?=
=?UTF-8?q?=E5=B1=80=E5=92=8C=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 更新了学员信息和课程信息的展示方式
- 重新设计了出勤记录和体测报告的界面
- 优化了页面的整体布局和颜色搭配
- 移除了冗余的代码和不必要的注释
---
pages/coach/student/info.vue | 831 ++++++++++++++---------------------
1 file changed, 322 insertions(+), 509 deletions(-)
diff --git a/pages/coach/student/info.vue b/pages/coach/student/info.vue
index f8116d2..2563100 100644
--- a/pages/coach/student/info.vue
+++ b/pages/coach/student/info.vue
@@ -2,381 +2,170 @@
-
- 学员详情
+
+
+
+
+
+
+
+
+
+
+ 即将到期
+
+
+
+
+ 黄明明
+
+ 13岁
+
+
+
+ 家长姓名:黄大呢
+
+
+ 家长电话:18888888888
+
+
+
-
-
-
-
- 包皮子
-
-
+
+
+
+
- 班级:少年班
+ 篮球少儿课程
- 地点:XXXX体育馆 302室
+
+ 包子皮
- 课程:篮球少儿课
+ 截止时间:2020.05:25
- 人数:30人
+ 已上课时:24
+ 剩余课时:24
-
- 时间:2020.05:25 15:30 - 17:30
+
+ 出勤高
-
-
-
-
- 最近课程
-
-
-
-
- 篮球少儿课
-
-
- 2020.05.30 15:30 - 17:30
-
-
-
-
- 篮球少儿课
-
-
- 2020.05.30 15:30 - 17:30
-
+
+ 延课一周
+
+
+
-
-
-
- 班级成员(30)
-
-
- 作业任务
-
+
+
+
+
+ 出勤记录
+ 体侧报告
-
-
-
-
-
-
-
-
-
- 即将到期
-
+
+
+
+
+ 篮球少儿课
+ 上课时间:2020.05.30 15:30 - 17:30
-
- 黄明明
- 课程截止时间:2020.05:25
+
+ 作业完成
+ 作业未提交
-
-
- 24
- 已上课时
+
+
+ 篮球少儿课
+ 上课时间:2020.05.30 15:30 - 17:30
-
- 24
- 剩余课时
+
+ 作业完成
+ 作业未提交
-
-
-
-
-
-
- 即将到期
-
-
-
- 黄明明
- 课程截止时间:2020.05:25
-
-
-
-
- 24
- 已上课时
-
-
- 24
- 剩余课时
-
-
-
-
-
-
-
-
- 即将到期
-
-
-
- 黄明明
- 课程截止时间:2020.05:25
-
-
-
-
- 24
- 已上课时
-
-
- 24
- 剩余课时
-
-
-
-
-
-
-
-
- 即将到期
-
-
-
- 黄明明
- 课程截止时间:2020.05:25
-
-
-
-
- 24
- 已上课时
-
-
- 24
- 剩余课时
-
-
-
-
-
-
-
-
- 即将到期
-
-
-
- 黄明明
- 课程截止时间:2020.05:25
-
-
-
-
- 24
- 已上课时
-
-
- 24
- 剩余课时
-
-
-
-
-
-
-
-
-
-
-
-
- 黄明明
- 课程截止时间:2020.05:25
-
-
-
-
- 24
- 已上课时
-
-
- 24
- 剩余课时
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 12
- /
- 34
-
-
-
-
-
- 完成率:80%
-
-
-
-
- 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
+
+
+ 篮球少儿课
+ 上课时间:2020.05.30 15:30 - 17:30
-
- 发布时间:2021.05.25
- 详情
+
+ 作业完成
+ 作业未提交
-
-
-
-
-
-
-
-
- 12
- /
- 34
-
-
-
-
-
- 完成率:80%
+
+
+ 篮球少儿课
+ 上课时间:2020.05.30 15:30 - 17:30
+
+
+ 作业完成
+ 作业未提交
+
+
+
+
+
+
+
+
+
+
+
+ 综合评分:96
+ 打败了99%学员
+ 测试时间:2020.05.30
-
-
- 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
-
-
- 发布时间:2021.05.25
- 详情
+
+
+ 综合评分:96
+ 打败了99%学员
+ 测试时间:2020.05.30
-
-
-
-
-
-
-
-
- 12
- /
- 34
-
-
-
-
-
- 完成率:80%
+
+
+ 综合评分:96
+ 打败了99%学员
+ 测试时间:2020.05.30
-
-
- 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
-
-
- 发布时间:2021.05.25
- 详情
+
+
+ 综合评分:96
+ 打败了99%学员
+ 测试时间:2020.05.30
-
-
-
-
-
-
-
-
- 12
- /
- 34
-
-
-
-
-
- 完成率:80%
-
-
-
-
- 任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容任务内容
-
-
- 发布时间:2021.05.25
- 详情
+
+
+ 综合评分:96
+ 打败了99%学员
+ 测试时间:2020.05.30
+
+
+
+
@@ -397,6 +186,7 @@ export default {
return {
formData:{},
tabType:'1',//1=班级成员,2=作业任务
+ Atype:1,//1=作业完成,2=作业未提交
}
},
onLoad() {
@@ -427,6 +217,7 @@ export default {
.main_box{
background: #292929 ;
+ min-height: 100vh;
}
//自定义导航栏
@@ -442,243 +233,265 @@ export default {
}
}
-.main_section{
- min-height: 100vh;
- background: #292929 100%;
- padding: 0 24rpx;
- padding-top: 40rpx;
- padding-bottom: 150rpx;
- font-size: 24rpx;
- color: #FFFFFF;
-
- .section_1 {
- background: #333333;
- border-radius: 16rpx;
- padding: 34rpx 64rpx;
+//学员信息
+.user_section {
+ background-color: #29D3B4;
+ padding-top: 58rpx;
+ padding-bottom: 42rpx;
+ .box{
display: flex;
+ justify-content: center;
align-items: center;
- gap: 38rpx;
+ gap: 15rpx;
.left{
+ position: relative;
display: flex;
flex-direction: column;
align-items: center;
- gap: 12rpx;
+ width: 120rpx;
.pic{
width: 92rpx;
height: 92rpx;
border-radius: 50%;
}
+ .btn_box{
+ position: absolute;
+ bottom: -18rpx;
+ .btn{
+ width: 120rpx;
+ height: 38rpx;
+ line-height: 40rpx;
+ border-radius: 4rpx;
+ background-color: rgba(245,154,35,1);
+ color: rgba(255,255,255,1);
+ font-size: 20rpx;
+ text-align: center;
+ border: 0rpx solid rgba(121,121,121,1);
+ }
+ }
+
}
.right{
display: flex;
flex-direction: column;
- gap: 12rpx;
- .item {}
+ gap: 18rpx;
+ .item{
+ color: #fff;
+ display: flex;
+ align-items: center;
+ .name{
+ font-size: 28rpx;
+ }
+ .age{
+ margin-left: 20rpx;
+ width: 128rpx;
+ height: 42rpx;
+ line-height: 42rpx;
+ border-radius: 34rpx;
+ background-color: rgba(255,255,255,1);
+ color: rgba(51,51,51,1);
+ font-size: 28rpx;
+ text-align: center;
+ }
+ }
}
}
+}
- .section_2{
- margin-top: 42rpx;
- .title_box{
- font-size: 32rpx;
- }
- .tag_list{
- margin-top: 26rpx;
+//课程信息
+.course_section{
+ position: relative;
+ .main{
+ position: relative;
+ z-index: 2;
+ padding: 0 24rpx;
+ display: flex;
+ justify-content: center;
+ .course_box{
+ padding: 42rpx 28rpx;
+ width: 692rpx;
+ border-radius: 20rpx;
+ background-color: #fff;
display: flex;
- align-items: center;
- gap: 26rpx;
- .item{
- padding-left: 20rpx;
- width: 330rpx;
- height: 162rpx;
- border: 1px solid #00e5bb;
- border-radius: 10rpx;
+ flex-direction: column;
+ gap: 20rpx;
+ position: relative;
+ .item {
display: flex;
- flex-direction: column;
- justify-content: center;
- gap: 10rpx;
+ align-items: center;
+ gap: 22rpx;
+ .title {
+ font-size: 28rpx;
+ color: #333333;
+ }
+
+ .pic {
+ width: 58rpx;
+ height: 58rpx;
+ border-radius: 50%;
+ }
+
+ .name {
+ color: #333333;
+ font-size: 24rpx;
+ }
+
+ .content {
+ color: #AAAAAA;
+ font-size: 24rpx;
+ }
}
- }
+ .tag{
+ position: absolute;
+ right: 0;
+ top: 0;
+ width: 110rpx;
+ height: 60rpx;
+ line-height: 60rpx;
+ border-radius: 0rpx 24rpx 0rpx 24rpx;
+ background-color: rgba(236,128,141,1);
+ color: rgba(255,255,255,1);
+ font-size: 24rpx;
+ text-align: center;
+ }
+ .btn{
+ position: absolute;
+ right: 30rpx;
+ bottom: 50rpx;
+ width: 130rpx;
+ height: 48rpx;
+ line-height: 48rpx;
+ border-radius: 10rpx;
+ background-color: rgba(41,211,180,0);
+ color: rgba(50,219,224,1);
+ font-size: 24rpx;
+ text-align: center;
+ font-family: -regular;
+ border: 2rpx solid rgba(50,219,224,1);
+ }
+ }
+}
+ .bg_box{
+ z-index: 1;
+ width: 100%;
+ height: 150rpx;
+ }
+
+ .bg_top{
+ position: absolute;
+ top: 0;
+ background-color: #29D3B4;
}
+ .bg_bottom{
+ top: 50%;
+ position: absolute;
+ background-color: #292929;
+ }
+}
+
+.main_section{
+ background: #292929 100%;
+ padding: 0 24rpx;
+ padding-top: 40rpx;
+ padding-bottom: 150rpx;
+ font-size: 24rpx;
+ color: #333333;
- //按钮切换
- .section_3{
- margin-top: 54rpx;
+ .section_box {
+ background: #fff;
+ border-radius: 16rpx;
+ padding: 34rpx 24rpx;
display: flex;
- justify-content: center;
+ flex-direction: column;
align-items: center;
- .btn_box{
- border: 1px solid #d7d7d7;
- border-radius: 25rpx;
- width: 500rpx;
+ gap: 38rpx;
+ .tag_box{
+ width: 100%;
display: flex;
justify-content: center;
align-items: center;
- overflow: hidden;
- .btn{
- width: 250rpx;
- height: 76rpx;
- line-height: 76rpx;
- text-align: center;
- color: #7F7F7F;
- font-size: 26rpx;
+ gap: 112rpx;
+ .item{
+ width: 112rpx;
+ font-size: 28rpx;
}
.select{
color: #29D3B4;
- background-color: #fff;
}
}
- }
-
- //班级成员列表
- .section_4{
- margin-top: 40rpx;
- .ul{
- display: flex;
- flex-direction: column;
- gap: 10rpx;
- .li{
- padding: 20rpx 0;
- padding-bottom: 40rpx;
- border-bottom: 2px solid #D7D7D7;
+ //出勤记录
+ .section_1{
+ width: 100%;
+ .ul{
display: flex;
- justify-content: space-between;
- .left{
+ flex-direction: column;
+ gap: 12rpx;
+ .li{
+ padding: 30rpx 20rpx;
+ border: 1px solid #29D3B4;
+ border-radius: 18rpx;
+ background-color: rgba(41,211,180,0.16);
+ font-size: 26rpx;
display: flex;
+ justify-content: space-between;
align-items: center;
- gap: 30rpx;
- .box_1{
- padding-left: 20rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- position: relative;
- .pic{
- width: 84rpx;
- height: 84rpx;
- border-radius: 50%;
- }
- .tag_box{
- position: absolute;
- bottom: -30rpx;
- width: 120rpx;
- height: 38rpx;
- background-color: #F59A23;
- border-radius: 4rpx;
- line-height: 35rpx;
- text-align: center;
- font-size: 20rpx;
- }
- }
- .box_2{
+ .left{
display: flex;
flex-direction: column;
- gap: 20rpx;
- .name{
- font-size: 28rpx;
- }
- .date{
- font-size: 24rpx;
- }
+ gap: 15rpx;
}
- }
- .right{
- display: flex;
- align-items: center;
- gap: 14rpx;
- .item{
- border: 1px solid #00E5BB;
- border-radius: 10rpx;
- width: 102rpx;
- display: flex;
- flex-direction: column;
- view{
- text-align: center;
- height: 50rpx;
- line-height: 50rpx;
- }
- view:nth-child(1){
- font-size: 32rpx;
- background-color: #fff;
- color: #00e5bb;
- }
- view:nth-child(2){
+ .right{
+ .btn{
+ width: 110rpx;
+ height: 44rpx;
+ line-height: 44rpx;
+ border-radius: 8rpx;
+ background-color: rgba(41,211,180,1);
+ color: rgba(255,255,255,1);
font-size: 20rpx;
- background-color: #00e5bb;
+ text-align: center;
}
}
}
}
}
-
- }
-
- .section_5{
- .ul{
- .li{
- padding-top: 32rpx;
- padding-bottom: 36rpx;
- border-bottom: 2px solid #D7D7D7;
+ //体测报告
+ .section_2{
+ width: 100%;
+ .ul{
display: flex;
- justify-content: space-between;
- .left{
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 12rpx;
- .box_1{
- .custom_content{
- font-size: 32rpx;
- color: #AAAAAA;
- }
- }
- .box_2{
- color: #AAAAAA;
- font-size: 26rpx;
- }
- }
- .right{
- width: 510rpx;
+ flex-direction: column;
+ gap: 12rpx;
+ .li{
+ padding: 30rpx 20rpx;
+ border: 1px solid #29D3B4;
+ border-radius: 18rpx;
+ background-color: rgba(41,211,180,0.16);
+ font-size: 26rpx;
display: flex;
flex-direction: column;
- gap: 16rpx;
- .box_1{
- color: #fff;
- font-size: 28rpx;
- }
- .box_2{
+ gap: 20rpx;
+ .top{
display: flex;
align-items: center;
- justify-content: space-between;
- .date{
- color: #AAAAAAFF;
- font-size: 24rpx;
- text-align: right;
+ gap: 40rpx;
+ .title{
+ font-size: 34rpx;
}
- .btn{
- width: 120rpx;
- height: 48rpx;
- line-height: 40rpx;
- border-radius: 8rpx;
- background-color: #FFFFFF00;
- color: #FAD04DFF;
- font-size: 26rpx;
- text-align: center;
- border: 2rpx solid #FAD04DFF;
+ .hint{
+ color: #F59A23;
+ font-size: 24rpx;
}
}
+ .bottom{}
+
}
}
}
- }
-
-
-
-
+ }
}
From bea45d22e793a649aed75f6697b870c62ec82544 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Thu, 13 Mar 2025 10:00:38 +0800
Subject: [PATCH 4/5] =?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=95=B0=E6=8D=AE=E5=92=8C=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A=E4=BB=BB=E5=8A=A1=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增物理测试报告和作业任务详情页面组件
- 在 pages.json 中添加新页面的配置项
- 优化学生信息页面,添加体测和作业相关功能
---
pages.json | 18 +++
pages/coach/student/info.vue | 32 +++--
pages/coach/student/physical_examination.vue | 127 +++++++++++++++++++
pages/coach/student/work_details.vue | 68 ++++++++++
4 files changed, 236 insertions(+), 9 deletions(-)
create mode 100644 pages/coach/student/physical_examination.vue
create mode 100644 pages/coach/student/work_details.vue
diff --git a/pages.json b/pages.json
index 1efb958..b83e131 100644
--- a/pages.json
+++ b/pages.json
@@ -141,6 +141,24 @@
"navigationBarBackgroundColor": "#29d3b4",
"navigationBarTextStyle": "white"
}
+ },
+ {
+ "path": "pages/coach/student/work_details",
+ "style": {
+ "navigationBarTitleText": "作业任务",
+ "navigationStyle": "default",
+ "navigationBarBackgroundColor": "#29d3b4",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "pages/coach/student/physical_examination",
+ "style": {
+ "navigationBarTitleText": "体测数据",
+ "navigationStyle": "default",
+ "navigationBarBackgroundColor": "#29d3b4",
+ "navigationBarTextStyle": "white"
+ }
}
diff --git a/pages/coach/student/info.vue b/pages/coach/student/info.vue
index 2563100..4f41690 100644
--- a/pages/coach/student/info.vue
+++ b/pages/coach/student/info.vue
@@ -77,7 +77,7 @@
-
+
篮球少儿课
上课时间:2020.05.30 15:30 - 17:30
@@ -87,7 +87,7 @@
作业未提交
-
+
篮球少儿课
上课时间:2020.05.30 15:30 - 17:30
@@ -97,7 +97,7 @@
作业未提交
-
+
篮球少儿课
上课时间:2020.05.30 15:30 - 17:30
@@ -107,7 +107,7 @@
作业未提交
-
+
篮球少儿课
上课时间:2020.05.30 15:30 - 17:30
@@ -124,35 +124,35 @@
-
+
综合评分:96
打败了99%学员
测试时间:2020.05.30
-
+
综合评分:96
打败了99%学员
测试时间:2020.05.30
-
+
综合评分:96
打败了99%学员
测试时间:2020.05.30
-
+
综合评分:96
打败了99%学员
测试时间:2020.05.30
-
+
综合评分:96
打败了99%学员
@@ -209,6 +209,20 @@ export default {
url: '/pages/coach/student/info'
})
},
+
+ //打开体测报告
+ openViewPhysicalExamination(item){
+ uni.navigateTo({
+ url: '/pages/coach/student/physical_examination'
+ })
+ },
+
+ //打开作业任务
+ opebViewWorkDetails(item){
+ uni.navigateTo({
+ url: '/pages/coach/student/work_details'
+ })
+ },
}
}
diff --git a/pages/coach/student/physical_examination.vue b/pages/coach/student/physical_examination.vue
new file mode 100644
index 0000000..270c1e1
--- /dev/null
+++ b/pages/coach/student/physical_examination.vue
@@ -0,0 +1,127 @@
+
+
+
+ 2021年03月12日
+
+
+
+
+
+
+ 90
+ 综合评分
+
+
+
+
+ 身高 (CM)
+ 123
+
+
+ 体重 (KG)
+ 45
+
+
+
+
+
+
+ 教练寄语教练寄语教练寄语教练寄语教练寄语教练寄语教练寄教练寄语教练寄语教练寄语教练寄语教练寄语教练教练寄语教练寄语教练寄语教练寄语练教练语教练寄教练寄语教练寄语教练寄语教练寄语教练寄语教练
+
+ 详细数据信息
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/coach/student/work_details.vue b/pages/coach/student/work_details.vue
new file mode 100644
index 0000000..2071fbe
--- /dev/null
+++ b/pages/coach/student/work_details.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+ 智卓燕
+
+
+ 作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述作业描述
+
+
+
+
+
+
From ec08dfec707300419026df605196e0bb6f0ef861 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Thu, 13 Mar 2025 10:50:15 +0800
Subject: [PATCH 5/5] =?UTF-8?q?feat(coach):=20=E6=9B=B4=E6=96=B0=E6=95=99?=
=?UTF-8?q?=E7=BB=83=E7=AB=AF=E7=8F=AD=E7=BA=A7=E4=BF=A1=E6=81=AF=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修改用户类型存储为1
- 添加最近课程、班级成员和作业任务等功能模块- 优化页面布局和样式
---
pages.json | 9 ++
pages/coach/my/index.vue | 309 +++++++++++++++++++++++++++++++++++++++
2 files changed, 318 insertions(+)
create mode 100644 pages/coach/my/index.vue
diff --git a/pages.json b/pages.json
index b83e131..794c64d 100644
--- a/pages.json
+++ b/pages.json
@@ -159,6 +159,15 @@
"navigationBarBackgroundColor": "#29d3b4",
"navigationBarTextStyle": "white"
}
+ },
+ {
+ "path": "pages/coach/my/index",
+ "style": {
+ "navigationBarTitleText": "我的",
+ "navigationStyle": "custom",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTextStyle": "black"
+ }
}
diff --git a/pages/coach/my/index.vue b/pages/coach/my/index.vue
new file mode 100644
index 0000000..2f8836f
--- /dev/null
+++ b/pages/coach/my/index.vue
@@ -0,0 +1,309 @@
+
+
+
+
+
+ 我的
+
+
+
+
+
+
+
+
+ 包子皮
+
+
+ 切换身份
+ 到课率统计
+
+
+
+
+
+
+
+
+
+
+
+ 1234
+ 总授课数/节
+
+
+ 4
+ 总授班级/个
+
+
+ 1234
+ 总负责学员/名
+
+
+
+
+ 月授课数
+ 12
+ 节,月负责学员
+ 188
+ 名
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 我的体育场
+ xxx场馆
+
+
+
+ 即将到期
+
+
+
+
+ 授课统计
+
+
+
+
+
+
+
+ 意见反馈
+
+
+
+
+ 设置
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file