{ "easycom": { "autoscan": true, // 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175 "custom": { "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue", "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue", "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue" } }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/login/login", "style": { "navigationBarTitleText": "登录", "enablePullDownRefresh": false, "navigationStyle": "custom" } }, { "path": "pages/index/index", "style": { "navigationBarTitleText": "购物", "disableScroll": true, "navigationStyle": "custom" } }, { "path": "pages/cart/cart", "style": { "navigationBarTitleText": "购物车", "enablePullDownRefresh": false, "navigationStyle": "custom" } }, { "path": "pages/my/my", "style": { "navigationBarTitleText": "个人中心", "enablePullDownRefresh": false, "navigationStyle": "custom" } } ], "subPackages": [{ "root": "pagesOrder", "pages": [{ "path": "order/order", "style": { "navigationBarTitleText": "我的订单", "enablePullDownRefresh": false } }, { "path": "detail/detail", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } }, { "path": "addressList/addressList", "style": { "navigationBarTitleText": "地址管理", "enablePullDownRefresh": false } }, { "path": "addressEdit/addressEdit", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } }, { "path": "settle/settle", "style": { "navigationBarTitleText": "确认订单", "enablePullDownRefresh": false } } ] }, { "root": "pageQuota", "pages": [{ "path": "quotation/index", "style": { "navigationBarTitleText": "报价单", "enablePullDownRefresh": false, "navigationStyle": "custom" } }, { "path": "goodDetail/index", "style": { "navigationBarTitleText": "商品详情", "enablePullDownRefresh": false } } ] }], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "", "navigationBarBackgroundColor": "#fff", "backgroundColor": "#fff" }, // "tabBar": { // "color": "#999999", // "selectedColor": "#20b128", // "borderStyle": "white", // "backgroundColor": "#FFFFFF", // "list": [{ // "pagePath": "pages/index/index", // "text": "首页", // "iconPath": "static/tab/a.png", // "selectedIconPath": "static/tab/aa.png" // }, // { // "pagePath": "pages/cart/cart", // "text": "购物车", // "iconPath": "static/tab/b.png", // "selectedIconPath": "static/tab/ba.png" // }, // { // "pagePath": "pages/my/my", // "text": "我的", // "iconPath": "static/tab/c.png", // "selectedIconPath": "static/tab/ca.png" // } // ] // }, "uniIdRouter": {} }