pages.json 5.5 KB

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