pages.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "pages": [
  3. // {
  4. // "path": "pages/home/index",
  5. // "style": {
  6. // "navigationBarTitleText": "自定义tabbar首页"
  7. // }
  8. // },
  9. {
  10. "path": "pages/index/index",
  11. "style": {
  12. "navigationBarTitleText": "首页"
  13. }
  14. },
  15. {
  16. "path": "pages/category/index",
  17. "style": {
  18. "navigationBarTitleText": "分类"
  19. }
  20. },
  21. {
  22. "path": "pages/service/index",
  23. "style": {
  24. "navigationBarTitleText": "售后"
  25. }
  26. },
  27. {
  28. "path": "pages/my/index",
  29. "style": {
  30. "navigationBarTitleText": "我的"
  31. }
  32. },
  33. {
  34. "path": "pages/map/index",
  35. "style": {
  36. "navigationBarTitleText": "地图"
  37. }
  38. },
  39. {
  40. "path": "pages/qrPage/index",
  41. "style": {
  42. "navigationBarTitleText": "二维码页面"
  43. }
  44. }
  45. ],
  46. "globalStyle": {
  47. "navigationBarTextStyle": "white",
  48. "navigationBarTitleText": "uni-app",
  49. "navigationBarBackgroundColor": "#F8F8F8",
  50. "backgroundColor": "#F8F8F8",
  51. "navigationStyle": "custom",
  52. "app-plus": {
  53. "background": "#efeff4"
  54. }
  55. },
  56. "tabBar": {
  57. "color": "black", //字体颜色
  58. "selectedColor": "#1afa29", //选中时字体颜色
  59. "borderStyle": "black", //底部的上边框线条
  60. "backgroundColor": "#F8F8F8", //底部背景色
  61. "fontSize": "12px", //字体大小
  62. "spacing": "5px", //字体到图标的距离
  63. "height": "50px", //底部高
  64. // 引入字体图标库
  65. "iconfontSrc": "static/fonts/iconfont.ttf",
  66. "list": [
  67. // {
  68. // "pagePath": "pages/home/index",
  69. // "text": "自定义首页",
  70. // "iconPath": "static/tabbar/index.png",
  71. // "selectedIconPath": "static/tabbar/index_a.png"
  72. // },
  73. {
  74. "pagePath": "pages/index/index",
  75. "text": "首页",
  76. "iconPath": "static/tabbar/index.png",
  77. "selectedIconPath": "static/tabbar/index_a.png",
  78. // 优先级高于 iconPath,该属性依赖 tabbar 根节点的 iconfontSrc
  79. "iconfont": {
  80. "text": "\ue600", //  这是图标原始的编码
  81. "selectedText": "\ue600", //
  82. "fontSize": "17px", // 图标大小
  83. "color": "#333", // 未选中时,图标的颜色
  84. "selectedColor": "red" // 选中时,图标的颜色
  85. }
  86. },
  87. {
  88. "pagePath": "pages/category/index",
  89. "text": "分类",
  90. "iconPath": "static/tabbar/cat.png",
  91. "selectedIconPath": "static/tabbar/cat_a.png",
  92. "iconfont": {
  93. "text": "\ue750", //  这是图标原始的编码
  94. "selectedText": "\ue750", //
  95. "fontSize": "17px", // 图标大小
  96. "color": "#333", // 未选中时,图标的颜色
  97. "selectedColor": "red" // 选中时,图标的颜色
  98. }
  99. },
  100. {
  101. "pagePath": "pages/service/index",
  102. "text": "售后",
  103. "iconPath": "static/tabbar/service.png",
  104. "selectedIconPath": "static/tabbar/service_a.png",
  105. "iconfont": {
  106. "text": "\ue60a", //  这是图标原始的编码
  107. "selectedText": "\ue60a", //
  108. "fontSize": "17px", // 图标大小
  109. "color": "#333", // 未选中时,图标的颜色
  110. "selectedColor": "red" // 选中时,图标的颜色
  111. }
  112. },
  113. {
  114. "pagePath": "pages/my/index",
  115. "text": "我的",
  116. "iconPath": "static/tabbar/my.png",
  117. "selectedIconPath": "static/tabbar/my_a.png",
  118. "iconfont": {
  119. "text": "\ue8c6", //  这是图标原始的编码
  120. "selectedText": "\ue8c6", //
  121. "fontSize": "17px", // 图标大小
  122. "color": "#333", // 未选中时,图标的颜色
  123. "selectedColor": "red" // 选中时,图标的颜色
  124. }
  125. }
  126. ]
  127. }
  128. }