1. 将菜单素材放入项目,images文件夹与pages同目录


app.json代码
```
{
"pages": ["pages/movie/movie", "pages/profile/profile"],
"window": {
"backgroundColor": "#f6f6f6",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#e54847",
"navigationBarTitleText": "最新电影",
"navigationBarTextStyle": "white"
},
"tabBar": {
"color": "#000000",
"selectedColor": "#e54847",
"list": [{
"pagePath": "pages/movie/movie",
"text": "电影",
"iconPath": "images/film.png",
"selectedIconPath": "images/film-actived.png"
},
{
"pagePath": "pages/profile/profile",
"text": "我的",
"iconPath": "images/profile.png",
"selectedIconPath": "images/profile-actived.png"
}]
}
}
```
效果:

注意:app.json中不能有注释
否则会报错:
