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  欢迎咨询 + + +