{ "pages": [ { "path": "pages/tabbar/pagehome/pagehome", "style": { "navigationBarTitleText": "首页" } }, { "path": "pages/tabbar/course/course", "style": { "navigationBarTitleText": "课程" } }, { "path": "pages/tabbar/my/my", "style": { "navigationBarTitleText": "个人中心" } },{ "path": "pages/tabbar/shop/shop", "style": { "navigationBarTitleText": "商城" } }, { "path": "pages/tabbar/video/video", "style": { "navigationBarTitleText": "视频", "enablePullDownRefresh": false } }, { "path": "pages/login/login", "style": { "navigationBarTitleText": "授权登录", "enablePullDownRefresh": false } } ], "subPackages": [{ //A包 "root": "pagesA", "pages": [ { "path" : "my-coupon/my-coupon", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "my-course/my-course", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "my-integral/my-integral", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "my-order/my-order", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "my-data/my-data", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "my-video/my-video", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "my-extend/my-extend", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "my-address/my-address", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "my-sign/my-sign", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ] }, { //B包 "root": "pagesB", "pages": [ { "path" : "course-detail/course-detail", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "buy-now/buy-now", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "shop-detail/shop-detail", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "cart/cart", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "confirm-order/confirm-order", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "order-detail/order-detail", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "add-address/add-address", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ,{ "path" : "second-level/second-level", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } },{ "path" : "play-video/play-video", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ] } ], "preloadRule": { "pages/tabbar/my/my": { "network": "all", "packages": ["pagesA"] } }, "globalStyle": { "navigationBarTextStyle": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF", //导航栏背景色 "navigationStyle": "custom", //禁用原生导航栏,微信小程序可用 "backgroundColor":"#FFFFFF",//下拉显示出来的窗口的背景色 "backgroundTextStyle":"light"//下拉 loading 的样式,仅支持 dark / light }, "condition" : { //模式配置,仅开发期间生效 "current": 0, //当前激活的模式(list 的索引项) "list": [ { "name": "", //模式名称 "path": "", //启动页面,必选 "query": "" //启动参数,在页面的onLoad函数里面得到 } ] } }