pages.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/index/login",
  5. "style": {
  6. "navigationBarTitleText": "登录"
  7. }
  8. },
  9. {
  10. "path": "pages/index/home",
  11. "style": {
  12. "navigationBarTitleText": "主页",
  13. "navigationStyle": "custom"
  14. }
  15. },
  16. {
  17. "path": "pages/inspection/Point",
  18. "style": {
  19. "navigationBarTitleText": "巡更点",
  20. "navigationStyle": "custom"
  21. }
  22. },
  23. {
  24. "path": "pages/inspection/Plan",
  25. "style": {
  26. "navigationBarTitleText": "巡更计划",
  27. "navigationStyle": "custom",
  28. "enablePullDownRefresh": true //设置为true表示当前页面开启下拉刷新
  29. }
  30. },
  31. {
  32. "path": "pages/inspection/Route",
  33. "style": {
  34. "navigationBarTitleText": "巡检中",
  35. "navigationStyle": "custom",
  36. "enablePullDownRefresh": true //设置为true表示当前页面开启下拉刷新
  37. }
  38. },
  39. {
  40. "path": "pages/inspection/Detail",
  41. "style": {
  42. "navigationBarTitleText": "巡检详情",
  43. "navigationStyle": "custom"
  44. // "enablePullDownRefresh": true //设置为true表示当前页面开启下拉刷新
  45. }
  46. }
  47. ],
  48. "globalStyle": {
  49. "navigationBarTextStyle": "black",
  50. "navigationBarTitleText": "uni-app",
  51. "navigationBarBackgroundColor": "#F8F8F8",
  52. "backgroundColor": "#F8F8F8",
  53. "app-plus": {
  54. "background": "#efeff4"
  55. }
  56. },
  57. "condition": { //模式配置,仅开发期间生效
  58. "current": 0, //当前激活的模式(list 的索引项)
  59. "list": [
  60. {
  61. "name": "登录页面", //模式名称
  62. "path": "pages/index/login", //启动页面,必选
  63. "query": "" //启动参数,在页面的onLoad函数里面得到
  64. }
  65. ]
  66. }
  67. }