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中不能有注釋
否則會報錯:
