1、开局 vant 加入
2、底部导航 (1、自定义 2、原带的)
附带问题: 会闪动
3、页面点击事件 bintTap
4、页面 for ·数据渲染
<van-tabbar-item
wx:for="{{ list }}"
wx:key="index"
bindtap="switchTab" // 点击事件
data-path="{{item}}" // 点击事件 -- 传参
info="{{item.info?5:''}}"
icon="{{ item.iconPath }}" >{{item.text}}
</van-tabbar-item>
// js 页面接收参数 const url = event.currentTarget.dataset.path
5、页面生命周期()
6、页面跳转方式 :
https://www.cnblogs.com/liuxin-673855200/p/9506976.html
注意: 去除左上角箭头
onLoad: function (options) {
wx.hideHomeButton()
},
7、
不同身份使用不同的 bar:
https://blog.csdn.net/weixin_43647163/article/details/105648876