pages.json 7.7 KB

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