pages.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {
  2. "easycom": {
  3. "autoscan": true,
  4. "custom": {
  5. "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
  6. "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
  7. "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
  8. "^CustomToast$": "@/components/CustomToast.vue"
  9. }
  10. },
  11. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  12. {
  13. "path": "pages/index/index",
  14. "style": {
  15. "navigationBarTitleText": "我的任务",
  16. "enablePullDownRefresh": true
  17. }
  18. },
  19. {
  20. "path": "pages/tabbar/my",
  21. "style": {
  22. "navigationBarTitleText": "个人中心"
  23. },
  24. "meta": {
  25. "auth": false
  26. }
  27. }, {
  28. "path": "pages/tabbar/visitor",
  29. "style": {
  30. "navigationBarTitleText": "访客中心"
  31. },
  32. "meta": {
  33. "auth": false
  34. }
  35. }
  36. ],
  37. "preloadRule": {
  38. "pages/index/index": {
  39. "network": "all",
  40. "packages": ["pagesA"]
  41. }
  42. },
  43. "subPackages": [{
  44. "root": "pagesA",
  45. "pages": [{
  46. "path": "public/login",
  47. "style": {
  48. "navigationBarTitleText": "登录",
  49. "navigationStyle": "custom"
  50. }
  51. },
  52. {
  53. "path": "public/richtext",
  54. "style": {
  55. "navigationBarTitleText": "用户协议和隐私政策"
  56. }
  57. },
  58. {
  59. "path": "public/phone-login",
  60. "style": {
  61. "navigationBarTitleText": "手机登录"
  62. }
  63. },
  64. {
  65. "path": "user/index",
  66. "style": {
  67. "navigationBarTitleText": "用户信息"
  68. }
  69. },
  70. {
  71. "path": "task/edit",
  72. "style": {
  73. "navigationBarTitleText": "申请访问"
  74. }
  75. },
  76. {
  77. "path": "task/detail",
  78. "style": {
  79. "navigationBarTitleText": "访客详情"
  80. }
  81. }
  82. ]
  83. }
  84. ],
  85. "tabBar": {
  86. "color": "#999999",
  87. "selectedColor": "#292C35",
  88. "borderStyle": "white",
  89. "backgroundColor": "#FFFFFF",
  90. "list": [
  91. // {
  92. // "pagePath": "pages/index/index-copy",
  93. // "text": "%index.home%"
  94. // },
  95. {
  96. "pagePath": "pages/index/index",
  97. "iconPath": "/static/tabbar/task.png",
  98. "selectedIconPath": "/static/tabbar/task-select.png",
  99. "text": "我的任务"
  100. },
  101. {
  102. "pagePath": "pages/tabbar/visitor",
  103. "iconPath": "/static/tabbar/record.png",
  104. "selectedIconPath": "/static/tabbar/record-select.png",
  105. "text": "访客记录"
  106. },
  107. {
  108. "pagePath": "pages/tabbar/my",
  109. "iconPath": "/static/tabbar/my.png",
  110. "selectedIconPath": "/static/tabbar/my-select.png",
  111. "text": "个人信息"
  112. }
  113. ]
  114. },
  115. "globalStyle": {
  116. "navigationBarTextStyle": "white",
  117. "navigationBarTitleText": "uni-app",
  118. "navigationBarBackgroundColor": "#363636",
  119. "backgroundColor": "#363636"
  120. }
  121. }