From 055725ec5cd18eaa3be12ff02481a2448daa079b Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Thu, 17 Apr 2025 10:59:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor(coach):=20=E9=87=8D=E6=9E=84=E6=95=99?= =?UTF-8?q?=E7=BB=83=E7=AB=AF=E5=88=B0=E8=AF=BE=E7=BB=9F=E8=AE=A1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -优化课程列表渲染逻辑,使用 v-for 指令 - 添加课程列表数据请求和分页加载功能 - 修复到课率计算公式 - 优化页面样式,调整布局和字体颜色 - 修复导航栏标题文字错误 --- pages.json | 2 +- pages/coach/class/info.vue | 2 +- pages/coach/my/arrival_statistics.vue | 208 ++++++++++++++------------ 3 files changed, 112 insertions(+), 100 deletions(-) diff --git a/pages.json b/pages.json index 0d1a4ef..a2d92d2 100644 --- a/pages.json +++ b/pages.json @@ -307,7 +307,7 @@ { "path": "pages/coach/my/arrival_statistics", "style": { - "navigationBarTitleText": "到客统计", + "navigationBarTitleText": "到课统计", "navigationStyle": "default", "navigationBarBackgroundColor": "#292929", "navigationBarTextStyle": "white" diff --git a/pages/coach/class/info.vue b/pages/coach/class/info.vue index 84937b0..18e7f23 100644 --- a/pages/coach/class/info.vue +++ b/pages/coach/class/info.vue @@ -119,7 +119,7 @@ diff --git a/pages/coach/my/arrival_statistics.vue b/pages/coach/my/arrival_statistics.vue index f75d9c1..60f306b 100644 --- a/pages/coach/my/arrival_statistics.vue +++ b/pages/coach/my/arrival_statistics.vue @@ -3,64 +3,51 @@ - + + - + - 12 + {{v.has_sign_count}} / - 24 + {{v.students_count}} - 到课率:80% + 到课率:{{v.attendance_rate}}% - 班级:少年班 - 时间:2020-05-25 15:30 - 17:30 - 课室:302室 + 班级:{{v.classes_name}} + 时间:{{v.date_time}} {{v.time_slot ? v.time_slot.replace(",", " - ") : ""}} + 课室:{{v.address}} - 课程:篮球少儿课 + 课程:{{v.courses_name}} - 上课中 - - - - - - - 12 - / - 24 - - - 到课率:80% - - - - 班级:少年班 - 时间:2020-05-25 15:30 - 17:30 - 课室:302室 - - 课程:篮球少儿课 - - - - - 待上课 + 上课中 + 已结束 - +