为改新的浅蓝色做准备
This commit is contained in:
@@ -2,36 +2,24 @@ Component({
|
||||
data: {
|
||||
selected: 0,
|
||||
color: "#6e6d6b",
|
||||
selectedColor: "#00B050",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "/pages/index/index",
|
||||
"text": "首页",
|
||||
"iconPath": "/images/footer-icon-01.png",
|
||||
"selectedIconPath": "/images/footer-icon-01-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/news/index",
|
||||
"iconPath": "/images/footer-icon-05.png",
|
||||
"selectedIconPath": "/images/footer-icon-05-active.png",
|
||||
"text": "资讯"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/business/index",
|
||||
"iconPath": "/images/footer-icon-02.png",
|
||||
"selectedIconPath": "/images/footer-icon-02-active.png",
|
||||
"text": "门店"
|
||||
},
|
||||
|
||||
{
|
||||
"pagePath": "/pages/my/index",
|
||||
"text": "我的",
|
||||
"iconPath": "/images/footer-icon-04.png",
|
||||
"selectedIconPath": "/images/footer-icon-04-active.png"
|
||||
}
|
||||
]
|
||||
selectedColor: "#1E88E5",
|
||||
"list": []
|
||||
},
|
||||
attached() {
|
||||
const app = getApp();
|
||||
const userId = wx.getStorageSync("userId");
|
||||
const userInfodata = wx.getStorageSync("userInfo");
|
||||
let ifsel = 0;
|
||||
|
||||
if (userId && userInfodata) {
|
||||
const userInfo = JSON.parse(userInfodata);
|
||||
ifsel = userInfo.bdshEnable;
|
||||
}
|
||||
|
||||
// 从全局配置获取菜单列表
|
||||
this.setData({
|
||||
list: ifsel == 1 ? app.globalData.tabBarListBdsh : app.globalData.tabBarList
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
switchTab(e) {
|
||||
|
||||
Reference in New Issue
Block a user