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