From 67d6b41b655945ae12b658a0cc38852924307497 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Tue, 11 Mar 2025 14:59:47 +0800
Subject: [PATCH] =?UTF-8?q?refactor(coach/home):=20=E9=87=8D=E6=9E=84?=
=?UTF-8?q?=E6=95=99=E7=BB=83=E9=A6=96=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 移除了大部分原有代码,包括模板、脚本和样式
- 添加了新的模板结构,分为三个部分
-优化了样式,使用了less和scoped属性
---
pages.json | 2 +-
pages/coach/home/index.vue | 415 ++++++++++++----------------------
pages/student/index/index.vue | 7 -
3 files changed, 142 insertions(+), 282 deletions(-)
diff --git a/pages.json b/pages.json
index 43ebcdb..b65d17e 100644
--- a/pages.json
+++ b/pages.json
@@ -57,7 +57,7 @@
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
- },
+ }
],
"globalStyle": {
diff --git a/pages/coach/home/index.vue b/pages/coach/home/index.vue
index 180a71f..4c5d854 100644
--- a/pages/coach/home/index.vue
+++ b/pages/coach/home/index.vue
@@ -1,281 +1,148 @@
-
-
- 发现
-
-
-
-
-
-
-
-
-
-
-
- {{item.user}}
- {{item.timedifference}}
-
-
- 收藏
- 收藏
-
-
- {{item.activity}}
-
-
-
-
-
-
-
-
-
- {{item.content}}
-
-
-
- 点击内容查看详情
-
-
- {{item.area}}
-
-
- {{item.likes}}
-
-
-
- {{item.comment}}
-
-
-
-
-
-
-
-
- 还没有任何提醒
-
-
-
-
-
-
+
+
+
+ 月授课数
+ 12
+ 节,月负责学员
+ 188
+ 名
+
+
+
+
+
+
-
\ No newline at end of file
diff --git a/pages/student/index/index.vue b/pages/student/index/index.vue
index 6a07f7d..2310948 100644
--- a/pages/student/index/index.vue
+++ b/pages/student/index/index.vue
@@ -1,8 +1,5 @@
-<<<<<<< HEAD
-
-=======
发现
@@ -65,7 +62,6 @@
->>>>>>> d89f93ea456d0a15a017b476c9df62a3b4c831ed
@@ -84,8 +80,6 @@
}
},
onLoad() {
-<<<<<<< HEAD
-=======
const um_id = uni.getStorageSync('um_id');
this.um_id = um_id
if (um_id == '') {
@@ -94,7 +88,6 @@
})
}
this.fetchData(this.um_id)
->>>>>>> d89f93ea456d0a15a017b476c9df62a3b4c831ed
},
methods: {
// fetchData(um_id) {