慕粉1426586204
2018-04-20 17:50
咦 为什么我在app.json中输入tabBar没有像老师那样跳出后面的几行提示代码呀?
下面是我的源码,你看一下,应该是在 "window"结束之后没有加 , 吧,仔细检查一下代码。
{
"pages":[
"pages/index/index",
"pages/join/join",
"pages/logs/logs"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#2e5e86",
"navigationBarTitleText": "模板Dome",
"navigationBarTextStyle":"black"
},
"tabBar": {
"selectedColor": "#2e5e86",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "images/sy.png",
"selectedIconPath": "images/sy1.png"
},
{
"pagePath": "pages/join/join",
"text": "消息",
"iconPath": "images/xx.png",
"selectedIconPath": "images/xx1.png"
}
]
}
}
入门微信小程序开发
172015 学习 · 323 问题
相似问题