pages.json 4.3 KB

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