Blogger Information
Blog 22
fans 0
comment 0
visits 26857
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
微信小程序底部菜单栏的使用方法
kiimi的博客
Original
969 people have browsed it

1、找到项目根目录的配置文件 app.json,在配置文件中加入配置代码。例如:

"tabBar": {  <!--底部的导航配置属性-->
   "color": "为选择时底部导航栏的颜色",  
   "selectedColor": "选中时底部导航栏的颜色",  
   "borderStyle":"底部导航栏边框样式",  
   "list": [{  <!--导航配置数组-->
     "selectedIconPath": "选中时的图片路径",  
     "iconPath": "未选中时的图片路径",  
     "pagePath": "页面访问地址",  
     "text": "首页"  
   }, {  
     "selectedIconPath": "选中时的图片路径",  
     "iconPath": "未选中时的图片路径",  
     "pagePath": "页面访问地址",  
     "text": "会员"  
   }, {  
     "selectedIconPath": "选中时的图片路径",  
     "iconPath": "未选中时的图片路径",  
     "pagePath": "页面访问地址",  
     "text": "订单"  
   }]  
 },


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post