{ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", "style": { "navigationBarTitleText": "果蔬农贸点单小程序" } }, { "path" : "pages/shop/shop", "style" : { "navigationBarTitleText" : "", "enablePullDownRefresh" : false } }, { "path" : "pages/home/home", "style" : { "navigationBarTitleText" : "", "enablePullDownRefresh" : false, "backgroundColor": "#8f8f94" } }, { "path" : "subpkg/login/login", "style" : { "navigationBarTitleText" : "", "enablePullDownRefresh" : false } } , { "path": "subpkg/order/order", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } } , { "path": "subpkg/search/search", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } } , { "path": "subpkg/shopdetail/shopdetail", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } } , { "path": "subpkg/payment/payment", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } } , { "path": "subpkg/addAddress/addAddress", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } } , { "path": "subpkg/setting/setting", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } } ], "globalStyle": { "navigationBarBackgroundColor": "#FFFFFF", "navigationBarTextStyle": "black", "navigationBarTitleText": "果蔬农贸", "backgroundColor": "#F8F8F8", // "navigationBarTextStyle": "black", // "navigationBarTitleText": "uni-app", // "navigationBarBackgroundColor": "#F8F8F8", // "backgroundColor": "#F8F8F8", "usingComponents": { // "van-button": "/wxcomponents/vant/button/index", // "van-badge": "/wxcomponents/vant/badge/index", "van-action-sheet": "/wxcomponents/vant/action-sheet/index", "van-area": "/wxcomponents/vant/area/index", "van-button": "/wxcomponents/vant/button/index", "van-card": "/wxcomponents/vant/card/index", "van-cell": "/wxcomponents/vant/cell/index", "van-cell-group": "/wxcomponents/vant/cell-group/index", "van-checkbox": "/wxcomponents/vant/checkbox/index", "van-checkbox-group": "/wxcomponents/vant/checkbox-group/index", "van-col": "/wxcomponents/vant/col/index", "van-dialog": "/wxcomponents/vant/dialog/index", "van-field": "/wxcomponents/vant/field/index", "van-goods-action": "/wxcomponents/vant/goods-action/index", "van-goods-action-icon": "/wxcomponents/vant/goods-action-icon/index", "van-goods-action-button": "/wxcomponents/vant/goods-action-button/index", "van-icon": "/wxcomponents/vant/icon/index", "van-loading": "/wxcomponents/vant/loading/index", "van-nav-bar": "/wxcomponents/vant/nav-bar/index", "van-notice-bar": "/wxcomponents/vant/notice-bar/index", "van-notify": "/wxcomponents/vant/notify/index", "van-panel": "/wxcomponents/vant/panel/index", "van-popup": "/wxcomponents/vant/popup/index", "van-progress": "/wxcomponents/vant/progress/index", "van-radio": "/wxcomponents/vant/radio/index", "van-radio-group": "/wxcomponents/vant/radio-group/index", "van-row": "/wxcomponents/vant/row/index", "van-search": "/wxcomponents/vant/search/index", "van-slider": "/wxcomponents/vant/slider/index", "van-stepper": "/wxcomponents/vant/stepper/index", "van-steps": "/wxcomponents/vant/steps/index", "van-submit-bar": "/wxcomponents/vant/submit-bar/index", "van-swipe-cell": "/wxcomponents/vant/swipe-cell/index", "van-switch": "/wxcomponents/vant/switch/index", "van-tab": "/wxcomponents/vant/tab/index", "van-tabs": "/wxcomponents/vant/tabs/index", "van-tabbar": "/wxcomponents/vant/tabbar/index", "van-tabbar-item": "/wxcomponents/vant/tabbar-item/index", "van-tag": "/wxcomponents/vant/tag/index", "van-toast": "/wxcomponents/vant/toast/index", "van-transition": "/wxcomponents/vant/transition/index", "van-tree-select": "/wxcomponents/vant/tree-select/index", "van-datetime-picker": "/wxcomponents/vant/datetime-picker/index", "van-rate": "/wxcomponents/vant/rate/index", "van-collapse": "/wxcomponents/vant/collapse/index", "van-collapse-item": "/wxcomponents/vant/collapse-item/index", "van-picker": "/wxcomponents/vant/picker/index", "van-grid":"/wxcomponents/vant/grid/index", "van-grid-item":"/wxcomponents/vant/grid-item/index", "van-empty":"/wxcomponents/vant/empty/index", "van-notice-bar":"/wxcomponents/vant/notice-bar/index", "van-index-bar":"/wxcomponents/vant/index-bar/index", "van-index-anchor":"/wxcomponents/vant/index-anchor/index", "van-sticky":"/wxcomponents/vant/sticky/index" } }, "uniIdRouter": {}, "tabBar": { "color": "#7A7E83", "selectedColor": "#3cc51f", "borderStyle": "black", "backgroundColor": "#ffffff", "list": [{ "pagePath": "pages/index/index", "iconPath": "static/icons/index.png", "selectedIconPath": "static/icons/index_sel.png", "text": "首页" }, { "pagePath": "pages/shop/shop", "iconPath": "static/icons/shop.png", "selectedIconPath": "static/icons/shop_sel.png", "text": "电商" }, // { // "pagePath": "pages/cart/cart", // "iconPath": "static/icons/cart.png", // "selectedIconPath": "static/icons/cart_sel.png", // "text": "购物车" // }, { "pagePath": "pages/home/home", "iconPath": "static/icons/home.png", "selectedIconPath": "static/icons/home_sel.png", "text": "我的" }] }, // , // "condition": { //模式配置,仅开发期间生效 // "current": 0, //当前激活的模式(list 的索引项) // "list": [{ // "name": "home", //模式名称 // // "path": "pages/component/swiper/swiper", //启动页面,必选 // "path": "pages/home/home", //启动页面,必选 // "query": "interval=4000&autoplay=false" //启动参数,在页面的onLoad函数里面得到。 // }, // { // "name": "shop", // "path": "pages/shop/shop" // } // ] // }, // "pages": [{ // "path": "pages/index/index", // "style": { ...} // }, { // "path": "pages/login/login", // "style": { ...} // }], // "subPackages": [{ // "root": "pagesA", // "pages": [ // { // "path" : "list/list", // "style" : // { // "navigationBarTitleText" : "", // "enablePullDownRefresh" : false // } // }] // }, { // "root": "pagesB", // "pages": [ // { // "path" : "detail/detail", // "style" : // { // "navigationBarTitleText" : "", // "enablePullDownRefresh" : false // } // }] // }], // "preloadRule": { // "pagesA/list/list": { // "network": "all", // "packages": ["__APP__"] // }, // "pagesB/detail/detail": { // "network": "all", // "packages": ["pagesA"] // } // } "easycom": { "autoscan": true, "custom": { "^uni-(.*)": "@/components/uni-$1.vue", // 匹配components目录内的vue文件 "^vue-file-(.*)": "packageName/path/to/vue-file-$1.vue" // 匹配node_modules内的vue文件 } }, "permission": { "scope.userLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位 } } }