From ac7010def8049299f504440a90520cb5a9a0cad5 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Tue, 11 Mar 2025 17:10:37 +0800
Subject: [PATCH] =?UTF-8?q?feat(coach):=20=E6=B7=BB=E5=8A=A0=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A=E5=8F=91=E5=B8=83=E5=92=8C=E5=88=97=E8=A1=A8=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增发布作业页面,包含班级、课程选择和作业内容输入功能
- 新增作业列表页面,展示作业信息和完成率
- 在教练首页添加作业批改入口,可跳转到作业列表页面
- 优化
---
pages.json | 18 +++
pages/coach/home/index.vue | 19 ++-
pages/coach/job/add.vue | 104 +++++++++++++++
pages/coach/job/list.vue | 266 +++++++++++++++++++++++++++++++++++++
4 files changed, 405 insertions(+), 2 deletions(-)
create mode 100644 pages/coach/job/add.vue
create mode 100644 pages/coach/job/list.vue
diff --git a/pages.json b/pages.json
index b65d17e..15c3ed3 100644
--- a/pages.json
+++ b/pages.json
@@ -57,6 +57,24 @@
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
+ },
+ {
+ "path": "pages/coach/job/add",
+ "style": {
+ "navigationBarTitleText": "发布作业",
+ "navigationStyle": "default",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTextStyle": "black"
+ }
+ },
+ {
+ "path": "pages/coach/job/list",
+ "style": {
+ "navigationBarTitleText": "全部作业",
+ "navigationStyle": "default",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTextStyle": "black"
+ }
}
],
diff --git a/pages/coach/home/index.vue b/pages/coach/home/index.vue
index 8350663..389353d 100644
--- a/pages/coach/home/index.vue
+++ b/pages/coach/home/index.vue
@@ -109,7 +109,7 @@
作业批改
- 全部
+ 全部
@@ -197,6 +197,21 @@ export default {
this.fetchData(this.um_id)
},
methods: {
+
+ //打开-发布作业页
+ openObjListView(){
+ uni.navigateTo({
+ url: '/pages/coach/job/add'
+ })
+ },
+
+ //打开作业列表页
+ openObjListView(){
+ uni.navigateTo({
+ url: '/pages/coach/job/list'
+ })
+ },
+
fetchData(um_id) {
user.activity_index({
um_id: um_id
@@ -291,7 +306,7 @@ export default {
min-height: 100vh;
background: #292929 100%;
padding: 0 24rpx;
- padding-top: 20rpx;
+ padding-top: 40rpx;
padding-bottom: 150rpx;
font-size: 28rpx;
.section_1{
diff --git a/pages/coach/job/add.vue b/pages/coach/job/add.vue
new file mode 100644
index 0000000..a101b5c
--- /dev/null
+++ b/pages/coach/job/add.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/coach/job/list.vue b/pages/coach/job/list.vue
new file mode 100644
index 0000000..3aaf309
--- /dev/null
+++ b/pages/coach/job/list.vue
@@ -0,0 +1,266 @@
+
+
+
+
+
+
+
+
+
+ 12
+ /
+ 24
+
+
+ 完成率:80%
+
+
+
+ 班级:少年班
+ 时间:2020-05-25 15:30 - 17:30
+ 课程:篮球少儿课
+
+
+
+
+ 待批改
+
+
+
+
+
+ 12
+ /
+ 24
+
+
+ 完成率:80%
+
+
+
+ 班级:少年班
+ 时间:2020-05-25 15:30 - 17:30
+ 课程:篮球少儿课
+
+
+
+
+ 待批改
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file