{
"pages": [
"pages/index/index",
"pages/logs/logs",
"pages/demo/demo"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0097ff",
"navigationBarTitleText": "test",
"navigationBarTextStyle": "light"
},
"tarBar": {
"list": [
{
"pagePath": "pages/index/index",
"text": "首页"
},
{
"pagePath": "pages/logs/logs",
"text": "日志"
},
{
"pagePath": "pages/demo/demo",
"text": "demo"
}
]
},
"networkTimeout": {
"request": 20000,
"connectSocket": 20000,
"uploadFile": 20000,
"downloadFile": 20000
},
"debug": true
}
"tabBar": {
"color": "#707070",
"selectedColor": "#E8672E",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "img/tabBar/index.png",
"selectedIconPath": "img/tabBar/index@2x.png"
},
{
"pagePath": "pages/mall/mall",
"text": "商城",
"iconPath": "img/tabBar/baihuo@2x.png",
"selectedIconPath": "img/tabBar/baihuo@2x1.png"
},
{
"pagePath": "pages/share/share",
"text": "购物车",
"iconPath": "img/tabBar/huodong@2x.png",
"selectedIconPath": "img/tabBar/huodong@2x1.png"
},
{
"pagePath": "pages/mine/mine",
"text": "我的",
"iconPath": "img/tabBar/my-icon@2x.png",
"selectedIconPath": "img/tabBar/mine@2x.png"
}
]
},
我是这样写的
你这么写是没有问题的,tab只会显示在tab页面,你看看你访问的是tab页面不。