From 3e3598bed39fd9d3f7a3f7b9978006e554d457a2 Mon Sep 17 00:00:00 2001
From: jscyl13849007907 <13849007907@163.com>
Date: Fri, 14 Feb 2025 18:00:36 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.json | 2 +-
assets/images/tabbar/unit.svg | 2 +-
assets/images/tabbar/unit_active.svg | 2 +-
custom-tab-bar/index.js | 2 +-
custom-tab-bar/index.wxml | 18 +++++++++---------
custom-tab-bar/index.wxss | 23 +++++++++++++++++++----
pages/workBench/index.json | 4 +---
7 files changed, 33 insertions(+), 20 deletions(-)
diff --git a/app.json b/app.json
index 226f691..6667d8e 100644
--- a/app.json
+++ b/app.json
@@ -136,7 +136,7 @@
"iconPath": "./assets/images/tabbar/unit.png",
"selectedIconPath": "./assets/images/tabbar/unit_active.png",
"pagePath": "pages/workBench/index",
- "text": "工具"
+ "text": "工作台"
},
{
"iconPath": "./assets/images/tabbar/message.png",
diff --git a/assets/images/tabbar/unit.svg b/assets/images/tabbar/unit.svg
index e4777aa..d5a47e3 100644
--- a/assets/images/tabbar/unit.svg
+++ b/assets/images/tabbar/unit.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/assets/images/tabbar/unit_active.svg b/assets/images/tabbar/unit_active.svg
index 61876ab..f7379ed 100644
--- a/assets/images/tabbar/unit_active.svg
+++ b/assets/images/tabbar/unit_active.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js
index 12c1368..d983126 100644
--- a/custom-tab-bar/index.js
+++ b/custom-tab-bar/index.js
@@ -18,7 +18,7 @@ Component({
iconPath: "../assets/images/tabbar/unit_active.svg",
selectedIconPath: "../assets/images/tabbar/unit.svg",
pagePath: "/pages/workBench/index",
- text: "工具",
+ text: "工作台",
index: 1,
},
{
diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml
index 148a28f..54446ee 100644
--- a/custom-tab-bar/index.wxml
+++ b/custom-tab-bar/index.wxml
@@ -1,13 +1,13 @@
-
-
-
-
-
- {{item.text}}
+
+
+
+
+
+ {{item.text}}
+
-
diff --git a/custom-tab-bar/index.wxss b/custom-tab-bar/index.wxss
index 2858bb9..c44dc5c 100644
--- a/custom-tab-bar/index.wxss
+++ b/custom-tab-bar/index.wxss
@@ -37,13 +37,28 @@
}
.tabImg {
- width: 30px;
- height: 30px;
+ width: 26px;
+ height: 26px;
position: absolute;
- top: 6px;
+ top: 7px;
}
+
+.tab-bar-item:nth-child(2) .tabImg{
+ width: 24px;
+ height: 24px;
+}
+.tab-bar-item:nth-child(3) .tabImg{
+ width: 24px;
+ height: 24px;
+}
+.tab-bar-item:nth-child(6) .tabImg{
+ width: 22px;
+ height: 22px;
+}
+
+
.tabText {
- margin-top: 34px;
+ margin-top: 36px;
}
.tab-bar-item view {
font-size: 10px;
diff --git a/pages/workBench/index.json b/pages/workBench/index.json
index 69a4b4c..18fd5ad 100644
--- a/pages/workBench/index.json
+++ b/pages/workBench/index.json
@@ -1,7 +1,5 @@
{
"usingComponents": {},
- "navigationBarTitleText": "工具",
- "navigationBarBackgroundColor": "#1890ff",
- "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "工作台",
"backgroundColor": "#f5f5f5"
}
\ No newline at end of file