[更新]新增动态tabBar

This commit is contained in:
唐明明
2020-12-28 15:27:42 +08:00
parent 092f0bad14
commit 5f2a66b04f
15 changed files with 160 additions and 1 deletions

26
app.js
View File

@@ -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"
}
]
}
}
})