pages.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/index/index",
  5. "style": {
  6. "navigationBarTitleText": "",
  7. "navigationBarBackgroundColor": "#f0efef",
  8. "navigationStyle": "custom"
  9. }
  10. },
  11. {
  12. "path" : "pages/add/add",
  13. "style" :
  14. {
  15. "navigationBarTitleText" : "添加联系人",
  16. "enablePullDownRefresh" : false
  17. }
  18. },
  19. {
  20. "path" : "pages/setting/setting",
  21. "style" :
  22. {
  23. "navigationBarTitleText" : "设置",
  24. "enablePullDownRefresh" : false
  25. }
  26. },
  27. {
  28. "path" : "pages/history/history",
  29. "style" :
  30. {
  31. "navigationBarTitleText" : "",
  32. "enablePullDownRefresh" : false,
  33. "navigationStyle": "custom"
  34. }
  35. },
  36. {
  37. "path" : "pages/tel/tel",
  38. "style" :
  39. {
  40. "navigationBarTitleText" : "",
  41. "enablePullDownRefresh" : false
  42. }
  43. },
  44. {
  45. "path" : "pages/ContactDetails/ContactDetails",
  46. "style" :
  47. {
  48. // "navigationBarTitleText" : "联系人详情"
  49. "navigationStyle": "custom"
  50. }
  51. },
  52. {
  53. "path": "pages/edit/edit",
  54. "style":
  55. {
  56. "navigationBarTitleText": "编辑"
  57. }
  58. },
  59. {
  60. "path" : "pages/test/test",
  61. "style" :
  62. {
  63. "navigationBarTitleText" : ""
  64. }
  65. }
  66. ],
  67. "globalStyle": {
  68. "navigationBarTextStyle": "black",
  69. "navigationBarTitleText": "uni-app",
  70. "navigationBarBackgroundColor": "#f0efef",
  71. "backgroundColor": "#f0efef",
  72. "app-plus": {
  73. "bottomBarColor": "#007bff" // 设置Tab Bar背景色
  74. }
  75. },
  76. "uniIdRouter": {},
  77. "tabBar": {
  78. "height": "50px",
  79. "iconWidth": "40px",
  80. "backgroundColor": "#f0efef",
  81. "list": [
  82. {
  83. "pagePath": "pages/history/history",
  84. //"通话记录",
  85. "iconPath": "./static/fonts/directory.png",
  86. "selectedIconPath": "static/fonts/directory1.png"
  87. },
  88. {
  89. "pagePath": "pages/index/index",
  90. "iconPath": "./static/fonts/linkman.png",
  91. "selectedIconPath": "static/fonts/linkman1.png"
  92. },
  93. {
  94. "pagePath": "pages/tel/tel",
  95. "iconPath": "./static/fonts/24gf-telephoneKeypad4 (1).png",
  96. "selectedIconPath": "static/fonts/24gf-telephoneKeypad4.png"
  97. }
  98. ]
  99. },
  100. "condition" : { //模式配置,仅开发期间生效
  101. "current": 0, //当前激活的模式(list 的索引项)
  102. "list": [
  103. {
  104. "name": "", //模式名称
  105. "path": "", //启动页面,必选
  106. "query": "" //启动参数,在页面的onLoad函数里面得到
  107. }
  108. ]
  109. }
  110. }