pages.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "easycom": {
  3. "autoscan": true,
  4. "custom": {
  5. // uni-ui 规则如下配置
  6. "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
  7. }
  8. },
  9. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  10. {
  11. "path": "pages/login/index",
  12. "style": {
  13. "navigationBarTitleText": "登录",
  14. "navigationStyle": "custom"
  15. }
  16. },
  17. {
  18. "path": "pages/login/Forget",
  19. "style": {
  20. "navigationBarTitleText": "找回密码",
  21. "navigationStyle": "custom"
  22. }
  23. },
  24. {
  25. "path": "pages/tabbar/task/index",
  26. "style": {
  27. "navigationBarTitleText": "任务",
  28. "navigationStyle": "custom"
  29. }
  30. }, {
  31. "path": "pages/tabbar/exercise/index",
  32. "style": {
  33. "navigationBarTitleText": "测试",
  34. "navigationStyle": "custom"
  35. }
  36. },
  37. {
  38. "path": "pages/tabbar/person/index",
  39. "style": {
  40. "navigationBarTitleText": "个人中心",
  41. "navigationStyle": "custom"
  42. }
  43. }, {
  44. "path": "pages/answer_question/answer/index",
  45. "style": {
  46. "navigationStyle": "custom",
  47. "app-plus": {
  48. "bounce": "none"
  49. },
  50. "disableSwipeBack": true
  51. }
  52. },
  53. {
  54. "path": "pages/404",
  55. "style": {
  56. "navigationBarTitleText": "",
  57. "enablePullDownRefresh": false
  58. }
  59. },
  60. {
  61. "path": "pages/common/WebViewPreview",
  62. "style": {
  63. "navigationBarTitleText": "",
  64. "enablePullDownRefresh": false
  65. }
  66. },
  67. {
  68. "path": "pages/common/ViewCourseware",
  69. "style": {
  70. "navigationBarTitleText": "",
  71. "enablePullDownRefresh": false
  72. }
  73. },
  74. {
  75. "path": "pages/common/AnswerReport",
  76. "style": {
  77. "navigationStyle": "custom"
  78. }
  79. },
  80. {
  81. "path": "pages/tabbar/task/TaskDetails",
  82. "style": {
  83. "navigationStyle": "custom"
  84. }
  85. }
  86. ],
  87. "tabBar": {
  88. "color": "#8C8C8C",
  89. "selectedColor": "#306EFF",
  90. "backgroundColor": "#ffffff",
  91. "borderColor": "white",
  92. "height": "120rpx",
  93. "fontSize": "20rpx",
  94. "list": [{
  95. "pagePath": "pages/tabbar/task/index",
  96. "text": "任务",
  97. "iconPath": "static/tabbar/task_black.png",
  98. "selectedIconPath": "static/tabbar/task_selected.png"
  99. }, {
  100. "pagePath": "pages/tabbar/exercise/index",
  101. "text": "测试",
  102. "iconPath": "static/tabbar/exercise_black.png",
  103. "selectedIconPath": "static/tabbar/exercise_selected.png"
  104. }, {
  105. "pagePath": "pages/tabbar/person/index",
  106. "text": "我的",
  107. "iconPath": "static/tabbar/user_black.png",
  108. "selectedIconPath": "static/tabbar/user_selected.png"
  109. }]
  110. },
  111. "globalStyle": {
  112. "navigationBarTextStyle": "black",
  113. "navigationBarTitleText": "",
  114. "navigationBarBackgroundColor": "#F8F8F8",
  115. "backgroundColor": "#F8F8F8",
  116. "onReachBottomDistance": 100,
  117. "disableSwipeBack": true
  118. },
  119. "uniIdRouter": {
  120. "loginPage": "pages/login/index"
  121. }
  122. }