Commit aa05ad8d9663a8f8998cf39434e9e4e914fd000c
1 parent
7f4b0643
优化商品分类&添加自定义底部导航2
Showing
2 changed files
with
4 additions
and
0 deletions
app.js
pages/index/index/index.js
... | ... | @@ -102,6 +102,7 @@ Page({ |
102 | 102 | is_disgraceful: 0 |
103 | 103 | }) |
104 | 104 | }, |
105 | + | |
105 | 106 | async onShow() { |
106 | 107 | var th = this; |
107 | 108 | //获取底部导航 |
... | ... | @@ -124,9 +125,11 @@ Page({ |
124 | 125 | getApp().globalData.tabBar.selectedColor = e.data.data.fontcolor_sele |
125 | 126 | getApp().globalData.tabBar.color = e.data.data.fontcolor |
126 | 127 | getApp().globalData.tabBar.list = itemList |
128 | + getApp().globalData.tabBar.iscustom = '1' | |
127 | 129 | wx.hideTabBar({}) |
128 | 130 | }else{ |
129 | 131 | getApp().globalData.isTabBar = true |
132 | + getApp().globalData.tabBar.iscustom = '2' | |
130 | 133 | } |
131 | 134 | th.setData({ |
132 | 135 | isTabBar: getApp().globalData.isTabBar, | ... | ... |