pages.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "easycom": {
  3. "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
  4. },
  5. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  6. {
  7. "path": "pages/index/index", // 首页
  8. "style": {
  9. "navigationBarTitleText": "乐色超人",
  10. "enablePullDownRefresh": false
  11. }
  12. },
  13. {
  14. "path": "pages/index/addData",
  15. "style": {
  16. "navigationBarTitleText": "垃圾数据录入"
  17. }
  18. },
  19. {
  20. "path": "pages/login/login",
  21. "style": {
  22. "navigationBarTitleText": "授权登录"
  23. }
  24. },
  25. {
  26. "path": "pages/userCenter/index",
  27. "style": {
  28. "navigationBarTitleText": "个人中心",
  29. "navigationBarBackgroundColor": "#0DC55F",
  30. "navigationBarTextStyle": "white"
  31. }
  32. },
  33. {
  34. "path": "pages/userCenter/aboutUs",
  35. "style": {
  36. "navigationBarTitleText": "关于我们"
  37. }
  38. },
  39. {
  40. "path": "pages/agreement/agreement",
  41. "style": {
  42. "navigationBarTitleText": "用户协议及隐私政策"
  43. }
  44. }
  45. ],
  46. "globalStyle": {
  47. "navigationBarTextStyle": "black",
  48. "navigationBarTitleText": "uni-app",
  49. "navigationBarBackgroundColor": "#FFFFFF",
  50. "backgroundColor": "#f2f2f2",
  51. "app-plus": {
  52. // 将回弹属性关掉
  53. "bounce": "none",
  54. "scrollIndicator": "none"
  55. }
  56. },
  57. "tabBar": {
  58. "color": "#7A7E83",
  59. "selectedColor": "##0DC55F",
  60. "backgroundColor": "#ffffff",
  61. "fontSize": "14px",
  62. "list": [
  63. {
  64. "pagePath": "pages/index/index",
  65. "iconPath": "static/index/logo.png",
  66. "selectedIconPath": "static/index/logo-active.png",
  67. "text": "首页"
  68. },
  69. {
  70. "pagePath": "pages/index/index",
  71. "iconPath": "static/index/logo.png",
  72. "selectedIconPath": "static/index/logo-active.png",
  73. "text": "订单"
  74. },
  75. {
  76. "pagePath": "pages/userCenter/index",
  77. "iconPath": "static/tabbar/user.png",
  78. "selectedIconPath": "static/tabbar/user-active.png",
  79. "text": "我的"
  80. }]
  81. }
  82. }