pages.json 7.5 KB

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