[更新]新增动态tabBar
This commit is contained in:
26
app.js
26
app.js
@@ -18,6 +18,13 @@ App({
|
||||
|
||||
//挂载api方法
|
||||
wx.$api = apis
|
||||
|
||||
//获取模版信息
|
||||
apis.publics.storeConfig({
|
||||
company_id: "17"
|
||||
}).then(res=>{
|
||||
console.log(res)
|
||||
})
|
||||
},
|
||||
globalData: {
|
||||
navAppInfo : {
|
||||
@@ -25,6 +32,25 @@ App({
|
||||
envVersion : "trial",
|
||||
goodUrl : "/pages/goods/show?goodsId=",
|
||||
cardUrl : "/pages/card/index?cardid="
|
||||
},
|
||||
storeModule: {
|
||||
selected : 0,
|
||||
color : "#4e4f51",
|
||||
selectedColor: "#0b0041",
|
||||
list : [
|
||||
{
|
||||
"pagePath": "/pages/mall/index",
|
||||
"text": "商城",
|
||||
"iconPath": "/static/tabbar/tabbar_icon_01.png",
|
||||
"selectedIconPath": "/static/tabbar/tabbar_icon_show_01.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/user/index",
|
||||
"text": "我的",
|
||||
"iconPath": "/static/tabbar/tabbar_icon_03.png",
|
||||
"selectedIconPath": "/static/tabbar/tabbar_icon_show_03.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user