1
0

pages.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. "path" : "pages/contact/contact",
  68. "style" :
  69. {
  70. "navigationBarTitleText" : ""
  71. }
  72. }
  73. ],
  74. "globalStyle": {
  75. "navigationBarTextStyle": "black",
  76. "navigationBarTitleText": "uni-app",
  77. "navigationBarBackgroundColor": "#f0efef",
  78. "backgroundColor": "#f0efef",
  79. "app-plus": {
  80. "bottomBarColor": "#007bff" // 设置Tab Bar背景色
  81. }
  82. },
  83. "uniIdRouter": {},
  84. "tabBar": {
  85. "height": "50px",
  86. "iconWidth": "40px",
  87. "backgroundColor": "#f0efef",
  88. "list": [
  89. {
  90. "pagePath": "pages/history/history",
  91. //"通话记录",
  92. "iconPath": "./static/fonts/directory.png",
  93. "selectedIconPath": "static/fonts/directory1.png"
  94. },
  95. {
  96. "pagePath": "pages/index/index",
  97. "iconPath": "./static/fonts/linkman.png",
  98. "selectedIconPath": "static/fonts/linkman1.png"
  99. },
  100. {
  101. "pagePath": "pages/tel/tel",
  102. "iconPath": "./static/fonts/24gf-telephoneKeypad4 (1).png",
  103. "selectedIconPath": "static/fonts/24gf-telephoneKeypad4.png"
  104. }
  105. ]
  106. },
  107. "condition" : { //模式配置,仅开发期间生效
  108. "current": 0, //当前激活的模式(list 的索引项)
  109. "list": [
  110. {
  111. "name": "", //模式名称
  112. "path": "", //启动页面,必选
  113. "query": "" //启动参数,在页面的onLoad函数里面得到
  114. }
  115. ]
  116. }
  117. }