"tabBar": {
"color":
"#dddddd",
"selectedColor":
"white",
"backgroundColor":
"#ffffff",
"list":[
{
"pagePath":
"pages/index/index",
"iconPath":
"",
"selectedIconPath":
"",
"text":
"首页"
},
{
"pagePath":
"pages/active/active",
"iconPath":
"",
"selectedIconPath":
"",
"text":
"活动"
},
{
"pagePath":
"pages/my/my",
"iconPath":
"",
"selectedIconPath":
"",
"text":
"我的"
}
]
}
注意:代码是在app.js中编写
1,List里面是你的页面的数量
2,pagePath是页面的路径
3,iconpath是图标路径
4,text是标题
其余不多做解释
转载于:https://www.cnblogs.com/zxh-iOS/p/7442862.html
转载请注明原文地址: https://mac.8miu.com/read-59575.html