pages.json 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. {
  2. // 页面配置
  3. "pages": [{
  4. "path": "pages/index/index",
  5. "style": {
  6. "navigationBarTitleText": "颜选美学",
  7. "enablePullDownRefresh": false
  8. }
  9. }, {
  10. "path": "pages/tabBar/home/home",
  11. "style": {
  12. "navigationBarTitleText": "颜选美学",
  13. "enablePullDownRefresh": true,
  14. "backgroundColor": "#F952B7",
  15. "navigationBarBackgroundColor": "#F952B7",
  16. "navigationBarTextStyle": "white"
  17. }
  18. }, {
  19. "path": "pages/tabBar/category/category",
  20. "style": {
  21. "navigationBarTitleText": "商品分类",
  22. "enablePullDownRefresh": false
  23. }
  24. }, {
  25. "path": "pages/tabBar/cart/cart",
  26. "style": {
  27. "navigationBarTitleText": "购物车",
  28. "enablePullDownRefresh": true
  29. }
  30. }, {
  31. "path": "pages/tabBar/user/user",
  32. "style": {
  33. "navigationBarTitleText": "个人中心",
  34. "enablePullDownRefresh": true
  35. }
  36. }, {
  37. "path": "pages/authorize/login-auth",
  38. "style": {
  39. "navigationBarTitleText": "登录成功",
  40. "enablePullDownRefresh": false
  41. }
  42. }, {
  43. "path": "pages/authorize/login-custom",
  44. "style": {
  45. "navigationBarTitleText": "登录",
  46. "enablePullDownRefresh": false
  47. }
  48. }],
  49. // 分包加载配置
  50. "subPackages": [
  51. // 活动专区
  52. {
  53. "root": "pages/views/activity",
  54. "pages": [{
  55. "path": "activity-area",
  56. "style": {
  57. "navigationBarTitleText": "活动专区",
  58. "enablePullDownRefresh": false
  59. }
  60. }, {
  61. "path": "activity-detail",
  62. "style": {
  63. "navigationBarTitleText": "活动详情",
  64. "enablePullDownRefresh": false
  65. }
  66. }]
  67. },
  68. // 收货地址
  69. {
  70. "root": "pages/views/address",
  71. "pages": [{
  72. "path": "address-create",
  73. "style": {
  74. "navigationBarTitleText": "添加新地址",
  75. "enablePullDownRefresh": false
  76. }
  77. }, {
  78. "path": "address-list",
  79. "style": {
  80. "navigationBarTitleText": "地址列表",
  81. "enablePullDownRefresh": false
  82. }
  83. }]
  84. },
  85. // 购物车
  86. {
  87. "root": "pages/views/cart",
  88. "pages": [{
  89. "path": "cart",
  90. "style": {
  91. "navigationBarTitleText": "购物车",
  92. "enablePullDownRefresh": false,
  93. "navigationStyle": "custom"
  94. }
  95. }]
  96. },
  97. // 优惠券
  98. {
  99. "root": "pages/views/coupon",
  100. "pages": [{
  101. "path": "coupon-user",
  102. "style": {
  103. "navigationBarTitleText": "优惠券",
  104. "enablePullDownRefresh": false
  105. }
  106. }, {
  107. "path": "coupon-receive",
  108. "style": {
  109. "navigationBarTitleText": "领券中心",
  110. "enablePullDownRefresh": false
  111. }
  112. }, {
  113. "path": "coupon-description",
  114. "style": {
  115. "navigationBarTitleText": "优惠券说明",
  116. "enablePullDownRefresh": false
  117. }
  118. }]
  119. },
  120. // 商品
  121. {
  122. "root": "pages/views/goods",
  123. "pages": [{
  124. "path": "goods-list",
  125. "style": {
  126. "navigationBarTitleText": "商品列表",
  127. "enablePullDownRefresh": false
  128. }
  129. }, {
  130. "path": "goods-coupon-list",
  131. "style": {
  132. "navigationBarTitleText": "商品列表",
  133. "enablePullDownRefresh": false
  134. }
  135. }, {
  136. "path": "goods-floor",
  137. "style": {
  138. "navigationBarTitleText": "商品列表",
  139. "enablePullDownRefresh": false
  140. }
  141. }, {
  142. "path": "goods-search",
  143. "style": {
  144. "navigationBarTitleText": "搜索",
  145. "enablePullDownRefresh": false
  146. }
  147. }, {
  148. "path": "goods-detail",
  149. "style": {
  150. "navigationBarTitleText": "商品详情",
  151. "enablePullDownRefresh": false
  152. }
  153. }]
  154. },
  155. // 订单
  156. {
  157. "root": "pages/views/order",
  158. "pages": [{
  159. "path": "order-create",
  160. "style": {
  161. "navigationBarTitleText": "创建订单",
  162. "enablePullDownRefresh": false
  163. }
  164. }, {
  165. "path": "order-detail",
  166. "style": {
  167. "navigationBarTitleText": "订单详情",
  168. "enablePullDownRefresh": false
  169. }
  170. }, {
  171. "path": "order-pay",
  172. "style": {
  173. "navigationBarTitleText": "订单支付",
  174. "enablePullDownRefresh": false
  175. }
  176. }, {
  177. "path": "order-list",
  178. "style": {
  179. "navigationBarTitleText": "订单列表",
  180. "enablePullDownRefresh": false,
  181. "navigationStyle": "custom"
  182. }
  183. }, {
  184. "path": "order-search",
  185. "style": {
  186. "navigationBarTitleText": "订单搜索",
  187. "enablePullDownRefresh": false
  188. }
  189. }, {
  190. "path": "order-logistics",
  191. "style": {
  192. "navigationBarTitleText": "物流信息",
  193. "enablePullDownRefresh": false
  194. }
  195. }, {
  196. "path": "pay-success",
  197. "style": {
  198. "navigationBarTitleText": "支付成功",
  199. "enablePullDownRefresh": false
  200. }
  201. }, {
  202. "path": "pay-faild",
  203. "style": {
  204. "navigationBarTitleText": "支付失败",
  205. "enablePullDownRefresh": false
  206. }
  207. }]
  208. },
  209. // 拼单(分享购买)
  210. {
  211. "root": "pages/views/share-buy",
  212. "pages": [{
  213. "path": "share-buy-entry",
  214. "style": {
  215. "navigationBarTitleText": "拼单",
  216. "enablePullDownRefresh": false
  217. }
  218. }, {
  219. "path": "share-buy-detail",
  220. "style": {
  221. "navigationBarTitleText": "拼单详情",
  222. "enablePullDownRefresh": false
  223. }
  224. }, {
  225. "path": "share-buy-success",
  226. "style": {
  227. "navigationBarTitleText": "拼单成功",
  228. "enablePullDownRefresh": false
  229. }
  230. }]
  231. },
  232. // 其它页面
  233. {
  234. "root": "pages/views/others",
  235. "pages": [{
  236. "path": "join-us",
  237. "style": {
  238. "navigationBarTitleText": "欢迎加入颜选美学",
  239. "enablePullDownRefresh": false
  240. }
  241. }, {
  242. "path": "web-view",
  243. "style": {
  244. "navigationBarTitleText": "颜选美学",
  245. "enablePullDownRefresh": false
  246. }
  247. }]
  248. }
  249. ],
  250. // 全局主题配置
  251. "globalStyle": {
  252. "navigationBarTextStyle": "black",
  253. "navigationBarTitleText": "颜选美学",
  254. "navigationBarBackgroundColor": "#FFFFFF",
  255. "backgroundColor": "#FFFFFF"
  256. },
  257. // 底部tabbar配置
  258. "tabBar": {
  259. "height": "80",
  260. "color": "#999999",
  261. "selectedColor": "#ff457b",
  262. "borderStyle": "black",
  263. "backgroundColor": "#ffffff",
  264. "list": [{
  265. "pagePath": "pages/tabBar/home/home",
  266. "iconPath": "static/tabBar/icon-index@2x.png",
  267. "selectedIconPath": "static/tabBar/icon-index-active@2x.png",
  268. "text": "商城"
  269. },
  270. {
  271. "pagePath": "pages/tabBar/category/category",
  272. "iconPath": "static/tabBar/icon-category@2x.png",
  273. "selectedIconPath": "static/tabBar/icon-category-active@2x.png",
  274. "text": "分类"
  275. },
  276. {
  277. "pagePath": "pages/tabBar/cart/cart",
  278. "iconPath": "static/tabBar/icon-cart@2x.png",
  279. "selectedIconPath": "static/tabBar/icon-cart-active@2x.png",
  280. "text": "购物车"
  281. },
  282. {
  283. "pagePath": "pages/tabBar/user/user",
  284. "iconPath": "static/tabBar/icon-user@2x.png",
  285. "selectedIconPath": "static/tabBar/icon-user-active@2x.png",
  286. "text": "我的"
  287. }
  288. ]
  289. },
  290. // 组件自动引入规则
  291. "easycom": {
  292. "autoscan": true,
  293. "custom": {
  294. "tui-(.*)": "@/components/thorui/tui-$1/tui-$1.vue",
  295. "cm-(.*)": "@/components/views/cm-$1/cm-$1.vue",
  296. "order-(.*)": "@/pages/views/order/components/order-$1/order-$1.vue",
  297. "goods-(.*)": "@/pages/views/goods/components/goods-$1/goods-$1.vue",
  298. "coupon-(.*)": "@/pages/views/coupon/components/coupon-$1/coupon-$1.vue",
  299. "share-buy-(.*)": "@/pages/views/share-buy/components/share-buy-$1/share-buy-$1.vue"
  300. }
  301. }
  302. }