From aa05ad8d9663a8f8998cf39434e9e4e914fd000c Mon Sep 17 00:00:00 2001 From: luca Date: Wed, 27 May 2020 10:56:16 +0800 Subject: [PATCH] 优化商品分类&添加自定义底部导航2 --- app.js | 1 + pages/index/index/index.js | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) 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, -- libgit2 0.21.4