VM1503:2 tabBar[1].pagePath "page/photo/photo" 需在 pages 数组中
以上是显示的错误
以下是代码
{
"debug"
:
true
,
"pages"
:
[
"page/index/index"
,
"page/index/search"
,
"page/shop/shop"
,
"page/mine/mine"
,
],
"window"
:
{
"navigationBarBackgroundColor"
:
"#feb70f"
,
"navigationBarTextStyle"
:
"white"
,
"backgroundColor"
:
"#efefef"
,
"backgroundTextStyle"
:
"dark"
,
"navigationBarTitleText"
:
"向日葵"
},
"tabBar"
:
{
"color"
:
"#878787"
,
"selectedColor"
:
"#000"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#fcfcfc"
,
"list"
:
[
{
"selectedIconPath"
:
"img/tabBar/home_1.png"
,
"iconPath"
:
"img/tabBar/home_2.png"
,
"pagePath"
:
"page/index/index"
,
"text"
:
"首页"
},
{
"selectedIconPath"
:
"img/tabBar/mine_1.png"
,
"iconPath"
:
"img/tabBar/mine_2.png"
,
"pagePath"
:
"page/photo/photo"
,
"text"
:
"相册"
},
{
"selectedIconPath"
:
"img/tabBar/mine_1.png"
,
"iconPath"
:
"img/tabBar/mine_2.png"
,
"pagePath"
:
"page/mine/mine"
,
"text"
:
"我的"
}
]
},
"networkTimeout"
:
{
"request"
:
10000
,
"connectSocket"
:
10000
,
"uploadFile"
:
10000
,
"downloadFile"
:
10000
}
}
tabBar[1].pagePath"page/photo/photo"需在pages数组中。