Commit aa05ad8d9663a8f8998cf39434e9e4e914fd000c

Authored by 后端研发-倪永富
1 parent 7f4b0643

优化商品分类&添加自定义底部导航2

... ... @@ -35,6 +35,7 @@ App({
35 35 "selectedColor": "#f23030",//文字被选择后color
36 36 "borderStyle": "white",//
37 37 "backgroundColor": "#ffffff",//背景color
  38 + "iscustom":'',
38 39 "list": [
39 40 {
40 41 "weappurl": "/pages/index/index/index",
... ...
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,
... ...