pages.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/index/index",
  5. "style": {
  6. "navigationBarTitleText": "uni-app"
  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. "globalStyle": {
  52. "navigationBarTextStyle": "black",
  53. "navigationBarTitleText": "uni-app",
  54. "navigationBarBackgroundColor": "#F8F8F8",
  55. "backgroundColor": "#F8F8F8",
  56. "usingComponents": {
  57. // "van-button": "/wxcomponents/vant/button/index",
  58. "van-action-sheet": "/wxcomponents/vant/action-sheet/index",
  59. "van-area": "/wxcomponents/vant/area/index",
  60. "van-button": "/wxcomponents/vant/button/index",
  61. "van-card": "/wxcomponents/vant/card/index",
  62. "van-cell": "/wxcomponents/vant/cell/index",
  63. "van-cell-group": "/wxcomponents/vant/cell-group/index",
  64. "van-checkbox": "/wxcomponents/vant/checkbox/index",
  65. "van-checkbox-group": "/wxcomponents/vant/checkbox-group/index",
  66. "van-col": "/wxcomponents/vant/col/index",
  67. "van-dialog": "/wxcomponents/vant/dialog/index",
  68. "van-field": "/wxcomponents/vant/field/index",
  69. "van-goods-action": "/wxcomponents/vant/goods-action/index",
  70. "van-goods-action-icon": "/wxcomponents/vant/goods-action-icon/index",
  71. "van-goods-action-button": "/wxcomponents/vant/goods-action-button/index",
  72. "van-icon": "/wxcomponents/vant/icon/index",
  73. "van-loading": "/wxcomponents/vant/loading/index",
  74. "van-nav-bar": "/wxcomponents/vant/nav-bar/index",
  75. "van-notice-bar": "/wxcomponents/vant/notice-bar/index",
  76. "van-notify": "/wxcomponents/vant/notify/index",
  77. "van-panel": "/wxcomponents/vant/panel/index",
  78. "van-popup": "/wxcomponents/vant/popup/index",
  79. "van-progress": "/wxcomponents/vant/progress/index",
  80. "van-radio": "/wxcomponents/vant/radio/index",
  81. "van-radio-group": "/wxcomponents/vant/radio-group/index",
  82. "van-row": "/wxcomponents/vant/row/index",
  83. "van-search": "/wxcomponents/vant/search/index",
  84. "van-slider": "/wxcomponents/vant/slider/index",
  85. "van-stepper": "/wxcomponents/vant/stepper/index",
  86. "van-steps": "/wxcomponents/vant/steps/index",
  87. "van-submit-bar": "/wxcomponents/vant/submit-bar/index",
  88. "van-swipe-cell": "/wxcomponents/vant/swipe-cell/index",
  89. "van-switch": "/wxcomponents/vant/switch/index",
  90. "van-tab": "/wxcomponents/vant/tab/index",
  91. "van-tabs": "/wxcomponents/vant/tabs/index",
  92. "van-tabbar": "/wxcomponents/vant/tabbar/index",
  93. "van-tabbar-item": "/wxcomponents/vant/tabbar-item/index",
  94. "van-tag": "/wxcomponents/vant/tag/index",
  95. "van-toast": "/wxcomponents/vant/toast/index",
  96. "van-transition": "/wxcomponents/vant/transition/index",
  97. "van-tree-select": "/wxcomponents/vant/tree-select/index",
  98. "van-datetime-picker": "/wxcomponents/vant/datetime-picker/index",
  99. "van-rate": "/wxcomponents/vant/rate/index",
  100. "van-collapse": "/wxcomponents/vant/collapse/index",
  101. "van-collapse-item": "/wxcomponents/vant/collapse-item/index",
  102. "van-picker": "/wxcomponents/vant/picker/index",
  103. "van-grid":"/wxcomponents/vant/grid/index",
  104. "van-grid-item":"/wxcomponents/vant/grid-item/index",
  105. "van-empty":"/wxcomponents/vant/empty/index",
  106. "van-notice-bar":"/wxcomponents/vant/notice-bar/index",
  107. "van-index-bar":"/wxcomponents/vant/index-bar/index",
  108. "van-index-anchor":"/wxcomponents/vant/index-anchor/index",
  109. "van-sticky":"/wxcomponents/vant/sticky/index"
  110. }
  111. },
  112. "uniIdRouter": {},
  113. "tabBar": {
  114. "color": "#7A7E83",
  115. "selectedColor": "#3cc51f",
  116. "borderStyle": "black",
  117. "backgroundColor": "#ffffff",
  118. "list": [{
  119. "pagePath": "pages/index/index",
  120. "iconPath": "static/icons/index.png",
  121. "selectedIconPath": "static/icons/index_sel.png",
  122. "text": "首页"
  123. },
  124. {
  125. "pagePath": "pages/shop/shop",
  126. "iconPath": "static/icons/shop.png",
  127. "selectedIconPath": "static/icons/shop_sel.png",
  128. "text": "电商"
  129. },
  130. // {
  131. // "pagePath": "pages/cart/cart",
  132. // "iconPath": "static/icons/cart.png",
  133. // "selectedIconPath": "static/icons/cart_sel.png",
  134. // "text": "购物车"
  135. // },
  136. {
  137. "pagePath": "pages/home/home",
  138. "iconPath": "static/icons/home.png",
  139. "selectedIconPath": "static/icons/home_sel.png",
  140. "text": "我的"
  141. }]
  142. },
  143. // ,
  144. // "condition": { //模式配置,仅开发期间生效
  145. // "current": 0, //当前激活的模式(list 的索引项)
  146. // "list": [{
  147. // "name": "home", //模式名称
  148. // // "path": "pages/component/swiper/swiper", //启动页面,必选
  149. // "path": "pages/home/home", //启动页面,必选
  150. // "query": "interval=4000&autoplay=false" //启动参数,在页面的onLoad函数里面得到。
  151. // },
  152. // {
  153. // "name": "shop",
  154. // "path": "pages/shop/shop"
  155. // }
  156. // ]
  157. // },
  158. // "pages": [{
  159. // "path": "pages/index/index",
  160. // "style": { ...}
  161. // }, {
  162. // "path": "pages/login/login",
  163. // "style": { ...}
  164. // }],
  165. // "subPackages": [{
  166. // "root": "pagesA",
  167. // "pages": [
  168. // {
  169. // "path" : "list/list",
  170. // "style" :
  171. // {
  172. // "navigationBarTitleText" : "",
  173. // "enablePullDownRefresh" : false
  174. // }
  175. // }]
  176. // }, {
  177. // "root": "pagesB",
  178. // "pages": [
  179. // {
  180. // "path" : "detail/detail",
  181. // "style" :
  182. // {
  183. // "navigationBarTitleText" : "",
  184. // "enablePullDownRefresh" : false
  185. // }
  186. // }]
  187. // }],
  188. // "preloadRule": {
  189. // "pagesA/list/list": {
  190. // "network": "all",
  191. // "packages": ["__APP__"]
  192. // },
  193. // "pagesB/detail/detail": {
  194. // "network": "all",
  195. // "packages": ["pagesA"]
  196. // }
  197. // }
  198. "easycom": {
  199. "autoscan": true,
  200. "custom": {
  201. "^uni-(.*)": "@/components/uni-$1.vue", // 匹配components目录内的vue文件
  202. "^vue-file-(.*)": "packageName/path/to/vue-file-$1.vue" // 匹配node_modules内的vue文件
  203. }
  204. },
  205. "permission": {
  206. "scope.userLocation": {
  207. "desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位
  208. }
  209. }
  210. }