van微信小程序组件tabbar标签使用
根目录新建文件 custom-tab-bar
在custom-tab-bar右键新建Component,index文件
index.js文件data内容为
Component({
properties: {},
data: {
active: 0,
// 菜单列表
list: [{
"url": "/page/home/home", //地址
"icon": "wap-home-o", //图标
"info": '', //小红点
"text": "首页"
},
.
原创
2021-06-13 23:26:12 ·
1737 阅读 ·
0 评论