pages.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. {
  2. "pages": [
  3. //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  4. {
  5. "path": "pages/tabBar/index/index",
  6. "style": {
  7. "navigationBarTitleText": "呵呵商城",
  8. "enablePullDownRefresh": true,
  9. "backgroundColor": "#F952B7",
  10. "navigationBarBackgroundColor": "#F952B7",
  11. "navigationBarTextStyle": "white"
  12. }
  13. },
  14. {
  15. "path": "pages/tabBar/cart/index",
  16. "style": {
  17. "navigationBarTitleText": "购物车",
  18. "enablePullDownRefresh": true
  19. }
  20. },
  21. {
  22. "path": "pages/tabBar/user/index",
  23. "style": {
  24. "navigationBarTitleText": "个人中心",
  25. "enablePullDownRefresh": true
  26. }
  27. },
  28. {
  29. "path": "pages/authorize/authorize",
  30. "style": {
  31. "navigationBarTitleText": "微信授权"
  32. }
  33. },
  34. {
  35. "path": "pages/login/login",
  36. "style": {
  37. "navigationBarTitleText": "登录"
  38. }
  39. }
  40. ],
  41. "subPackages": [{
  42. "root": "pages/goods/",
  43. "pages": [{
  44. "path": "list",
  45. "style": {
  46. "navigationBarTitleText": "立即下单"
  47. }
  48. },
  49. {
  50. "path": "cart",
  51. "style": {
  52. "navigationBarTitleText": "购物车",
  53. "enablePullDownRefresh": true,
  54. "navigationStyle": "custom"
  55. }
  56. },
  57. {
  58. "path": "product-detail",
  59. "style": {
  60. "navigationBarTitleText": "商品详情"
  61. }
  62. },
  63. {
  64. "path": "good-floorMore",
  65. "style": {
  66. "navigationBarTitleText": "商品列表",
  67. "enablePullDownRefresh": true
  68. }
  69. },
  70. {
  71. "path": "goods-search",
  72. "style": {
  73. "navigationBarTitleText": "搜索"
  74. }
  75. },
  76. {
  77. "path": "goods-coupon-list",
  78. "style": {
  79. "navigationBarTitleText": "优惠券商品列表",
  80. "enablePullDownRefresh": true
  81. }
  82. },
  83. {
  84. "path": "goods-coupon-list-search",
  85. "style": {
  86. "navigationBarTitleText": "搜索"
  87. }
  88. }
  89. ]
  90. },
  91. {
  92. "root": "pages/user/", //个人中心模块
  93. "pages": [{
  94. "path": "address/addressManage",
  95. "style": {
  96. "navigationBarTitleText": "添加新地址"
  97. }
  98. },
  99. {
  100. "path": "address/address",
  101. "style": {
  102. "navigationBarTitleText": "地址列表",
  103. "enablePullDownRefresh": true,
  104. "onReachBottomDistance": 50
  105. }
  106. },
  107. {
  108. "path": "order/create-order",
  109. "style": {
  110. "navigationBarTitleText": "确认订单"
  111. }
  112. },
  113. {
  114. "path": "order/success",
  115. "style": {
  116. "navigationBarTitleText": "支付结果",
  117. "navigationStyle": "custom"
  118. }
  119. },
  120. {
  121. "path": "order/error",
  122. "style": {
  123. "navigationBarTitleText": "支付结果",
  124. "navigationStyle": "custom"
  125. }
  126. },
  127. {
  128. "path": "order/order-list",
  129. "style": {
  130. "navigationBarTitleText": "我的订单",
  131. "navigationStyle": "custom"
  132. }
  133. },
  134. {
  135. "path": "order/order-list-retail",
  136. "style": {
  137. "navigationBarTitleText": "我的订单",
  138. "navigationStyle": "custom"
  139. }
  140. },
  141. {
  142. "path": "order/order-details",
  143. "style": {
  144. "navigationBarTitleText": "订单详情",
  145. "navigationStyle": "custom"
  146. }
  147. },
  148. {
  149. "path": "order/order-payment",
  150. "style": {
  151. "navigationBarTitleText": "收银台",
  152. "navigationStyle": "custom"
  153. }
  154. },
  155. {
  156. "path": "order/search-order",
  157. "style": {
  158. "navigationBarTitleText": "订单搜索"
  159. }
  160. },
  161. {
  162. "path": "order/order-logistics",
  163. "style": {
  164. "navigationBarTitleText": "物流信息"
  165. }
  166. },
  167. {
  168. "path": "activity/activity",
  169. "style": {
  170. "navigationBarTitleText": "活动详情",
  171. "enablePullDownRefresh": true,
  172. "backgroundColor": "#ff457b",
  173. "backgroundTextStyle": "light",
  174. "onReachBottomDistance": 50
  175. }
  176. },
  177. {
  178. "path": "activity/activity-list",
  179. "style": {
  180. "navigationBarTitleText": "活动专区",
  181. "enablePullDownRefresh": true,
  182. "onReachBottomDistance": 50
  183. }
  184. },
  185. {
  186. "path": "activity/coupon-find-list",
  187. "style": {
  188. "navigationBarTitleText": "领券中心"
  189. }
  190. },
  191. {
  192. "path": "activity/coupon-list",
  193. "style": {
  194. "navigationBarTitleText": "优惠券"
  195. }
  196. }
  197. ]
  198. },
  199. {
  200. "root": "pages/fight-order",
  201. "pages": [{
  202. "path": "fight-detail",
  203. "style": {
  204. "navigationBarTitleText": "拼单详情"
  205. }
  206. }, {
  207. "path": "fight-share-entry",
  208. "style": {
  209. "navigationBarTitleText": "拼单"
  210. }
  211. }]
  212. },
  213. // 新订单模块
  214. {
  215. "root": "pages/order",
  216. "pages": [{
  217. "path": "create-order",
  218. "style": {
  219. "navigationBarTitleText": "创建订单"
  220. }
  221. },
  222. {
  223. "path": "order-list",
  224. "style": {
  225. "navigationBarTitleText": "订单列表",
  226. "navigationStyle": "custom"
  227. }
  228. },
  229. {
  230. "path": "order-detail",
  231. "style": {
  232. "navigationBarTitleText": "订单详情"
  233. }
  234. },
  235. {
  236. "path": "order-search",
  237. "style": {
  238. "navigationBarTitleText": "订单搜索"
  239. }
  240. },
  241. {
  242. "path": "success",
  243. "style": {
  244. "navigationBarTitleText": "支付成功"
  245. }
  246. },
  247. {
  248. "path": "error",
  249. "style": {
  250. "navigationBarTitleText": "支付失败"
  251. }
  252. },
  253. {
  254. "path": "order-logistics",
  255. "style": {
  256. "navigationBarTitleText": "物流信息"
  257. }
  258. }
  259. ]
  260. }
  261. ],
  262. "tabBar": {
  263. "height": "80",
  264. "color": "#999999",
  265. "selectedColor": "#ff457b",
  266. "borderStyle": "black",
  267. "backgroundColor": "#ffffff",
  268. "list": [{
  269. "pagePath": "pages/tabBar/index/index",
  270. "iconPath": "static/icon-index@2x.png",
  271. "selectedIconPath": "static/icon-index-active@2x.png",
  272. "text": "商城"
  273. },
  274. {
  275. "pagePath": "pages/tabBar/cart/index",
  276. "iconPath": "static/icon-cart@2x.png",
  277. "selectedIconPath": "static/icon-cart-active@2x.png",
  278. "text": "购物车"
  279. },
  280. {
  281. "pagePath": "pages/tabBar/user/index",
  282. "iconPath": "static/icon-user@2x.png",
  283. "selectedIconPath": "static/icon-user-active@2x.png",
  284. "text": "我的"
  285. }
  286. ]
  287. },
  288. "easycom": {
  289. "autoscan": true,
  290. "custom": {
  291. "tui-(.*)": "@/components/thorui/tui-$1/tui-$1.vue",
  292. "uni-(.*)": "@/components/uni-components/uni-$1/uni-$1.vue",
  293. "scroll-top": "@/components/cm-module/scrollTop/scrollTop.vue"
  294. }
  295. },
  296. "globalStyle": {
  297. "navigationBarTextStyle": "black",
  298. "navigationBarTitleText": "呵呵商城",
  299. "navigationBarBackgroundColor": "#FFFFFF",
  300. "backgroundColor": "#FFFFFF"
  301. },
  302. "condition": {
  303. //模式配置,仅开发期间生效
  304. "current": 0, //当前激活的模式(list 的索引项)
  305. "list": [{
  306. "name": "", //模式名称
  307. "path": "", //启动页面,必选
  308. "query": "" //启动参数,在页面的onLoad函数里面得到
  309. }]
  310. }
  311. }