小程序自定义导航 open-type='switchTab' 点击不跳转
小程序自定义导航 open-type=‘switchTab’ 点击不跳转
< view class = 'tapbar' wx:if = '{{user_role == "用户"}}' > < navigator wx:for = '{{tab_list.list}}' wx:key = '{{item}}' class = 'item {{item.active?"active":""}}' open-type = 'switchTab' url = '{{item.pagePath}}' > < i class = 'icon iconfont {{item.iconPath}}' ></ i > < text >{{item.text}}</ text > </ navigator > </ view > |