pages.json 4.6 KB

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