pages.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. }
  48. ],
  49. "tabBar": {
  50. "color":"#C0C4C6", //tab 上的文字默认颜色
  51. "selectedColor":"#2386EE", //tab 上的文字选中时的颜色
  52. "backgroundColor":"#FFFFFF", //tab 的背景色
  53. "borderStyle":"black", //tabbar 上边框的颜色,仅支持 black/white
  54. "list":[
  55. {
  56. "iconPath":"static/home.png",
  57. "selectedIconPath":"static/home_light.png",
  58. "pagePath":"pages/index/index", //页面路径,必须在 pages 中先定义
  59. "text":"首頁" //tab 上按钮文字,在 5+APP 和 H5 平台为非必填。例如中间可放一个没有文字的+号图标
  60. },
  61. {
  62. "iconPath":"static/people.png",
  63. "selectedIconPath":"static/people_light.png",
  64. "pagePath":"pages/mypersonal/personal",
  65. "text":"我的"
  66. }
  67. ],
  68. "position":"bottom"
  69. },
  70. "globalStyle": {
  71. "navigationBarTextStyle": "black",
  72. "navigationBarTitleText": "",
  73. "navigationBarBackgroundColor": "#FFFFFF",
  74. "backgroundColor": "#FFFFFF"
  75. }
  76. }