pages.json 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. // 电商副包
  78. "root": "pages-mall",
  79. "pages": [
  80. // 专区页面
  81. {
  82. "path": "pages/zone/zone",
  83. "style": {
  84. "navigationBarTitleText": "专区",
  85. "enablePullDownRefresh": true // 开启下拉刷新
  86. }
  87. },
  88. // 商品详情
  89. {
  90. "path": "pages/goods/detail",
  91. "style": {
  92. "navigationBarTitleText": "商品详情"
  93. // "enablePullDownRefresh": true // 开启下拉刷新
  94. }
  95. },
  96. // 提交订单
  97. {
  98. "path": "pages/order/submit",
  99. "style": {
  100. "navigationBarTitleText": "提交订单"
  101. }
  102. },
  103. // 支付页
  104. {
  105. "path": "pages/order/pay",
  106. "style": {
  107. "navigationBarTitleText": "确认支付"
  108. }
  109. },
  110. // 支付结果页
  111. {
  112. "path": "pages/order/pay-result",
  113. "style": {
  114. "navigationBarTitleText": "支付成功"
  115. }
  116. },
  117. // 订单列表页
  118. {
  119. "path": "pages/order/list",
  120. "style": {
  121. "navigationBarTitleText": "我的订单",
  122. "enablePullDownRefresh": true // 开启下拉刷新
  123. }
  124. },
  125. // 订单详情页
  126. {
  127. "path": "pages/order/detail",
  128. "style": {
  129. "navigationBarTitleText": "订单详情"
  130. }
  131. },
  132. // 售后列表
  133. {
  134. "path": "pages/after-sales/list",
  135. "style": {
  136. "navigationBarTitleText": "我的售后"
  137. }
  138. },
  139. // 申请售后
  140. {
  141. "path": "pages/after-sales/apply",
  142. "style": {
  143. "navigationBarTitleText": "申请售后"
  144. }
  145. },
  146. // 售后状态
  147. {
  148. "path": "pages/after-sales/apply-status",
  149. "style": {
  150. "navigationBarTitleText": "售后详情"
  151. }
  152. },
  153. // 售后状态
  154. {
  155. "path": "pages/after-sales/success",
  156. "style": {
  157. "navigationBarTitleText": "售后"
  158. }
  159. },
  160. // 退款详情
  161. {
  162. "path": "pages/after-sales/back",
  163. "style": {
  164. "navigationBarTitleText": "退款详情"
  165. }
  166. },
  167. // 物流详情
  168. {
  169. "path": "pages/order/express",
  170. "style": {
  171. "navigationBarTitleText": "物流详情"
  172. }
  173. }
  174. ]
  175. },
  176. {
  177. // 个人中心副包
  178. "root": "pages-mine",
  179. "pages": [
  180. // 收获地址
  181. {
  182. "path": "pages/address/list",
  183. "style": {
  184. "navigationBarTitleText": "收货地址"
  185. }
  186. },
  187. // 收获地址新增/修改
  188. {
  189. "path": "pages/address/add-or-update",
  190. "style": {
  191. "navigationBarTitleText": "地址更新"
  192. }
  193. },
  194. // 设置
  195. {
  196. "path": "pages/setting",
  197. "style": {
  198. "navigationBarTitleText": "设置"
  199. }
  200. },
  201. {
  202. "path": "pages/feedback",
  203. "style": {
  204. "navigationBarTitleText": "投诉/建议"
  205. }
  206. },
  207. {
  208. "path": "pages/order-page",
  209. "style": {
  210. "navigationBarTitleText": "卖书订单"
  211. }
  212. },
  213. {
  214. "path": "pages/notice",
  215. "style": {
  216. "navigationBarTitleText": "消息通知"
  217. }
  218. },
  219. {
  220. "path": "pages/wallet",
  221. "style": {
  222. "navigationBarTitleText": "我的钱包"
  223. }
  224. },
  225. {
  226. "path": "pages/withdraw-detail",
  227. "style": {
  228. "navigationBarTitleText": "提现明细"
  229. }
  230. },
  231. {
  232. "path": "pages/withdraw",
  233. "style": {
  234. "navigationBarTitleText": "提现"
  235. }
  236. }
  237. ]
  238. },
  239. {
  240. "root": "pages-pub",
  241. "pages": [
  242. {
  243. "path": "richTextPage",
  244. "style": {
  245. "navigationBarTitleText": "文章详情"
  246. }
  247. }
  248. ]
  249. },
  250. {
  251. "root": "pages-home",
  252. "pages": [
  253. {
  254. "path": "pages/scaned-book",
  255. "style": {
  256. "navigationBarTitleText": "扫过的书"
  257. }
  258. },
  259. {
  260. "path": "pages/book-order",
  261. "style": {
  262. "navigationBarTitleText": "卖书订单明细"
  263. }
  264. },
  265. {
  266. "path": "pages/order-success",
  267. "style": {
  268. "navigationBarTitleText": "卖书订单提交成功"
  269. }
  270. }
  271. ]
  272. }
  273. ],
  274. // 分包预载配置
  275. "preloadRule": {},
  276. // 全局配置
  277. "globalStyle": {
  278. // 全局自定义导航栏
  279. "navigationBarTitleText": "书嗨",
  280. "navigationBarBackgroundColor": "#fff",
  281. "navigationBarTextStyle": "black",
  282. // "navigationStyle": "custom",
  283. "backgroundColor": "#fff" //下拉出口背景色
  284. },
  285. // tabbar配置
  286. "tabBar": {
  287. "color": "#999",
  288. "selectedColor": "#22ac38",
  289. "list": [
  290. {
  291. "text": "首页",
  292. "pagePath": "pages/home/index",
  293. "iconPath": "/static/tabbar/home.png",
  294. "selectedIconPath": "/static/tabbar/home2.png"
  295. },
  296. {
  297. "text": "分类",
  298. "pagePath": "pages/mall/classify",
  299. "iconPath": "/static/tabbar/fenlei.png",
  300. "selectedIconPath": "/static/tabbar/fenlei2.png"
  301. },
  302. {
  303. "text": "购物车",
  304. "pagePath": "pages/mall/shopping-cart",
  305. "iconPath": "/static/tabbar/cart.png",
  306. "selectedIconPath": "/static/tabbar/cart2.png"
  307. },
  308. {
  309. "text": "我的",
  310. "pagePath": "pages/mine/index",
  311. "iconPath": "/static/tabbar/person.png",
  312. "selectedIconPath": "/static/tabbar/person2.png"
  313. }
  314. ]
  315. },
  316. // 启动模式配置
  317. "condition": {}
  318. }