pages.json 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/index/index",
  5. "style": {
  6. "navigationBarTitleText": "果蔬农贸点单小程序"
  7. }
  8. },
  9. {
  10. "path" : "pages/shop/shop",
  11. "style" :
  12. {
  13. "navigationBarTitleText" : "",
  14. "enablePullDownRefresh" : false
  15. }
  16. },
  17. {
  18. "path" : "pages/home/home",
  19. "style" :
  20. {
  21. "navigationBarTitleText" : "",
  22. "enablePullDownRefresh" : false,
  23. "backgroundColor": "#8f8f94"
  24. }
  25. },
  26. {
  27. "path" : "subpkg/login/login",
  28. "style" :
  29. {
  30. "navigationBarTitleText" : "",
  31. "enablePullDownRefresh" : false
  32. }
  33. }
  34. ,
  35. {
  36. "path": "subpkg/order/order",
  37. "style": {
  38. "navigationBarTitleText": "",
  39. "enablePullDownRefresh": false
  40. }
  41. }
  42. ,
  43. {
  44. "path": "subpkg/search/search",
  45. "style": {
  46. "navigationBarTitleText": "",
  47. "enablePullDownRefresh": false
  48. }
  49. }
  50. ,
  51. {
  52. "path": "subpkg/shopdetail/shopdetail",
  53. "style": {
  54. "navigationBarTitleText": "",
  55. "enablePullDownRefresh": false
  56. }
  57. }
  58. ,
  59. {
  60. "path": "subpkg/payment/payment",
  61. "style": {
  62. "navigationBarTitleText": "",
  63. "enablePullDownRefresh": false
  64. }
  65. }
  66. ,
  67. {
  68. "path": "subpkg/addAddress/addAddress",
  69. "style": {
  70. "navigationBarTitleText": "",
  71. "enablePullDownRefresh": false
  72. }
  73. }
  74. ,
  75. {
  76. "path": "subpkg/setting/setting",
  77. "style": {
  78. "navigationBarTitleText": "",
  79. "enablePullDownRefresh": false
  80. }
  81. }
  82. ],
  83. "globalStyle": {
  84. "navigationBarBackgroundColor": "#FFFFFF",
  85. "navigationBarTextStyle": "black",
  86. "navigationBarTitleText": "果蔬农贸",
  87. "backgroundColor": "#F8F8F8",
  88. // "navigationBarTextStyle": "black",
  89. // "navigationBarTitleText": "uni-app",
  90. // "navigationBarBackgroundColor": "#F8F8F8",
  91. // "backgroundColor": "#F8F8F8",
  92. "usingComponents": {
  93. // "van-button": "/wxcomponents/vant/button/index",
  94. // "van-badge": "/wxcomponents/vant/badge/index",
  95. "van-action-sheet": "/wxcomponents/vant/action-sheet/index",
  96. "van-area": "/wxcomponents/vant/area/index",
  97. "van-button": "/wxcomponents/vant/button/index",
  98. "van-card": "/wxcomponents/vant/card/index",
  99. "van-cell": "/wxcomponents/vant/cell/index",
  100. "van-cell-group": "/wxcomponents/vant/cell-group/index",
  101. "van-checkbox": "/wxcomponents/vant/checkbox/index",
  102. "van-checkbox-group": "/wxcomponents/vant/checkbox-group/index",
  103. "van-col": "/wxcomponents/vant/col/index",
  104. "van-dialog": "/wxcomponents/vant/dialog/index",
  105. "van-field": "/wxcomponents/vant/field/index",
  106. "van-goods-action": "/wxcomponents/vant/goods-action/index",
  107. "van-goods-action-icon": "/wxcomponents/vant/goods-action-icon/index",
  108. "van-goods-action-button": "/wxcomponents/vant/goods-action-button/index",
  109. "van-icon": "/wxcomponents/vant/icon/index",
  110. "van-loading": "/wxcomponents/vant/loading/index",
  111. "van-nav-bar": "/wxcomponents/vant/nav-bar/index",
  112. "van-notice-bar": "/wxcomponents/vant/notice-bar/index",
  113. "van-notify": "/wxcomponents/vant/notify/index",
  114. "van-panel": "/wxcomponents/vant/panel/index",
  115. "van-popup": "/wxcomponents/vant/popup/index",
  116. "van-progress": "/wxcomponents/vant/progress/index",
  117. "van-radio": "/wxcomponents/vant/radio/index",
  118. "van-radio-group": "/wxcomponents/vant/radio-group/index",
  119. "van-row": "/wxcomponents/vant/row/index",
  120. "van-search": "/wxcomponents/vant/search/index",
  121. "van-slider": "/wxcomponents/vant/slider/index",
  122. "van-stepper": "/wxcomponents/vant/stepper/index",
  123. "van-steps": "/wxcomponents/vant/steps/index",
  124. "van-submit-bar": "/wxcomponents/vant/submit-bar/index",
  125. "van-swipe-cell": "/wxcomponents/vant/swipe-cell/index",
  126. "van-switch": "/wxcomponents/vant/switch/index",
  127. "van-tab": "/wxcomponents/vant/tab/index",
  128. "van-tabs": "/wxcomponents/vant/tabs/index",
  129. "van-tabbar": "/wxcomponents/vant/tabbar/index",
  130. "van-tabbar-item": "/wxcomponents/vant/tabbar-item/index",
  131. "van-tag": "/wxcomponents/vant/tag/index",
  132. "van-toast": "/wxcomponents/vant/toast/index",
  133. "van-transition": "/wxcomponents/vant/transition/index",
  134. "van-tree-select": "/wxcomponents/vant/tree-select/index",
  135. "van-datetime-picker": "/wxcomponents/vant/datetime-picker/index",
  136. "van-rate": "/wxcomponents/vant/rate/index",
  137. "van-collapse": "/wxcomponents/vant/collapse/index",
  138. "van-collapse-item": "/wxcomponents/vant/collapse-item/index",
  139. "van-picker": "/wxcomponents/vant/picker/index",
  140. "van-grid":"/wxcomponents/vant/grid/index",
  141. "van-grid-item":"/wxcomponents/vant/grid-item/index",
  142. "van-empty":"/wxcomponents/vant/empty/index",
  143. "van-notice-bar":"/wxcomponents/vant/notice-bar/index",
  144. "van-index-bar":"/wxcomponents/vant/index-bar/index",
  145. "van-index-anchor":"/wxcomponents/vant/index-anchor/index",
  146. "van-sticky":"/wxcomponents/vant/sticky/index"
  147. }
  148. },
  149. "uniIdRouter": {},
  150. "tabBar": {
  151. "color": "#7A7E83",
  152. "selectedColor": "#3cc51f",
  153. "borderStyle": "black",
  154. "backgroundColor": "#ffffff",
  155. "list": [{
  156. "pagePath": "pages/index/index",
  157. "iconPath": "static/icons/index.png",
  158. "selectedIconPath": "static/icons/index_sel.png",
  159. "text": "首页"
  160. },
  161. {
  162. "pagePath": "pages/shop/shop",
  163. "iconPath": "static/icons/shop.png",
  164. "selectedIconPath": "static/icons/shop_sel.png",
  165. "text": "电商"
  166. },
  167. // {
  168. // "pagePath": "pages/cart/cart",
  169. // "iconPath": "static/icons/cart.png",
  170. // "selectedIconPath": "static/icons/cart_sel.png",
  171. // "text": "购物车"
  172. // },
  173. {
  174. "pagePath": "pages/home/home",
  175. "iconPath": "static/icons/home.png",
  176. "selectedIconPath": "static/icons/home_sel.png",
  177. "text": "我的"
  178. }]
  179. },
  180. // ,
  181. // "condition": { //模式配置,仅开发期间生效
  182. // "current": 0, //当前激活的模式(list 的索引项)
  183. // "list": [{
  184. // "name": "home", //模式名称
  185. // // "path": "pages/component/swiper/swiper", //启动页面,必选
  186. // "path": "pages/home/home", //启动页面,必选
  187. // "query": "interval=4000&autoplay=false" //启动参数,在页面的onLoad函数里面得到。
  188. // },
  189. // {
  190. // "name": "shop",
  191. // "path": "pages/shop/shop"
  192. // }
  193. // ]
  194. // },
  195. // "pages": [{
  196. // "path": "pages/index/index",
  197. // "style": { ...}
  198. // }, {
  199. // "path": "pages/login/login",
  200. // "style": { ...}
  201. // }],
  202. // "subPackages": [{
  203. // "root": "pagesA",
  204. // "pages": [
  205. // {
  206. // "path" : "list/list",
  207. // "style" :
  208. // {
  209. // "navigationBarTitleText" : "",
  210. // "enablePullDownRefresh" : false
  211. // }
  212. // }]
  213. // }, {
  214. // "root": "pagesB",
  215. // "pages": [
  216. // {
  217. // "path" : "detail/detail",
  218. // "style" :
  219. // {
  220. // "navigationBarTitleText" : "",
  221. // "enablePullDownRefresh" : false
  222. // }
  223. // }]
  224. // }],
  225. // "preloadRule": {
  226. // "pagesA/list/list": {
  227. // "network": "all",
  228. // "packages": ["__APP__"]
  229. // },
  230. // "pagesB/detail/detail": {
  231. // "network": "all",
  232. // "packages": ["pagesA"]
  233. // }
  234. // }
  235. "easycom": {
  236. "autoscan": true,
  237. "custom": {
  238. "^uni-(.*)": "@/components/uni-$1.vue", // 匹配components目录内的vue文件
  239. "^vue-file-(.*)": "packageName/path/to/vue-file-$1.vue" // 匹配node_modules内的vue文件
  240. }
  241. },
  242. "permission": {
  243. "scope.userLocation": {
  244. "desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位
  245. }
  246. }
  247. }