1.全局配置
文档 https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html
app.json三个重要的配置:
- pages 页面路径
 - window 标题栏
 - tarBar 导航栏(关联page)
 

{"pages": ["pages/index/index","pages/home/home"],"window": {"navigationBarBackgroundColor": "#FFDAB9","navigationBarTextStyle": "black","navigationBarTitleText": "沐风的第一个小程序"},"tabBar": {"selectedColor": "#CD5C5C","list": [{"pagePath": "pages/index/index","text": "首页","iconPath": "static/tabbar/ic_menu_choice_nor.png","selectedIconPath": "static/tabbar/ic_menu_choice_pressed.png"},{"pagePath": "pages/home/home","text": "我的","iconPath": "static/tabbar/ic_menu_me_nor.png","selectedIconPath": "static/tabbar/ic_menu_me_pressed.png"}]},"sitemapLocation": "sitemap.json"}
2.页面配置
<page name>.json
- 只能配置:window属性
 
