Commit aa05ad8d9663a8f8998cf39434e9e4e914fd000c

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

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

@@ -35,6 +35,7 @@ App({ @@ -35,6 +35,7 @@ App({
35 "selectedColor": "#f23030",//文字被选择后color 35 "selectedColor": "#f23030",//文字被选择后color
36 "borderStyle": "white",// 36 "borderStyle": "white",//
37 "backgroundColor": "#ffffff",//背景color 37 "backgroundColor": "#ffffff",//背景color
  38 + "iscustom":'',
38 "list": [ 39 "list": [
39 { 40 {
40 "weappurl": "/pages/index/index/index", 41 "weappurl": "/pages/index/index/index",
pages/index/index/index.js
@@ -102,6 +102,7 @@ Page({ @@ -102,6 +102,7 @@ Page({
102 is_disgraceful: 0 102 is_disgraceful: 0
103 }) 103 })
104 }, 104 },
  105 +
105 async onShow() { 106 async onShow() {
106 var th = this; 107 var th = this;
107 //获取底部导航 108 //获取底部导航
@@ -124,9 +125,11 @@ Page({ @@ -124,9 +125,11 @@ Page({
124 getApp().globalData.tabBar.selectedColor = e.data.data.fontcolor_sele 125 getApp().globalData.tabBar.selectedColor = e.data.data.fontcolor_sele
125 getApp().globalData.tabBar.color = e.data.data.fontcolor 126 getApp().globalData.tabBar.color = e.data.data.fontcolor
126 getApp().globalData.tabBar.list = itemList 127 getApp().globalData.tabBar.list = itemList
  128 + getApp().globalData.tabBar.iscustom = '1'
127 wx.hideTabBar({}) 129 wx.hideTabBar({})
128 }else{ 130 }else{
129 getApp().globalData.isTabBar = true 131 getApp().globalData.isTabBar = true
  132 + getApp().globalData.tabBar.iscustom = '2'
130 } 133 }
131 th.setData({ 134 th.setData({
132 isTabBar: getApp().globalData.isTabBar, 135 isTabBar: getApp().globalData.isTabBar,