pages.json 4.7 KB

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