pages.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. {
  2. "easycom": {
  3. "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
  4. },
  5. // 主包
  6. "pages": [
  7. //首页
  8. {
  9. "path": "pages/home/index",
  10. "style": {
  11. "navigationBarTitleText": "书嗨",
  12. "navigationStyle": "custom"
  13. }
  14. },
  15. // 商城
  16. {
  17. "path": "pages/mall/index",
  18. "style": {
  19. "navigationBarTitleText": "书嗨",
  20. "enablePullDownRefresh": true // 开启下拉刷新
  21. }
  22. },
  23. // 购物车页
  24. {
  25. "path": "pages/mall/shopping-cart",
  26. "style": {
  27. "navigationBarTitleText": "购物车",
  28. "enablePullDownRefresh": true // 开启下拉刷新
  29. }
  30. },
  31. // 分类页
  32. {
  33. "path": "pages/mall/classify",
  34. "style": {
  35. "navigationBarTitleText": "分类"
  36. // "enablePullDownRefresh": true // 开启下拉刷新
  37. }
  38. },
  39. // 我的
  40. {
  41. "path": "pages/mine/index",
  42. "style": {
  43. "navigationBarTitleText": "我的",
  44. "navigationBarBackgroundColor": "#38C148",
  45. "navigationBarTextStyle": "white"
  46. }
  47. },
  48. // 通用搜索页
  49. {
  50. "path": "pages/search",
  51. "style": {
  52. "navigationBarTitleText": "搜索商品"
  53. }
  54. },
  55. // 搜索结果页
  56. {
  57. "path": "pages/search-result",
  58. "style": {
  59. "navigationBarTitleText": ""
  60. }
  61. },
  62. // 登录页
  63. {
  64. "path": "pages/login/index",
  65. "style": {
  66. "navigationBarTitleText": "登录"
  67. }
  68. },
  69. // 欢迎页,不需要时放在最后
  70. {
  71. "path": "pages/start-page"
  72. }
  73. ],
  74. // 副包
  75. "subPackages": [{
  76. // 电商副包
  77. "root": "pages-mall",
  78. "pages": [
  79. // 专区页面
  80. {
  81. "path": "pages/zone/zone",
  82. "style": {
  83. "navigationBarTitleText": "专区",
  84. "enablePullDownRefresh": true // 开启下拉刷新
  85. }
  86. },
  87. // 商品详情
  88. {
  89. "path": "pages/goods/detail",
  90. "style": {
  91. "navigationBarTitleText": "商品详情"
  92. // "enablePullDownRefresh": true // 开启下拉刷新
  93. }
  94. },
  95. // 提交订单
  96. {
  97. "path": "pages/order/submit",
  98. "style": {
  99. "navigationBarTitleText": "提交订单"
  100. }
  101. },
  102. // 支付页
  103. {
  104. "path": "pages/order/pay",
  105. "style": {
  106. "navigationBarTitleText": "确认支付"
  107. }
  108. },
  109. // 支付结果页
  110. {
  111. "path": "pages/order/pay-result",
  112. "style": {
  113. "navigationBarTitleText": "支付成功"
  114. }
  115. },
  116. // 订单列表页
  117. {
  118. "path": "pages/order/list",
  119. "style": {
  120. "navigationBarTitleText": "我的订单",
  121. "enablePullDownRefresh": true // 开启下拉刷新
  122. }
  123. },
  124. // 订单详情页
  125. {
  126. "path": "pages/order/detail",
  127. "style": {
  128. "navigationBarTitleText": "订单详情"
  129. }
  130. },
  131. // 售后列表
  132. {
  133. "path": "pages/after-sales/list",
  134. "style": {
  135. "navigationBarTitleText": "我的售后"
  136. }
  137. },
  138. // 申请售后
  139. {
  140. "path": "pages/after-sales/apply",
  141. "style": {
  142. "navigationBarTitleText": "申请售后"
  143. }
  144. },
  145. // 售后状态
  146. {
  147. "path": "pages/after-sales/apply-status",
  148. "style": {
  149. "navigationBarTitleText": "售后详情"
  150. }
  151. },
  152. // 售后状态
  153. {
  154. "path": "pages/after-sales/success",
  155. "style": {
  156. "navigationBarTitleText": "售后"
  157. }
  158. },
  159. // 退款详情
  160. {
  161. "path": "pages/after-sales/back",
  162. "style": {
  163. "navigationBarTitleText": "退款详情"
  164. }
  165. },
  166. // 物流详情
  167. {
  168. "path": "pages/order/express",
  169. "style": {
  170. "navigationBarTitleText": "物流详情"
  171. }
  172. }
  173. ]
  174. }, {
  175. // 个人中心副包
  176. "root": "pages-mine",
  177. "pages": [
  178. // 收获地址
  179. {
  180. "path": "pages/address/list",
  181. "style": {
  182. "navigationBarTitleText": "收货地址"
  183. }
  184. },
  185. // 收获地址新增/修改
  186. {
  187. "path": "pages/address/add-or-update",
  188. "style": {
  189. "navigationBarTitleText": "地址更新"
  190. }
  191. },
  192. // 设置
  193. {
  194. "path": "pages/setting",
  195. "style": {
  196. "navigationBarTitleText": "设置"
  197. }
  198. },
  199. {
  200. "path": "pages/feedback",
  201. "style": {
  202. "navigationBarTitleText": "投诉/建议"
  203. }
  204. },
  205. {
  206. "path": "pages/order-page",
  207. "style": {
  208. "navigationBarTitleText": "卖书订单"
  209. }
  210. },
  211. {
  212. "path": "pages/notice",
  213. "style": {
  214. "navigationBarTitleText": "消息通知"
  215. }
  216. }
  217. ]
  218. }, {
  219. "root": "pages-pub",
  220. "pages": [{
  221. "path": "richTextPage",
  222. "style": {
  223. "navigationBarTitleText": "文章详情"
  224. }
  225. }]
  226. }, {
  227. "root": "pages-home",
  228. "pages": [{
  229. "path": "pages/scaned-book",
  230. "style": {
  231. "navigationBarTitleText": "扫过的书"
  232. }
  233. },
  234. {
  235. "path": "pages/book-order",
  236. "style": {
  237. "navigationBarTitleText": "卖书订单明细"
  238. }
  239. },
  240. {
  241. "path": "pages/order-success",
  242. "style": {
  243. "navigationBarTitleText": "卖书订单提交成功"
  244. }
  245. }
  246. ]
  247. }],
  248. // 分包预载配置
  249. "preloadRule": {
  250. },
  251. // 全局配置
  252. "globalStyle": {
  253. // 全局自定义导航栏
  254. "navigationBarTitleText": "书嗨",
  255. "navigationBarBackgroundColor": "#fff",
  256. "navigationBarTextStyle": "black",
  257. // "navigationStyle": "custom",
  258. "backgroundColor": "#fff" //下拉出口背景色
  259. },
  260. // tabbar配置
  261. "tabBar": {
  262. "color": "#999",
  263. "selectedColor": "#22ac38",
  264. "list": [{
  265. "text": "首页",
  266. "pagePath": "pages/home/index",
  267. "iconPath": "/static/tabbar/home.png",
  268. "selectedIconPath": "/static/tabbar/home2.png"
  269. }, {
  270. "text": "分类",
  271. "pagePath": "pages/mall/classify",
  272. "iconPath": "/static/tabbar/fenlei.png",
  273. "selectedIconPath": "/static/tabbar/fenlei2.png"
  274. }, {
  275. "text": "购物车",
  276. "pagePath": "pages/mall/shopping-cart",
  277. "iconPath": "/static/tabbar/cart.png",
  278. "selectedIconPath": "/static/tabbar/cart2.png"
  279. }, {
  280. "text": "我的",
  281. "pagePath": "pages/mine/index",
  282. "iconPath": "/static/tabbar/person.png",
  283. "selectedIconPath": "/static/tabbar/person2.png"
  284. }]
  285. },
  286. // 启动模式配置
  287. "condition": {
  288. }
  289. }