From fc1a36ef3b54399c9cea5f4c1c62a1c0bbf4420f Mon Sep 17 00:00:00 2001
From: admin <>
Date: Sat, 14 Sep 2024 16:08:23 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B9=B3=E5=8F=B0=E5=85=BC=E5=AE=B9?=
=?UTF-8?q?=E6=80=A7=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 18 +++-
src/components/Tabbar/index.vue | 3 +-
src/manifest.json | 3 +-
src/pages.json | 4 +-
src/pagesBattery/index.vue | 159 ++++++++++++++++----------------
src/pagesHome/index.vue | 113 ++++++++++++-----------
src/pagesHome/profile.vue | 18 ++++
src/pagesScrapSteel/index.vue | 113 ++++++++++++-----------
src/pagesVehicle/index.vue | 134 ++++++++++++++-------------
src/static/style/common.scss | 7 +-
10 files changed, 309 insertions(+), 263 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 7a89f96..a343598 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -3,7 +3,23 @@ import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
onLaunch(() => {
//隐藏官方的tabBar
- // uni.hideTabBar();
+ // #ifdef MP-ALIPAY
+ my.hideTabBar({
+ animation: false, // 是否需要动画效果,alipay 1.95.0支持此参数
+ success: (res) => {
+ // 隐藏成功的回调
+ console.log("TabBar has been hidden", res);
+ },
+ fail: (err) => {
+ // 隐藏失败的回调
+ console.error("Failed to hide TabBar", err);
+ },
+ });
+ // #endif
+
+ // #ifndef MP-ALIPAY
+ uni.hideTabBar();
+ // #endif
});
onShow(() => {
console.log("App Show");
diff --git a/src/components/Tabbar/index.vue b/src/components/Tabbar/index.vue
index 3e6d63b..82af40a 100644
--- a/src/components/Tabbar/index.vue
+++ b/src/components/Tabbar/index.vue
@@ -74,8 +74,7 @@ const handleClick = (item: tabBar) => {
};
onLaunch(() => {
- //隐藏官方的tabBar
- uni.hideTabBar();
+
});
diff --git a/src/manifest.json b/src/manifest.json
index 72d7a8a..eb6aa28 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -86,7 +86,8 @@
"lazyCodeLoading" : "requiredComponents"
},
"mp-alipay" : {
- "usingComponents" : true
+ "usingComponents" : true,
+ "styleIsolation":"apply-shared"
},
"mp-baidu" : {
"usingComponents" : true
diff --git a/src/pages.json b/src/pages.json
index ea8aa0f..9fdec02 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -113,11 +113,11 @@
"list": [
{
"pagePath": "pagesHome/index",
- "text": "工作台"
+ "text": ""
},
{
"pagePath": "pagesHome/profile",
- "text": "我的"
+ "text": ""
}
]
},
diff --git a/src/pagesBattery/index.vue b/src/pagesBattery/index.vue
index e08bd32..6a8896d 100644
--- a/src/pagesBattery/index.vue
+++ b/src/pagesBattery/index.vue
@@ -2,87 +2,92 @@
-
-
-
-
- {{ item.name }}
- {{ item.desc }}
-
-
-
-
-
-
-
- 回收流程
-
- 在线登记
-
- 免费上门
-
- 结算打款
-
- 订单完成
-
-
- 回收物品
-
-
-
+
+
+
-
-
+
+ {{ item.name }}
+ {{ item.desc }}
+
-
- {{ item.name }}
-
-
-
-
-
-
- 常见问题
-
-
- {{ item.q }}
-
-
-
+
+
-
- 其他问题请咨询客服电话
- 15150231777 欢迎咨询
-
-
+
+
+
+ 回收流程
+
+ 在线登记
+
+ 免费上门
+
+ 结算打款
+
+ 订单完成
+
+
+ 回收物品
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+ 常见问题
+
+
+ {{ item.q }}
+
+
+
+
+
+
+
+ 其他问题请咨询客服电话
+ 15150231777 欢迎咨询
+
+
+