wxml:
<!-- pages/index/index.wxml -->
<!--导航菜单-->
<view class="navbar">
<!--循环-->
<view wx:for="{
{navbar}}" data-idx="{
{index}}" class="item {
{currentTab==index ? 'active' : ''}}" bindtap="navbarTap">
<view class="notice" wx:if="{
{count[index]>0}}">{
{count[index]}}</view