From f400808ac6ca6d9a8f5206f8380bd446d9427102 Mon Sep 17 00:00:00 2001
From: Tuzki <1720599558@qq.com>
Date: Fri, 1 Nov 2024 11:13:41 +0800
Subject: [PATCH] =?UTF-8?q?feat(components):=20=E6=96=B0=E5=A2=9E=E8=87=AA?=
=?UTF-8?q?=E5=AE=9A=E4=B9=89=20TabBar=20=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 添加 m-tabBar 组件,用于替换原生 TabBar
- 在各个页面中集成 m-tabBar 组件
- 调整页面样式以适应新的 TabBar
- 移除 pages.json 中的原生 TabBar 配置
---
components/m-tabBar/mTabBar.vue | 122 +++++++++++++
pages.json | 32 ----
pages/fuwu/fuwu.vue | 6 +-
pages/index/index.vue | 187 ++++++++++++++------
pages/personcenter/personcenter.vue | 36 +++-
pages/zhoubian/zhoubian/zhoubian.vue | 78 ++++----
static/ancss/an.css | 3 +
static/animg/index/active-nav-bg.png | Bin 1584 -> 0 bytes
subPageA/personcenter/aboutus.vue | 2 +-
subPageA/personcenter/middlePage.vue | 4 +-
subPageB/jiqiren/jiqiren/zhinengjiqiren.vue | 2 +-
11 files changed, 344 insertions(+), 128 deletions(-)
create mode 100644 components/m-tabBar/mTabBar.vue
delete mode 100755 static/animg/index/active-nav-bg.png
diff --git a/components/m-tabBar/mTabBar.vue b/components/m-tabBar/mTabBar.vue
new file mode 100644
index 0000000..f65694c
--- /dev/null
+++ b/components/m-tabBar/mTabBar.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index 19b40ed..cd421cf 100644
--- a/pages.json
+++ b/pages.json
@@ -489,37 +489,5 @@
"navigationBarTitleText": "E鹿悦游",
"navigationBarBackgroundColor": "#f7f7f7",
"backgroundColor": "#f5f5f5"
- },
- "tabBar": {
- "color": "#666",
- "selectedColor": "#1677ff",
- "borderStyle": "black",
- "backgroundColor": "#fefefe",
- "list": [
- {
- "pagePath": "pages/index/index",
- "iconPath": "static/animg/bar/home.png",
- "selectedIconPath": "static/animg/bar/home_active.png",
- "text": "首页"
- },
- {
- "pagePath": "pages/zhoubian/zhoubian/zhoubian",
- "iconPath": "static/animg/bar/fujin.png",
- "selectedIconPath": "static/animg/bar/fujin_active.png",
- "text": "附近"
- },
- {
- "pagePath": "pages/fuwu/fuwu",
- "iconPath": "static/animg/bar/fuwu.png",
- "selectedIconPath": "static/animg/bar/fuwu_active.png",
- "text": "服务"
- },
- {
- "pagePath": "pages/personcenter/personcenter",
- "iconPath": "static/animg/bar/my.png",
- "selectedIconPath": "static/animg/bar/my_active.png",
- "text": "我的"
- }
- ]
}
}
\ No newline at end of file
diff --git a/pages/fuwu/fuwu.vue b/pages/fuwu/fuwu.vue
index e0adc6f..b13b365 100644
--- a/pages/fuwu/fuwu.vue
+++ b/pages/fuwu/fuwu.vue
@@ -103,15 +103,17 @@
+