|
@@ -4,7 +4,16 @@
|
|
|
const homeApi_empower = "https://aipush.aidsleep.cn";
|
|
const homeApi_empower = "https://aipush.aidsleep.cn";
|
|
|
App({
|
|
App({
|
|
|
onLaunch() {
|
|
onLaunch() {
|
|
|
- wx.hideTabBar()
|
|
|
|
|
|
|
+ // 在需要隐藏 tabBar 的页面的脚本中调用
|
|
|
|
|
+ wx.hideTabBar({
|
|
|
|
|
+ animation: false, // 是否需要动画效果,默认为 false
|
|
|
|
|
+ success: function () {
|
|
|
|
|
+ console.log('TabBar 已经被隐藏');
|
|
|
|
|
+ },
|
|
|
|
|
+ fail: function (err) {
|
|
|
|
|
+ console.error('隐藏 TabBar 失败', err);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
// 展示本地存储能力
|
|
// 展示本地存储能力
|
|
|
// const logs = wx.getStorageSync('logs') || []
|
|
// const logs = wx.getStorageSync('logs') || []
|
|
|
// logs.unshift(Date.now())
|
|
// logs.unshift(Date.now())
|
|
@@ -84,6 +93,7 @@ App({
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
+ wx.hideTabBar()
|
|
|
},
|
|
},
|
|
|
globalData: {
|
|
globalData: {
|
|
|
userInfo: null,
|
|
userInfo: null,
|