pages.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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. "path": "Update-Maintenance",
  155. "style": {
  156. "navigationBarTitleText": "提示",
  157. "enablePullDownRefresh": false
  158. }
  159. }]
  160. },
  161. // 订单
  162. {
  163. "root": "pages/views/order",
  164. "pages": [{
  165. "path": "order-create",
  166. "style": {
  167. "navigationBarTitleText": "创建订单",
  168. "enablePullDownRefresh": false
  169. }
  170. }, {
  171. "path": "order-detail",
  172. "style": {
  173. "navigationBarTitleText": "订单详情",
  174. "enablePullDownRefresh": false
  175. }
  176. }, {
  177. "path": "order-pay",
  178. "style": {
  179. "navigationBarTitleText": "订单支付",
  180. "enablePullDownRefresh": false
  181. }
  182. }, {
  183. "path": "order-list",
  184. "style": {
  185. "navigationBarTitleText": "订单列表",
  186. "enablePullDownRefresh": false,
  187. "navigationStyle": "custom"
  188. }
  189. }, {
  190. "path": "order-search",
  191. "style": {
  192. "navigationBarTitleText": "订单搜索",
  193. "enablePullDownRefresh": false
  194. }
  195. }, {
  196. "path": "order-logistics",
  197. "style": {
  198. "navigationBarTitleText": "物流信息",
  199. "enablePullDownRefresh": false
  200. }
  201. }, {
  202. "path": "pay-success",
  203. "style": {
  204. "navigationBarTitleText": "支付成功",
  205. "enablePullDownRefresh": false
  206. }
  207. }, {
  208. "path": "pay-faild",
  209. "style": {
  210. "navigationBarTitleText": "支付失败",
  211. "enablePullDownRefresh": false
  212. }
  213. }]
  214. },
  215. // 拼单(分享购买)
  216. {
  217. "root": "pages/views/share-buy",
  218. "pages": [{
  219. "path": "share-buy-entry",
  220. "style": {
  221. "navigationBarTitleText": "拼单",
  222. "enablePullDownRefresh": false
  223. }
  224. }, {
  225. "path": "share-buy-detail",
  226. "style": {
  227. "navigationBarTitleText": "拼单详情",
  228. "enablePullDownRefresh": false
  229. }
  230. }, {
  231. "path": "share-buy-success",
  232. "style": {
  233. "navigationBarTitleText": "拼单成功",
  234. "enablePullDownRefresh": false
  235. }
  236. }]
  237. },
  238. // 其它页面
  239. {
  240. "root": "pages/views/others",
  241. "pages": [{
  242. "path": "join-us",
  243. "style": {
  244. "navigationBarTitleText": "欢迎加入颜选美学",
  245. "enablePullDownRefresh": false
  246. }
  247. }, {
  248. "path": "web-view",
  249. "style": {
  250. "navigationBarTitleText": "颜选美学",
  251. "enablePullDownRefresh": false
  252. }
  253. }, {
  254. "path": "image-view",
  255. "style": {
  256. "navigationBarTitleText": "颜选美学",
  257. "enablePullDownRefresh": false
  258. }
  259. }]
  260. }
  261. ],
  262. // 全局主题配置
  263. "globalStyle": {
  264. "navigationBarTextStyle": "black",
  265. "navigationBarTitleText": "颜选美学",
  266. "navigationBarBackgroundColor": "#FFFFFF",
  267. "backgroundColor": "#FFFFFF"
  268. },
  269. // 底部tabbar配置
  270. "tabBar": {
  271. "height": "80",
  272. "color": "#999999",
  273. "selectedColor": "#ff457b",
  274. "borderStyle": "black",
  275. "backgroundColor": "#ffffff",
  276. "list": [{
  277. "pagePath": "pages/tabBar/home/home",
  278. "iconPath": "static/tabBar/icon-index@2x.png",
  279. "selectedIconPath": "static/tabBar/icon-index-active@2x.png",
  280. "text": "商城"
  281. },
  282. {
  283. "pagePath": "pages/tabBar/category/category",
  284. "iconPath": "static/tabBar/icon-category@2x.png",
  285. "selectedIconPath": "static/tabBar/icon-category-active@2x.png",
  286. "text": "分类"
  287. },
  288. {
  289. "pagePath": "pages/tabBar/cart/cart",
  290. "iconPath": "static/tabBar/icon-cart@2x.png",
  291. "selectedIconPath": "static/tabBar/icon-cart-active@2x.png",
  292. "text": "购物车"
  293. },
  294. {
  295. "pagePath": "pages/tabBar/user/user",
  296. "iconPath": "static/tabBar/icon-user@2x.png",
  297. "selectedIconPath": "static/tabBar/icon-user-active@2x.png",
  298. "text": "我的"
  299. }
  300. ]
  301. },
  302. // 组件自动引入规则
  303. "easycom": {
  304. "autoscan": true,
  305. "custom": {
  306. "tui-(.*)": "@/components/thorui/tui-$1/tui-$1.vue",
  307. "cm-(.*)": "@/components/views/cm-$1/cm-$1.vue",
  308. "order-(.*)": "@/pages/views/order/components/order-$1/order-$1.vue",
  309. "goods-(.*)": "@/pages/views/goods/components/goods-$1/goods-$1.vue",
  310. "coupon-(.*)": "@/pages/views/coupon/components/coupon-$1/coupon-$1.vue",
  311. "share-buy-(.*)": "@/pages/views/share-buy/components/share-buy-$1/share-buy-$1.vue"
  312. }
  313. }
  314. }