找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 小程序开发 查看内容

微信小程序 tabBar

作者:模板之家 2018-4-18 11:11 3189人关注

很简单,参考API: https://mp.weixin.qq.com/debug/wxadoc/dev/framework/MINA.html?t=20161107 在app.json里填写:tab个数范围2-5个 view plaincopy tabBar:{ color:#818181, selectedColor:#0082D7, borderStyle:w ...

很简单,参考API: https://mp.weixin.qq.com/debug/wxadoc/dev/framework/MINA.html?t=20161107

在app.json里填写:tab个数范围2-5个

 

[plain] view plain copy
 
 在CODE上查看代码片派生到我的代码片
  1. "tabBar":{  
  2.     "color": "#818181",  
  3.     "selectedColor": "#0082D7",  
  4.     "borderStyle": "white",  
  5.     "list": [  
  6.       {  
  7.         "pagePath": "pages/index/index",  
  8.         "text": "首页",  
  9.         "iconPath":"res/images/tabar/index.png",  
  10.         "selectedIconPath": "res/images/toobar/index01.png"  
  11.       },  
  12.       {  
  13.         "pagePath": "pages/me/me",  
  14.         "text": "个人中心",  
  15.         "iconPath": "res/images/tabar/me.png",  
  16.         "selectedIconPath": "res/images/toobar/me.png"  
  17.       },  
  18.       {  
  19.         "pagePath": "pages/more/more",  
  20.         "text": "更多",  
  21.         "iconPath": "res/images/tabar/more.png",  
  22.         "selectedIconPath": "res/images/toobar/more.png"  
  23.       }  
  24.     ]  
  25.   }  

 

 

另外貌似不支持网络获取图片,点击后对应页面根据需要自行添加编写即可。



路过

雷人

握手

鲜花

鸡蛋
原作者: 模板之家 来自: 网络收集

全部回复(0)