pages.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. {
  2. "pages": [
  3. //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  4. {
  5. "path": "pages/tabBar/index/index",
  6. "style": {
  7. "navigationBarTitleText": "呵呵商城",
  8. "enablePullDownRefresh": true,
  9. "backgroundColor": "#F952B7",
  10. "navigationBarBackgroundColor": "#F952B7",
  11. "navigationBarTextStyle": "white"
  12. }
  13. },
  14. {
  15. "path": "pages/tabBar/cart/index",
  16. "style": {
  17. "navigationBarTitleText": "购物车",
  18. "enablePullDownRefresh": true
  19. }
  20. },
  21. {
  22. "path": "pages/tabBar/user/index",
  23. "style": {
  24. "navigationBarTitleText": "个人中心",
  25. "enablePullDownRefresh": true
  26. }
  27. },
  28. {
  29. "path": "pages/authorize/authorize",
  30. "style": {
  31. "navigationBarTitleText": "微信授权"
  32. }
  33. },
  34. {
  35. "path": "pages/authorize/login",
  36. "style": {
  37. "navigationBarTitleText": "登录"
  38. }
  39. }
  40. ],
  41. "subPackages": [{
  42. "root": "pages/goods/",
  43. "pages": [{
  44. "path": "list",
  45. "style": {
  46. "navigationBarTitleText": "立即下单"
  47. }
  48. },
  49. {
  50. "path": "cart",
  51. "style": {
  52. "navigationBarTitleText": "购物车",
  53. "enablePullDownRefresh": true,
  54. "navigationStyle": "custom"
  55. }
  56. },
  57. {
  58. "path": "product-detail",
  59. "style": {
  60. "navigationBarTitleText": "商品详情"
  61. }
  62. },
  63. {
  64. "path": "good-floorMore",
  65. "style": {
  66. "navigationBarTitleText": "商品列表",
  67. "enablePullDownRefresh": true
  68. }
  69. },
  70. {
  71. "path": "goods-search",
  72. "style": {
  73. "navigationBarTitleText": "搜索"
  74. }
  75. },
  76. {
  77. "path": "goods-coupon-list",
  78. "style": {
  79. "navigationBarTitleText": "优惠券商品列表",
  80. "enablePullDownRefresh": true
  81. }
  82. },
  83. {
  84. "path": "goods-coupon-list-search",
  85. "style": {
  86. "navigationBarTitleText": "搜索"
  87. }
  88. }
  89. ]
  90. },
  91. {
  92. "root": "pages/user/", //个人中心模块
  93. "pages": [{
  94. "path": "address/addressManage",
  95. "style": {
  96. "navigationBarTitleText": "添加新地址"
  97. }
  98. },
  99. {
  100. "path": "address/address",
  101. "style": {
  102. "navigationBarTitleText": "地址列表",
  103. "enablePullDownRefresh": true,
  104. "onReachBottomDistance": 50
  105. }
  106. },
  107. {
  108. "path": "activity/activity",
  109. "style": {
  110. "navigationBarTitleText": "活动详情",
  111. "enablePullDownRefresh": true,
  112. "backgroundColor": "#ff457b",
  113. "backgroundTextStyle": "light",
  114. "onReachBottomDistance": 50
  115. }
  116. },
  117. {
  118. "path": "activity/activity-list",
  119. "style": {
  120. "navigationBarTitleText": "活动专区",
  121. "enablePullDownRefresh": true,
  122. "onReachBottomDistance": 50
  123. }
  124. },
  125. {
  126. "path": "activity/coupon-find-list",
  127. "style": {
  128. "navigationBarTitleText": "领券中心"
  129. }
  130. },
  131. {
  132. "path": "activity/coupon-list",
  133. "style": {
  134. "navigationBarTitleText": "优惠券"
  135. }
  136. }
  137. ]
  138. },
  139. {
  140. "root": "pages/fight-order",
  141. "pages": [{
  142. "path": "fight-detail",
  143. "style": {
  144. "navigationBarTitleText": "拼单详情"
  145. }
  146. }, {
  147. "path": "fight-share-entry",
  148. "style": {
  149. "navigationBarTitleText": "拼单"
  150. }
  151. }]
  152. },
  153. // 新订单模块
  154. {
  155. "root": "pages/order",
  156. "pages": [{
  157. "path": "order-create",
  158. "style": {
  159. "navigationBarTitleText": "创建订单"
  160. }
  161. },
  162. {
  163. "path": "order-list",
  164. "style": {
  165. "navigationBarTitleText": "订单列表",
  166. "navigationStyle": "custom"
  167. }
  168. },
  169. {
  170. "path": "order-detail",
  171. "style": {
  172. "navigationBarTitleText": "订单详情"
  173. }
  174. },
  175. {
  176. "path": "order-search",
  177. "style": {
  178. "navigationBarTitleText": "订单搜索"
  179. }
  180. },
  181. {
  182. "path": "success",
  183. "style": {
  184. "navigationBarTitleText": "支付成功"
  185. }
  186. },
  187. {
  188. "path": "error",
  189. "style": {
  190. "navigationBarTitleText": "支付失败"
  191. }
  192. },
  193. {
  194. "path": "order-payment",
  195. "style": {
  196. "navigationBarTitleText": "收银台"
  197. }
  198. },
  199. {
  200. "path": "order-logistics",
  201. "style": {
  202. "navigationBarTitleText": "物流信息"
  203. }
  204. }
  205. ]
  206. }
  207. ],
  208. "tabBar": {
  209. "height": "80",
  210. "color": "#999999",
  211. "selectedColor": "#ff457b",
  212. "borderStyle": "black",
  213. "backgroundColor": "#ffffff",
  214. "list": [{
  215. "pagePath": "pages/tabBar/index/index",
  216. "iconPath": "static/icon-index@2x.png",
  217. "selectedIconPath": "static/icon-index-active@2x.png",
  218. "text": "商城"
  219. },
  220. {
  221. "pagePath": "pages/tabBar/cart/index",
  222. "iconPath": "static/icon-cart@2x.png",
  223. "selectedIconPath": "static/icon-cart-active@2x.png",
  224. "text": "购物车"
  225. },
  226. {
  227. "pagePath": "pages/tabBar/user/index",
  228. "iconPath": "static/icon-user@2x.png",
  229. "selectedIconPath": "static/icon-user-active@2x.png",
  230. "text": "我的"
  231. }
  232. ]
  233. },
  234. "easycom": {
  235. "autoscan": true,
  236. "custom": {
  237. "tui-(.*)": "@/components/thorui/tui-$1/tui-$1.vue",
  238. "uni-(.*)": "@/components/uni-components/uni-$1/uni-$1.vue",
  239. "scroll-top": "@/components/cm-module/scrollTop/scrollTop.vue"
  240. }
  241. },
  242. "globalStyle": {
  243. "navigationBarTextStyle": "black",
  244. "navigationBarTitleText": "呵呵商城",
  245. "navigationBarBackgroundColor": "#FFFFFF",
  246. "backgroundColor": "#FFFFFF"
  247. },
  248. "condition": {
  249. //模式配置,仅开发期间生效
  250. "current": 0, //当前激活的模式(list 的索引项)
  251. "list": [{
  252. "name": "", //模式名称
  253. "path": "", //启动页面,必选
  254. "query": "" //启动参数,在页面的onLoad函数里面得到
  255. }]
  256. }
  257. }