From 28e8dbf9675641711f03945bc6bd04648ef5e915 Mon Sep 17 00:00:00 2001 From: LLL <15374889135@163.com> Date: Fri, 13 Jun 2025 18:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/apiRoute.js | 8 +- pages/coach/my/index.vue | 37 +++++--- pages/coach/my/info.vue | 77 ++++++++------- pages/coach/my/update_pass.vue | 166 ++++++++++++++++++++++++++++----- 4 files changed, 221 insertions(+), 67 deletions(-) diff --git a/api/apiRoute.js b/api/apiRoute.js index 081d694..e6f80fe 100644 --- a/api/apiRoute.js +++ b/api/apiRoute.js @@ -147,7 +147,13 @@ export default { - + //获取我的页面统计个数 + getStatisticsInfo(data = {}) { + let url = '/class/Statistics/info' + return http.get(url, data).then(res => { + return res; + }) + }, //添加作业 jlPublishJob(data = {}) { let url = '/class/jlPublishJob/add' diff --git a/pages/coach/my/index.vue b/pages/coach/my/index.vue index 8a11a15..bee5fb6 100644 --- a/pages/coach/my/index.vue +++ b/pages/coach/my/index.vue @@ -30,24 +30,24 @@ - {{memberInfo.zsks}} + {{statisticsInfo.courseNum}} 总授课数/节 - {{memberInfo.zsbj}} + {{statisticsInfo.classNum}} 总授班级/个 - {{memberInfo.zfzxy}} + {{statisticsInfo.studentNum}} 总负责学员/名 月授课数 - 12 + {{statisticsInfo.courseMonthNum}} 节,月负责学员 - 188 + {{statisticsInfo.studentMonthNum}} @@ -66,12 +66,12 @@ xxx场馆 - + + 即将到期 - 授课统计 @@ -83,8 +83,8 @@ - - + + 我的消息 @@ -125,6 +125,7 @@ export default { data() { return { memberInfo:{}, + statisticsInfo: [] } }, onLoad() { @@ -135,6 +136,7 @@ export default { methods: { async init(){ this.getMemberInfo() + this.getStatistics() }, //教练详情(个人信息详情) @@ -149,6 +151,19 @@ export default { } this.memberInfo = res.data }, + + //获取统计个数 + async getStatistics() { + let res = await apiRoute.getStatisticsInfo({}) + if (res.code != 1) { + uni.showToast({ + title: res.msg, + icon: 'none' + }) + return + } + this.statisticsInfo = res.data + }, //打开到课率统计 openViewArrivalStatistics(){ @@ -164,10 +179,10 @@ export default { }) }, - //打开授课统计 + //我的消息 openViewSchoolingStatistics(){ this.$navigateTo({ - url: '/pages/coach/my/schooling_statistics' + url: '/pages/common/my_message' }) }, diff --git a/pages/coach/my/info.vue b/pages/coach/my/info.vue index 442951b..fefbe9c 100644 --- a/pages/coach/my/info.vue +++ b/pages/coach/my/info.vue @@ -8,7 +8,7 @@ 修改头像 @@ -39,7 +39,8 @@ 部门 - + + {{formData.department_name_str || '暂无'}} @@ -59,14 +60,14 @@ 性别 * - + @@ -122,6 +123,7 @@ @@ -104,4 +220,10 @@ color: #999999; padding-left: 30rpx; } + + .btn_box{ + display: flex; + flex-direction: column; + gap: 40rpx; + } \ No newline at end of file