{ "pages": [ { // 公共入口 "path": "pages/pagehome/pagehome", "style": { "navigationBarTitleText": "公共入口", "enablePullDownRefresh": false } }, { // 打卡 "path": "pages/worker/sign/sign", "style": { "navigationBarTitleText": "打卡", "enablePullDownRefresh": true } }, { // 加班 "path": "pages/worker/overtime/overtime", "style": { "navigationBarTitleText": "加班", "enablePullDownRefresh": false } }, { // 我的 "path": "pages/worker/my/my", "style": { "navigationBarTitleText": "我的", "enablePullDownRefresh": false } }, { // 打卡 "path": "pages/director/sign/sign", "style": { "navigationBarTitleText": "打卡", "enablePullDownRefresh": true } }, { // 支出 "path": "pages/director/expenditure/expenditure", "style": { "navigationBarTitleText": "支出", "enablePullDownRefresh": true } }, { // 录入 "path": "pages/director/enter/enter", "style": { "navigationBarTitleText": "录入", "enablePullDownRefresh": true } }, { // 加班 "path": "pages/director/overtime/overtime", "style": { "navigationBarTitleText": "加班", "enablePullDownRefresh": true } }, { // 登录 "path": "pages/login/login", "style": { "navigationBarTitleText": "登录", "enablePullDownRefresh": false } } ], "subPackages": [{ //A包 "root": "pagesA", "pages": [ { //基本信息 "path" : "information/information", "style" : { "navigationBarTitleText": "基本信息", "enablePullDownRefresh": false } }, { //打卡记录 "path" : "signRecord/signRecord", "style" : { "navigationBarTitleText": "打卡记录", "enablePullDownRefresh": true } }, { //工资记录 "path" : "wagesRecord/wagesRecord", "style" : { "navigationBarTitleText": "工资记录", "enablePullDownRefresh": true } }, { //加班记录 "path" : "overtimeRecord/overtimeRecord", "style" : { "navigationBarTitleText": "加班记录", "enablePullDownRefresh": true } }, { //编辑加班 "path" : "overtimeEdit/overtimeEdit", "style" : { "navigationBarTitleText": "编辑加班", "enablePullDownRefresh": false } }, { //单页 "path" : "singlePage/singlePage", "style" : { "navigationBarTitleText": "单页", "enablePullDownRefresh": false } }, { //录入详情 "path" : "enterDetail/enterDetail", "style" : { "navigationBarTitleText": "录入详情", "enablePullDownRefresh": false } } ] } ], "preloadRule": { "pages/worker/my/my": { "network": "all", "packages": ["pagesA"] } }, "globalStyle": { "navigationBarTextStyle": "black", "navigationBarBackgroundColor": "#ffffff", //导航栏背景色 "navigationStyle": "custom", //禁用原生导航栏,微信小程序可用 "backgroundColor":"#ffffff", //下拉显示出来的窗口的背景色 "backgroundTextStyle":"light", //下拉 loading 的样式,仅支持 dark / light "app-plus": { "titleNView": false, //禁用原生导航栏,APP和H5可用 "bounce": "none", "scrollIndicator": "none" } }, "condition" : { //模式配置,仅开发期间生效 "current": 0, //当前激活的模式(list 的索引项) "list": [ { "name": "", //模式名称 "path": "", //启动页面,必选 "query": "" //启动参数,在页面的onLoad函数里面得到 } ] } }