微信小程序自定义tabbar的写法- - - >>>
也可以先看官方
废话不多说
上页面:
1.app.json页面
2.在根目录下新建文件夹
3.新建文件下的index.wxml页面(页面中的ICON图标自己找,暂不提供,主要是没啥意义 哈哈哈)
新建文件下的index.wxml页面代码:
<!--custom-tab-bar/index.wxml-->
<view class="tabbar_box">
<navigator class="tabbar_nav" hover-class="none" bindtap="home">
<image class="tabbar_icon" src="./icon/icon_home.png" role="img">
</image>
<text>首页</text>
</navigator>
<navigator class="tabbar_nav" hover-class="none" bindtap="look">
<view class="special-wrapper">
<image class="tabbar_icon" src="./icon/icon_center.png" role="img">