From d35d2cc5bebe5424e2d1a288d16e6336888e3050 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Tue, 11 Mar 2025 12:20:17 +0800
Subject: [PATCH] =?UTF-8?q?feat(components):=20=E6=B7=BB=E5=8A=A0=E8=87=AA?=
=?UTF-8?q?=E5=AE=9A=E4=B9=89=20Tabbar=20=E7=BB=84=E4=BB=B6=E5=B9=B6?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A6=96=E9=A1=B5=E5=B8=83=E5=B1=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增 AQTabber 自定义 Tabbar 组件,支持不同用户类型显示不同菜单
- 更新学生端首页布局,添加 Tabbar 组件
- 新增教练端和销售端的首页页面结构
- 修改全局配置,移除默认 Tabbar 设置
---
components/AQ/AQTabber.vue | 137 +++++++++++++++++
pages.json | 25 +--
pages/coach/home/index.vue | 281 ++++++++++++++++++++++++++++++++++
pages/student/index/index.vue | 10 +-
4 files changed, 426 insertions(+), 27 deletions(-)
create mode 100644 components/AQ/AQTabber.vue
create mode 100644 pages/coach/home/index.vue
diff --git a/components/AQ/AQTabber.vue b/components/AQ/AQTabber.vue
new file mode 100644
index 0000000..779fce8
--- /dev/null
+++ b/components/AQ/AQTabber.vue
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index 57d8446..a0b8229 100644
--- a/pages.json
+++ b/pages.json
@@ -46,30 +46,7 @@
}
}],
- "tabBar": {
- "color": "#999999",
- "selectedColor": "#60ba61",
- "borderStyle": "white",
- "backgroundColor": "#fff",
- "fontSize": "18px",
- "iconWidth": "25px",
- "list": [{
- "pagePath": "pages/student/index/index",
- "iconPath": "static/images/tabbar/home.png",
- "selectedIconPath": "static/images/tabbar/home_selected.png",
- "text": "首页"
- }, {
- "pagePath": "pages/student/timetable/index",
- "iconPath": "static/images/tabbar/index.png",
- "selectedIconPath": "static/images/tabbar/index_selected.png",
- "text": "课表"
- }, {
- "pagePath": "pages/student/my/my",
- "iconPath": "static/images/tabbar/my.png",
- "selectedIconPath": "static/images/tabbar/my_selected.png",
- "text": "我的"
- }]
- },
+
"share": {
"title": "用药提醒",
"imageUrl": "/static/images/home/tixing.png",
diff --git a/pages/coach/home/index.vue b/pages/coach/home/index.vue
new file mode 100644
index 0000000..180a71f
--- /dev/null
+++ b/pages/coach/home/index.vue
@@ -0,0 +1,281 @@
+
+
+
+ 发现
+
+
+
+
+
+
+
+
+
+
+
+ {{item.user}}
+ {{item.timedifference}}
+
+
+ 收藏
+ 收藏
+
+
+ {{item.activity}}
+
+
+
+
+
+
+
+
+
+ {{item.content}}
+
+
+
+ 点击内容查看详情
+
+
+ {{item.area}}
+
+
+ {{item.likes}}
+
+
+
+ {{item.comment}}
+
+
+
+
+
+
+
+
+ 还没有任何提醒
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/student/index/index.vue b/pages/student/index/index.vue
index 180a71f..3b15403 100644
--- a/pages/student/index/index.vue
+++ b/pages/student/index/index.vue
@@ -60,16 +60,20 @@
+
+