pages.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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/authorize/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": "product-detail",
  59. "style": {
  60. "navigationBarTitleText": "商品详情"
  61. }
  62. },
  63. {
  64. "path": "good-floorMore",
  65. "style": {
  66. "navigationBarTitleText": "商品列表",
  67. "enablePullDownRefresh": true
  68. }
  69. },
  70. {
  71. "path": "goods-search",
  72. "style": {
  73. "navigationBarTitleText": "搜索"
  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": "activity/activity",
  109. "style": {
  110. "navigationBarTitleText": "活动详情",
  111. "enablePullDownRefresh": true,
  112. "backgroundColor": "#ff457b",
  113. "backgroundTextStyle": "light",
  114. "onReachBottomDistance": 50
  115. }
  116. },
  117. {
  118. "path": "activity/activity-list",
  119. "style": {
  120. "navigationBarTitleText": "活动专区",
  121. "enablePullDownRefresh": true,
  122. "onReachBottomDistance": 50
  123. }
  124. },
  125. {
  126. "path": "activity/coupon-find-list",
  127. "style": {
  128. "navigationBarTitleText": "领券中心"
  129. }
  130. },
  131. {
  132. "path": "activity/coupon-list",
  133. "style": {
  134. "navigationBarTitleText": "优惠券"
  135. }
  136. }
  137. ]
  138. },
  139. {
  140. "root": "pages/fight-order",
  141. "pages": [{
  142. "path": "fight-detail",
  143. "style": {
  144. "navigationBarTitleText": "拼单详情"
  145. }
  146. }, {
  147. "path": "fight-share-entry",
  148. "style": {
  149. "navigationBarTitleText": "拼单"
  150. }
  151. }]
  152. },
  153. // 新订单模块
  154. {
  155. "root": "pages/order",
  156. "pages": [{
  157. "path": "order-create",
  158. "style": {
  159. "navigationBarTitleText": "创建订单"
  160. }
  161. },{
  162. "path": "order-pay",
  163. "style": {
  164. "navigationBarTitleText": "支付订单"
  165. }
  166. },
  167. {
  168. "path": "order-list",
  169. "style": {
  170. "navigationBarTitleText": "订单列表",
  171. "navigationStyle": "custom"
  172. }
  173. },
  174. {
  175. "path": "order-detail",
  176. "style": {
  177. "navigationBarTitleText": "订单详情"
  178. }
  179. },
  180. {
  181. "path": "order-search",
  182. "style": {
  183. "navigationBarTitleText": "订单搜索"
  184. }
  185. },
  186. {
  187. "path": "success",
  188. "style": {
  189. "navigationBarTitleText": "支付成功"
  190. }
  191. },
  192. {
  193. "path": "error",
  194. "style": {
  195. "navigationBarTitleText": "支付失败"
  196. }
  197. },
  198. {
  199. "path": "order-payment",
  200. "style": {
  201. "navigationBarTitleText": "收银台"
  202. }
  203. },
  204. {
  205. "path": "order-logistics",
  206. "style": {
  207. "navigationBarTitleText": "物流信息"
  208. }
  209. }
  210. ]
  211. }
  212. ],
  213. "tabBar": {
  214. "height": "80",
  215. "color": "#999999",
  216. "selectedColor": "#ff457b",
  217. "borderStyle": "black",
  218. "backgroundColor": "#ffffff",
  219. "list": [{
  220. "pagePath": "pages/tabBar/index/index",
  221. "iconPath": "static/icon-index@2x.png",
  222. "selectedIconPath": "static/icon-index-active@2x.png",
  223. "text": "商城"
  224. },
  225. {
  226. "pagePath": "pages/tabBar/cart/index",
  227. "iconPath": "static/icon-cart@2x.png",
  228. "selectedIconPath": "static/icon-cart-active@2x.png",
  229. "text": "购物车"
  230. },
  231. {
  232. "pagePath": "pages/tabBar/user/index",
  233. "iconPath": "static/icon-user@2x.png",
  234. "selectedIconPath": "static/icon-user-active@2x.png",
  235. "text": "我的"
  236. }
  237. ]
  238. },
  239. "easycom": {
  240. "autoscan": true,
  241. "custom": {
  242. "tui-(.*)": "@/components/thorui/tui-$1/tui-$1.vue",
  243. "uni-(.*)": "@/components/uni-components/uni-$1/uni-$1.vue",
  244. "scroll-top": "@/components/cm-module/scrollTop/scrollTop.vue"
  245. }
  246. },
  247. "globalStyle": {
  248. "navigationBarTextStyle": "black",
  249. "navigationBarTitleText": "颜选美学",
  250. "navigationBarBackgroundColor": "#FFFFFF",
  251. "backgroundColor": "#FFFFFF"
  252. },
  253. "condition": {
  254. //模式配置,仅开发期间生效
  255. "current": 0, //当前激活的模式(list 的索引项)
  256. "list": [{
  257. "name": "", //模式名称
  258. "path": "", //启动页面,必选
  259. "query": "" //启动参数,在页面的onLoad函数里面得到
  260. }]
  261. }
  262. }