From 5d249e21247dfa0f819fba8edfb0b9c000a5b46a Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Thu, 13 Mar 2025 11:36:10 +0800 Subject: [PATCH] =?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 - 添加最近课程、班级成员和作业任务等功能模块- 优化页面布局和样式 --- components/AQ/AQTabber.vue | 4 +- pages.json | 13 +- pages/coach/course/info.vue | 3 +- pages/coach/my/arrival_statistics.vue | 256 ++++++++++++++++++++++++++ pages/coach/my/index.vue | 35 +--- 5 files changed, 272 insertions(+), 39 deletions(-) create mode 100644 pages/coach/my/arrival_statistics.vue diff --git a/components/AQ/AQTabber.vue b/components/AQ/AQTabber.vue index 73a2837..1f725ff 100644 --- a/components/AQ/AQTabber.vue +++ b/components/AQ/AQTabber.vue @@ -27,7 +27,7 @@ methods: { async init(){ - uni.setStorageSync('userType','3') + uni.setStorageSync('userType','1') let userType = uni.getStorageSync('userType') this.userType = userType @@ -63,7 +63,7 @@ }, { text: "我的", - urlPath:'/pages/student/my/my',//自定义页面跳转路径 + urlPath:'/pages/coach/my/index',//自定义页面跳转路径 iconPath: "/static/images/tabbar/my.png", selectedIconPath: "/static/images/tabbar/my.png" } diff --git a/pages.json b/pages.json index 794c64d..d402d40 100644 --- a/pages.json +++ b/pages.json @@ -168,11 +168,16 @@ "navigationBarBackgroundColor": "#fff", "navigationBarTextStyle": "black" } + }, + { + "path": "pages/coach/my/arrival_statistics", + "style": { + "navigationBarTitleText": "到客统计", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#292929", + "navigationBarTextStyle": "white" + } } - - - - ], "globalStyle": { "navigationBarTextStyle": "white", diff --git a/pages/coach/course/info.vue b/pages/coach/course/info.vue index ab4da17..36e9fb3 100644 --- a/pages/coach/course/info.vue +++ b/pages/coach/course/info.vue @@ -51,7 +51,6 @@ - @@ -146,7 +145,7 @@ export default { } - \ No newline at end of file diff --git a/pages/coach/my/index.vue b/pages/coach/my/index.vue index 2f8836f..311ffcc 100644 --- a/pages/coach/my/index.vue +++ b/pages/coach/my/index.vue @@ -16,7 +16,7 @@ 切换身份 - 到课率统计 + 到课率统计 @@ -106,42 +106,15 @@ export default { data() { return { formData:{}, - tabType:'1',//1=班级成员,2=作业任务 - Atype:1,//1=作业完成,2=作业未提交 } }, onLoad() { }, methods: { - //切换tab - tabChange(tabType) { - this.tabType = tabType - }, - - //打开课程详情 - openViewCourseInfo(item){ - uni.navigateTo({ - url: '/pages/coach/course/info' - }) - }, - //打开学员详情页 - openViewStudentInfo(item){ - uni.navigateTo({ - url: '/pages/coach/student/info' - }) - }, - - //打开体测报告 - openViewPhysicalExamination(item){ - uni.navigateTo({ - url: '/pages/coach/student/physical_examination' - }) - }, - - //打开作业任务 - opebViewWorkDetails(item){ + //打开到课率统计 + openViewArrivalStatistics(){ uni.navigateTo({ - url: '/pages/coach/student/work_details' + url: '/pages/coach/my/arrival_statistics' }) }, }