pages.json 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. "subPackages": [{
  84. "root": "pages/user/", //个人中心模块
  85. "pages": [{
  86. "path": "address/addressManage",
  87. "style": {
  88. "navigationBarTitleText": "添加新地址"
  89. }
  90. },
  91. {
  92. "path": "address/address",
  93. "style": {
  94. "navigationBarTitleText": "地址列表",
  95. "enablePullDownRefresh": true,
  96. "onReachBottomDistance": 50
  97. }
  98. },
  99. {
  100. "path": "order/create-order",
  101. "style": {
  102. "navigationBarTitleText": "确认订单"
  103. }
  104. },
  105. {
  106. "path": "order/success",
  107. "style": {
  108. "navigationBarTitleText": "支付结果",
  109. "navigationStyle": "custom"
  110. }
  111. },
  112. {
  113. "path": "order/order-list",
  114. "style": {
  115. "navigationBarTitleText": "我的订单",
  116. "navigationStyle": "custom"
  117. }
  118. },
  119. {
  120. "path": "order/order-list-retail",
  121. "style": {
  122. "navigationBarTitleText": "我的订单",
  123. "navigationStyle": "custom"
  124. }
  125. },
  126. {
  127. "path": "order/order-details",
  128. "style": {
  129. "navigationBarTitleText": "订单详情",
  130. "navigationStyle": "custom"
  131. }
  132. },
  133. {
  134. "path": "order/order-payment",
  135. "style": {
  136. "navigationBarTitleText": "收银台",
  137. "navigationStyle": "custom"
  138. }
  139. },
  140. {
  141. "path": "order/search-order",
  142. "style": {
  143. "navigationBarTitleText": "订单搜索"
  144. }
  145. },
  146. {
  147. "path": "order/order-logistics",
  148. "style": {
  149. "navigationBarTitleText": "物流信息"
  150. }
  151. },
  152. {
  153. "path": "activity/activity",
  154. "style": {
  155. "navigationBarTitleText": "活动详情",
  156. "enablePullDownRefresh": true,
  157. "backgroundColor": "#ff457b",
  158. "backgroundTextStyle": "light",
  159. "onReachBottomDistance": 50
  160. }
  161. },
  162. {
  163. "path": "activity/activity-list",
  164. "style": {
  165. "navigationBarTitleText": "活动专区",
  166. "enablePullDownRefresh": true,
  167. "onReachBottomDistance": 50
  168. }
  169. }
  170. ]
  171. }],
  172. "tabBar": {
  173. "height": "80",
  174. "color": "#999999",
  175. "selectedColor": "#ff457b",
  176. "borderStyle": "black",
  177. "backgroundColor": "#ffffff",
  178. "list": [{
  179. "pagePath": "pages/tabBar/index/index",
  180. "iconPath": "static/icon-index@2x.png",
  181. "selectedIconPath": "static/icon-index-active@2x.png",
  182. "text": "商城"
  183. },
  184. {
  185. "pagePath": "pages/tabBar/cart/index",
  186. "iconPath": "static/icon-cart@2x.png",
  187. "selectedIconPath": "static/icon-cart-active@2x.png",
  188. "text": "购物车"
  189. },
  190. {
  191. "pagePath": "pages/tabBar/user/index",
  192. "iconPath": "static/icon-user@2x.png",
  193. "selectedIconPath": "static/icon-user-active@2x.png",
  194. "text": "我的"
  195. }
  196. ]
  197. },
  198. "easycom": {
  199. "autoscan": true,
  200. "custom": {
  201. "tui-(.*)": "@/components/thorui/tui-$1/tui-$1.vue",
  202. "uni-(.*)": "@/components/uni-components/uni-$1/uni-$1.vue"
  203. }
  204. },
  205. "globalStyle": {
  206. "navigationBarTextStyle": "black",
  207. "navigationBarTitleText": "呵呵商城",
  208. "navigationBarBackgroundColor": "#FFFFFF",
  209. "backgroundColor": "#FFFFFF"
  210. },
  211. "condition": {
  212. //模式配置,仅开发期间生效
  213. "current": 0, //当前激活的模式(list 的索引项)
  214. "list": [{
  215. "name": "", //模式名称
  216. "path": "", //启动页面,必选
  217. "query": "" //启动参数,在页面的onLoad函数里面得到
  218. }]
  219. }
  220. }