pages.json 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. "navigationBarBackgroundColor": "#F952B7",
  11. "navigationBarTextStyle": "white"
  12. }
  13. },
  14. {
  15. "path": "pages/tabBar/cart/index",
  16. "style": {
  17. "navigationBarTitleText": "购物车",
  18. "enablePullDownRefresh": true
  19. }
  20. },
  21. {
  22. "path": "pages/tabBar/user/index",
  23. "style": {
  24. "navigationBarTitleText": "个人中心",
  25. "enablePullDownRefresh": true
  26. }
  27. },
  28. {
  29. "path": "pages/authorize/authorize",
  30. "style": {
  31. "navigationBarTitleText": "微信授权"
  32. }
  33. },
  34. {
  35. "path": "pages/login/login",
  36. "style": {
  37. "navigationBarTitleText": "登录"
  38. }
  39. }
  40. ],
  41. "subPackages": [{
  42. "root": "pages/goods/",
  43. "pages": [{
  44. "path": "list",
  45. "style": {
  46. "navigationBarTitleText": "立即下单"
  47. }
  48. },
  49. {
  50. "path": "cart",
  51. "style": {
  52. "navigationBarTitleText": "购物车",
  53. "enablePullDownRefresh": true,
  54. "navigationStyle": "custom"
  55. }
  56. },
  57. {
  58. "path": "search",
  59. "style": {
  60. "navigationBarTitleText": "搜索"
  61. }
  62. },
  63. {
  64. "path": "product-detail",
  65. "style": {
  66. "navigationBarTitleText": "商品详情"
  67. }
  68. },
  69. {
  70. "path": "good-floorMore",
  71. "style": {
  72. "navigationBarTitleText": "商品列表",
  73. "enablePullDownRefresh": true
  74. }
  75. },
  76. {
  77. "path": "goods-coupon-list",
  78. "style": {
  79. "navigationBarTitleText": "优惠券商品列表",
  80. "enablePullDownRefresh": true
  81. }
  82. },
  83. {
  84. "path": "goods-coupon-list-search",
  85. "style": {
  86. "navigationBarTitleText": "搜索"
  87. }
  88. }
  89. ]
  90. },
  91. {
  92. "root": "pages/user/", //个人中心模块
  93. "pages": [{
  94. "path": "address/addressManage",
  95. "style": {
  96. "navigationBarTitleText": "添加新地址"
  97. }
  98. },
  99. {
  100. "path": "address/address",
  101. "style": {
  102. "navigationBarTitleText": "地址列表",
  103. "enablePullDownRefresh": true,
  104. "onReachBottomDistance": 50
  105. }
  106. },
  107. {
  108. "path": "order/create-order",
  109. "style": {
  110. "navigationBarTitleText": "确认订单"
  111. }
  112. },
  113. {
  114. "path": "order/success",
  115. "style": {
  116. "navigationBarTitleText": "支付结果",
  117. "navigationStyle": "custom"
  118. }
  119. },
  120. {
  121. "path": "order/error",
  122. "style": {
  123. "navigationBarTitleText": "支付结果",
  124. "navigationStyle": "custom"
  125. }
  126. },
  127. {
  128. "path": "order/order-list",
  129. "style": {
  130. "navigationBarTitleText": "我的订单",
  131. "navigationStyle": "custom"
  132. }
  133. },
  134. {
  135. "path": "order/order-list-retail",
  136. "style": {
  137. "navigationBarTitleText": "我的订单",
  138. "navigationStyle": "custom"
  139. }
  140. },
  141. {
  142. "path": "order/order-details",
  143. "style": {
  144. "navigationBarTitleText": "订单详情",
  145. "navigationStyle": "custom"
  146. }
  147. },
  148. {
  149. "path": "order/order-payment",
  150. "style": {
  151. "navigationBarTitleText": "收银台",
  152. "navigationStyle": "custom"
  153. }
  154. },
  155. {
  156. "path": "order/search-order",
  157. "style": {
  158. "navigationBarTitleText": "订单搜索"
  159. }
  160. },
  161. {
  162. "path": "order/order-logistics",
  163. "style": {
  164. "navigationBarTitleText": "物流信息"
  165. }
  166. },
  167. {
  168. "path": "activity/activity",
  169. "style": {
  170. "navigationBarTitleText": "活动详情",
  171. "enablePullDownRefresh": true,
  172. "backgroundColor": "#ff457b",
  173. "backgroundTextStyle": "light",
  174. "onReachBottomDistance": 50
  175. }
  176. },
  177. {
  178. "path": "activity/activity-list",
  179. "style": {
  180. "navigationBarTitleText": "活动专区",
  181. "enablePullDownRefresh": true,
  182. "onReachBottomDistance": 50
  183. }
  184. },
  185. {
  186. "path": "activity/coupon-find-list",
  187. "style": {
  188. "navigationBarTitleText": "领券中心"
  189. }
  190. },
  191. {
  192. "path": "activity/coupon-list",
  193. "style": {
  194. "navigationBarTitleText": "优惠券"
  195. }
  196. }
  197. ]
  198. }
  199. ],
  200. "tabBar": {
  201. "height": "80",
  202. "color": "#999999",
  203. "selectedColor": "#ff457b",
  204. "borderStyle": "black",
  205. "backgroundColor": "#ffffff",
  206. "list": [{
  207. "pagePath": "pages/tabBar/index/index",
  208. "iconPath": "static/icon-index@2x.png",
  209. "selectedIconPath": "static/icon-index-active@2x.png",
  210. "text": "商城"
  211. },
  212. {
  213. "pagePath": "pages/tabBar/cart/index",
  214. "iconPath": "static/icon-cart@2x.png",
  215. "selectedIconPath": "static/icon-cart-active@2x.png",
  216. "text": "购物车"
  217. },
  218. {
  219. "pagePath": "pages/tabBar/user/index",
  220. "iconPath": "static/icon-user@2x.png",
  221. "selectedIconPath": "static/icon-user-active@2x.png",
  222. "text": "我的"
  223. }
  224. ]
  225. },
  226. "easycom": {
  227. "autoscan": true,
  228. "custom": {
  229. "tui-(.*)": "@/components/thorui/tui-$1/tui-$1.vue",
  230. "uni-(.*)": "@/components/uni-components/uni-$1/uni-$1.vue",
  231. "scroll-top": "@/components/cm-module/scrollTop/scrollTop.vue"
  232. }
  233. },
  234. "globalStyle": {
  235. "navigationBarTextStyle": "black",
  236. "navigationBarTitleText": "呵呵商城",
  237. "navigationBarBackgroundColor": "#FFFFFF",
  238. "backgroundColor": "#FFFFFF"
  239. },
  240. "condition": {
  241. //模式配置,仅开发期间生效
  242. "current": 0, //当前激活的模式(list 的索引项)
  243. "list": [{
  244. "name": "", //模式名称
  245. "path": "", //启动页面,必选
  246. "query": "" //启动参数,在页面的onLoad函数里面得到
  247. }]
  248. }
  249. }