- "pages"
数组,存放项目所有页面,
- 在
小程序开发者工具中编辑这数组可以在'/pages'路径下生成对应页面的文件夹
- 在项目中跳转时可以直接使用这里定义的路径
wx.navigateTo({url: '/pages/user/index'});
- "window"
对象,项目基本框架的工具栏配置
- "navigationBarBackgroundColor": 顶部工具栏背景色,
- "navigationBarTitleText": 顶部工具栏标题,
- "navigationBarTextStyle": 顶部工具栏标题文字颜色
- "tabBar"
对象,项目底部或顶部行菜单。
- "color": 菜单项字体颜色,
- "selectedColor": 菜单项选中时的字体颜色,
- "backgroundColor": 菜单的背景颜色,
- "position": 菜单的位置,
- "borderStyle": 菜单的边框颜色,
- "list": 数组,提供菜单项的信息
- "pagePath": 页面路径,
- "text": 菜单项文本,
- "iconPath": 菜单项默认图标路径,
- "selectedIconPath": 菜单项选中时的图标路径
- "sitemapLocation"
字符串, 指明 sitemap.json 的位置;默认为 'sitemap.json' 即在 app.json 同级目录下名字的 sitemap.json 文件