pages.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. "path" : "pages/luckdraw/luckdraw",
  62. "style" : {
  63. // #ifdef H5
  64. "navigationStyle":"custom"
  65. // #endif
  66. }
  67. }
  68. ],
  69. "tabBar": {
  70. "color":"#C0C4C6", //tab 上的文字默认颜色
  71. "selectedColor":"#2386EE", //tab 上的文字选中时的颜色
  72. "backgroundColor":"#FFFFFF", //tab 的背景色
  73. "borderStyle":"black", //tabbar 上边框的颜色,仅支持 black/white
  74. "list":[
  75. {
  76. "iconPath":"static/home.png",
  77. "selectedIconPath":"static/home_light.png",
  78. "pagePath":"pages/index/index", //页面路径,必须在 pages 中先定义
  79. "text":"首頁" //tab 上按钮文字,在 5+APP 和 H5 平台为非必填。例如中间可放一个没有文字的+号图标
  80. },
  81. {
  82. "iconPath":"static/people.png",
  83. "selectedIconPath":"static/people_light.png",
  84. "pagePath":"pages/mypersonal/personal",
  85. "text":"我的"
  86. }
  87. ],
  88. "position":"bottom"
  89. },
  90. "globalStyle": {
  91. "navigationBarTextStyle": "black",
  92. "navigationBarTitleText": "",
  93. "navigationBarBackgroundColor": "#FFFFFF",
  94. "backgroundColor": "#FFFFFF"
  95. }
  96. }