diff --git a/app.js b/app.js index 3535dee..4f54ee8 100644 --- a/app.js +++ b/app.js @@ -35,6 +35,7 @@ App({ "selectedColor": "#f23030",//文字被选择后color "borderStyle": "white",// "backgroundColor": "#ffffff",//背景color + "iscustom":'', "list": [ { "weappurl": "/pages/index/index/index", diff --git a/pages/index/index/index.js b/pages/index/index/index.js index 2dfce43..97fa8bc 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -102,6 +102,7 @@ Page({ is_disgraceful: 0 }) }, + async onShow() { var th = this; //获取底部导航 @@ -124,9 +125,11 @@ Page({ getApp().globalData.tabBar.selectedColor = e.data.data.fontcolor_sele getApp().globalData.tabBar.color = e.data.data.fontcolor getApp().globalData.tabBar.list = itemList + getApp().globalData.tabBar.iscustom = '1' wx.hideTabBar({}) }else{ getApp().globalData.isTabBar = true + getApp().globalData.tabBar.iscustom = '2' } th.setData({ isTabBar: getApp().globalData.isTabBar,