{ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { //首页 "path": "pages/home/index" }, { //扫码换电 "path": "pages/scanCode/index" }, { //我的 "path": "pages/mine/index" }, { //登录 "path": "pages/login/index" } ], "subPackages": [ { "root":"homePages", "pages":[ { "path": "agreement/index" }, { "path": "reservation/index" //预约 } ] }, { "root":"codePages", "pages":[ { "path": "index" } ] }, { "root":"minePages", "pages":[ { "path": "recharge/index" //充值 }, { "path": "userInfor/index" //个人信息 }, { "path": "account/index" //钱包 }, { "path": "reserlist/index" //预约记录 }, { "path": "vehicle/index" //车辆管理 }, { "path": "order/index" //订单管理 }, { "path": "about/index" //关于我们 }, { "path": "agreement/index" //协议 }, { "path": "payment/index" //支付 }, { "path": "paySuccess/index" //支付成功 }, { "path": "company/index" //所属公司 }, { "path": "invoice/index" //电子发票 } ] } ], "globalStyle": { "titleNView": false, // 去除App、H5的顶部导航 "navigationStyle": "custom" //去除小程序顶部导航栏 }, "tabBar": { //"custom":false "color": "#404244", "selectedColor": "#00aa00", "borderStyle": "black", "backgroundColor": "#ffffff", "midButton":{ //小程序不支持 "width": "100px", "height": "80px", //"pagePath": "pages/scanCode/index", "iconPath": "static/img/tabbar/saom.png", "backgroundImage":"static/img/tabbar/saom.png", //"selectedIconPath": "static/img/tabbar/saom.png", "text": "扫码换电" }, "list": [ { "pagePath": "pages/home/index", "iconPath": "static/img/tabbar/home.png", "ielectedIconPath": "static/img/tabbar/home.png", "text": "首页" }, // { // "pagePath":"pages/scanCode/index", // "iconPath": "static/img/tabbar/saom.png", // "selectedIconPath": "static/img/tabbar/saom.png", // "text": "扫码换电" // }, { "pagePath": "pages/mine/index", "iconPath": "static/img/tabbar/wode.png", "selectedIconPath": "static/img/tabbar/wode.png", "text": "我的" } ] }, "easycom": { "autoscan": true, // 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175 "custom": { "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue", "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue", "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue" } } }