pages.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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/search-order",
  129. "style": {
  130. "navigationBarTitleText": "订单搜索"
  131. }
  132. },
  133. {
  134. "path": "order/order-logistics",
  135. "style": {
  136. "navigationBarTitleText": "物流信息"
  137. }
  138. },
  139. {
  140. "path": "activity/activity",
  141. "style": {
  142. "navigationBarTitleText": "活动详情",
  143. "enablePullDownRefresh":true,
  144. "backgroundColor":"#ff457b",
  145. "backgroundTextStyle":"light",
  146. "onReachBottomDistance":50
  147. }
  148. },
  149. {
  150. "path": "activity/activity-list",
  151. "style": {
  152. "navigationBarTitleText": "活动专区",
  153. "enablePullDownRefresh":true,
  154. "backgroundColor":"#ff457b",
  155. "backgroundTextStyle":"light",
  156. "onReachBottomDistance":50
  157. }
  158. }
  159. ]
  160. }],
  161. "tabBar": {
  162. "height": "80",
  163. "color": "#999999",
  164. "selectedColor": "#ff457b",
  165. "borderStyle": "black",
  166. "backgroundColor": "#ffffff",
  167. "list": [
  168. {
  169. "pagePath": "pages/tabBar/index/index",
  170. "iconPath": "static/icon-index@2x.png",
  171. "selectedIconPath": "static/icon-index-active@2x.png",
  172. "text": "商城"
  173. },
  174. {
  175. "pagePath": "pages/tabBar/cart/index",
  176. "iconPath": "static/icon-cart@2x.png",
  177. "selectedIconPath": "static/icon-cart-active@2x.png",
  178. "text": "购物车"
  179. },
  180. {
  181. "pagePath": "pages/tabBar/user/index",
  182. "iconPath": "static/icon-user@2x.png",
  183. "selectedIconPath": "static/icon-user-active@2x.png",
  184. "text": "我的"
  185. }
  186. ]
  187. },
  188. "easycom": {
  189. "autoscan": true,
  190. "custom": {
  191. "tui-(.*)": "@/components/thorui/tui-$1/tui-$1.vue"
  192. }
  193. },
  194. "globalStyle": {
  195. "navigationBarTextStyle": "black",
  196. "navigationBarTitleText": "呵呵商城",
  197. "navigationBarBackgroundColor": "#FFFFFF",
  198. "backgroundColor": "#FFFFFF"
  199. },
  200. "condition": {
  201. //模式配置,仅开发期间生效
  202. "current": 0, //当前激活的模式(list 的索引项)
  203. "list": [{
  204. "name": "", //模式名称
  205. "path": "", //启动页面,必选
  206. "query": "" //启动参数,在页面的onLoad函数里面得到
  207. }]
  208. }
  209. }