pages.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. {
  2. // #ifdef H5
  3. "pages": [{
  4. "path": "pages/login/register",
  5. "name": "register",
  6. "style": {
  7. "navigationStyle": "custom"
  8. }
  9. }, {
  10. "path": "pages/login/register-success",
  11. "meta": {
  12. "visitor": true
  13. },
  14. "style": {
  15. "navigationStyle": "custom"
  16. }
  17. }],
  18. // #endif
  19. // #ifndef H5
  20. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  21. {
  22. "path": "pages/front/front",
  23. "name": "front",
  24. "meta": {
  25. "visitor": true
  26. },
  27. "style": {
  28. "navigationStyle": "custom",
  29. "enablePullDownRefresh": true
  30. }
  31. }, {
  32. "path": "pages/user/user",
  33. "meta": {
  34. "authorization": true
  35. },
  36. "style": {
  37. "navigationStyle": "custom"
  38. }
  39. }, {
  40. "path": "pages/contrast/contrast-list",
  41. "meta": {
  42. "authorization": true
  43. },
  44. "style": {
  45. "navigationStyle": "custom"
  46. }
  47. }, {
  48. "path": "pages/contrast/contrast",
  49. "meta": {
  50. "authorization": true
  51. },
  52. "style": {
  53. "navigationStyle": "custom"
  54. }
  55. },
  56. {
  57. "path": "pages/login/login",
  58. "name": "login",
  59. "style": {
  60. "navigationStyle": "custom"
  61. }
  62. },
  63. // {
  64. // "path": "pages/login/register",
  65. // "name": "register",
  66. // "style": {
  67. // "navigationStyle": "custom"
  68. // }
  69. // },
  70. // {
  71. // "path": "pages/login/password",
  72. // "name": "register",
  73. // "style": {
  74. // "navigationStyle": "custom"
  75. // }
  76. // },
  77. {
  78. "path": "pages/login/register-success",
  79. "meta": {
  80. "visitor": true
  81. },
  82. "style": {
  83. "navigationStyle": "custom"
  84. }
  85. }, {
  86. "path": "pages/category/category",
  87. "style": {
  88. "navigationStyle": "custom"
  89. },
  90. "meta": {
  91. "visitor": true
  92. }
  93. }
  94. ],
  95. "subPackages": [{
  96. "root": "packages/goods",
  97. "pages": [{
  98. "path": "search", //商品搜索页
  99. "meta": {
  100. "visitor": true
  101. },
  102. "style": {
  103. "navigationStyle": "custom"
  104. }
  105. }, {
  106. "path": "good-detail", //商品搜索页
  107. "meta": {
  108. "visitor": true
  109. },
  110. "style": {
  111. "navigationStyle": "custom"
  112. }
  113. },{
  114. "path": "brand-detail", //商品搜索页
  115. "meta": {
  116. "visitor": true
  117. },
  118. "style": {
  119. "navigationStyle": "custom"
  120. }
  121. },{
  122. "path": "brand-goods-search", //商品搜索页
  123. "meta": {
  124. "visitor": true
  125. },
  126. "style": {
  127. "navigationStyle": "custom"
  128. }
  129. }, {
  130. "path": "category", //商品搜索页
  131. "meta": {
  132. "visitor": true
  133. },
  134. "style": {
  135. "navigationStyle": "custom"
  136. }
  137. }, {
  138. "path": "collect-list", //商品搜索页
  139. "style": {
  140. "navigationStyle": "custom"
  141. }
  142. }, {
  143. "path": "filter", //商品搜索页
  144. "style": {
  145. "navigationStyle": "custom"
  146. }
  147. }]
  148. }, {
  149. "root": "packages/order",
  150. "pages": []
  151. }, {
  152. "root": "packages/user/fund",
  153. "pages": []
  154. }, {
  155. "root": "packages/user/user",
  156. "pages": [
  157. // {
  158. // "path": "agreement", //
  159. // "style": {
  160. // "navigationStyle": "custom"
  161. // }
  162. // },
  163. {
  164. "path": "info-setting", //
  165. "style": {
  166. "navigationStyle": "custom"
  167. }
  168. }, {
  169. "path": "share", //
  170. "style": {
  171. "navigationStyle": "custom"
  172. }
  173. }, {
  174. "path": "user-setting", //
  175. "style": {
  176. "navigationStyle": "custom"
  177. }
  178. }, {
  179. "path": "update-phone", //
  180. "style": {
  181. "navigationStyle": "custom"
  182. }
  183. }, {
  184. "path": "set-user-info", //
  185. "style": {
  186. "navigationStyle": "custom"
  187. }
  188. }
  189. ]
  190. }, {
  191. "root": "packages/baby",
  192. "pages": [{
  193. "path": "add-baby", //
  194. "style": {
  195. "navigationStyle": "custom"
  196. }
  197. },
  198. {
  199. "path": "select-baby", //
  200. "style": {
  201. "navigationStyle": "custom"
  202. }
  203. },
  204. {
  205. "path": "baby-feed", //
  206. "style": {
  207. "navigationStyle": "custom"
  208. }
  209. },
  210. {
  211. "path": "add-feed", //
  212. "style": {
  213. "navigationStyle": "custom"
  214. }
  215. },
  216. {
  217. "path": "baby-weight", //
  218. "style": {
  219. "navigationStyle": "custom"
  220. }
  221. },
  222. {
  223. "path": "add-weight", //
  224. "style": {
  225. "navigationStyle": "custom"
  226. }
  227. },
  228. {
  229. "path": "baby-remark", //
  230. "style": {
  231. "navigationStyle": "custom"
  232. }
  233. },
  234. {
  235. "path": "add-remark", //
  236. "style": {
  237. "navigationStyle": "custom"
  238. }
  239. }
  240. ]
  241. }, {
  242. "root": "packages/family",
  243. "pages": [{
  244. "path": "family-list", //
  245. "style": {
  246. "navigationStyle": "custom"
  247. }
  248. },{
  249. "path": "add-family", //
  250. "style": {
  251. "navigationStyle": "custom"
  252. }
  253. },{
  254. "path": "family-setting", //
  255. "style": {
  256. "navigationStyle": "custom"
  257. }
  258. },{
  259. "path": "family-transfer", //
  260. "style": {
  261. "navigationStyle": "custom"
  262. }
  263. },{
  264. "path": "add-member", //
  265. "style": {
  266. "navigationStyle": "custom"
  267. }
  268. },{
  269. "path": "member-info", //
  270. "style": {
  271. "navigationStyle": "custom"
  272. }
  273. }
  274. ]
  275. }],
  276. "tabBar": {
  277. "color": "#333333",
  278. "selectedColor": "#0080f9",
  279. "borderStyle": "white",
  280. "backgroundColor": "#ffffff",
  281. "list": [{
  282. "pagePath": "pages/front/front",
  283. "text": "首页"
  284. }, {
  285. "pagePath": "pages/category/category",
  286. "text": "全部分类"
  287. }, {
  288. "pagePath": "pages/contrast/contrast-list",
  289. "text": "对比"
  290. }, {
  291. "pagePath": "pages/user/user",
  292. "text": "我的"
  293. }]
  294. },
  295. // #endif
  296. "easycom": {
  297. "^uni-(.*)": "@/uni_modules/uni-$1/components/uni-$1/uni-$1.vue"
  298. // "uni-swipe-action-item": "@/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue"
  299. // "^My(.*)": "@/components/My$1/My$1.vue"
  300. },
  301. "globalStyle": {
  302. "pageOrientation": "portrait",
  303. "navigationBarTitleText": "育百通",
  304. "navigationBarTextStyle": "black",
  305. "navigationBarBackgroundColor": "#FFFFFF",
  306. "backgroundColor": "#FFFFFF",
  307. "backgroundColorTop": "#FFFFFF",
  308. "backgroundColorBottom": "#FFFFFF"
  309. },
  310. "condition": { //模式配置,仅开发期间生效
  311. "current": 0, //当前激活的模式(list 的索引项)
  312. "list": []
  313. }
  314. }