tabbar.wxml 1.3 KB

1
  1. <block wx:if="{{isShow}}"><view class="{{['tabbar','data-v-4fb16c68',themeName]}}"><view class="uni-tabbar flex data-v-4fb16c68" style="{{'background-color:'+(styles.bg_color)+';'}}"><view class="uni-tabbar__border data-v-4fb16c68"></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeTab',['$0'],[[['content.data','',index,'link']]]]]]]}}" class="uni-tabbar__item flex-col row-center col-center data-v-4fb16c68" bindtap="__e"><block wx:if="{{item.m0}}"><u-badge data-custom-hidden="{{!(isLogin)}}" vue-id="{{'d01cb1fc-1-'+index}}" count="{{cartNum}}" offset="{{[10,54]}}" class="data-v-4fb16c68" bind:__l="__l"></u-badge></block><block wx:if="{{content.style!=3}}"><view class="uni-tabbar__icon data-v-4fb16c68"><block wx:if="{{item.$orig.link.path!=currentPath}}"><image class="icon-image data-v-4fb16c68" src="{{item.m1}}"></image></block><block wx:else><image class="icon-image data-v-4fb16c68" src="{{item.m2}}"></image></block></view></block><block wx:if="{{content.style!=2}}"><view class="{{['uni-tabbar__label','data-v-4fb16c68',(item.$orig.link.path==currentPath)?'active':'']}}" style="{{item.s0}}">{{''+item.$orig.name+''}}</view></block></view></block></view><view class="tabbar-placeholder data-v-4fb16c68"></view></view></block>