pages.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. // pages数组中第一项表示应用启动页,设置页面路径及窗口表现
  3. "pages": [
  4. {
  5. "path": "pages/index/index",
  6. "style": {
  7. "navigationStyle":"custom", //导航栏样式,仅支持 default/custom。custom即取消默认的原生导航栏 微信小程序7.0+、百度小程序、H5。
  8. "backgroundColor":"#eeeeee", //窗口的背景色 微信小程序、百度小程序、头条小程序
  9. "backgroundTextStyle":"dark", //下拉 loading 的样式,仅支持 dark/light
  10. "enablePullDownRefresh":true //是否开启下拉刷新,详见页面生命周期。
  11. }
  12. },
  13. {
  14. "path":"pages/mypersonal/personal",
  15. "style":{
  16. // #ifdef H5
  17. "navigationStyle":"custom",
  18. // #endif
  19. "navigationBarBackgroundColor":"#49A3EE"
  20. }
  21. }
  22. ,{
  23. "path" : "pages/list/list",
  24. "style" : {
  25. "navigationBarTitleText":"城市列表"
  26. }
  27. }
  28. ,{
  29. "path" : "pages/setting/setting",
  30. "style" : {
  31. // #ifdef H5
  32. "navigationStyle":"custom"
  33. // #endif
  34. }
  35. }
  36. ,{
  37. "path" : "pages/gesture/gesture",
  38. "style" : {
  39. // #ifdef H5
  40. "navigationStyle":"custom"
  41. // #endif
  42. }
  43. }
  44. ,{
  45. "path" : "pages/syeminfo/syeminfo",
  46. "style" : {
  47. // #ifdef H5
  48. "navigationStyle":"custom"
  49. // #endif
  50. }
  51. }
  52. ,{
  53. "path" : "pages/login/login",
  54. "style" : {
  55. // #ifdef H5
  56. "navigationStyle":"custom"
  57. // #endif
  58. }
  59. }
  60. ],
  61. "tabBar": {
  62. "color":"#C0C4C6", //tab 上的文字默认颜色
  63. "selectedColor":"#2386EE", //tab 上的文字选中时的颜色
  64. "backgroundColor":"#FFFFFF", //tab 的背景色
  65. "borderStyle":"black", //tabbar 上边框的颜色,仅支持 black/white
  66. "list":[
  67. {
  68. "iconPath":"static/home.png",
  69. "selectedIconPath":"static/home_light.png",
  70. "pagePath":"pages/index/index", //页面路径,必须在 pages 中先定义
  71. "text":"首頁" //tab 上按钮文字,在 5+APP 和 H5 平台为非必填。例如中间可放一个没有文字的+号图标
  72. },
  73. {
  74. "iconPath":"static/people.png",
  75. "selectedIconPath":"static/people_light.png",
  76. "pagePath":"pages/mypersonal/personal",
  77. "text":"我的"
  78. }
  79. ],
  80. "position":"bottom"
  81. },
  82. "globalStyle": {
  83. "navigationBarTextStyle": "black",
  84. "navigationBarTitleText": "",
  85. "navigationBarBackgroundColor": "#FFFFFF",
  86. "backgroundColor": "#FFFFFF"
  87. }
  88. }