u-avatar.wxml 1015 B

1
  1. <view data-event-opts="{{[['tap',[['click',['$event']]]]]}}" class="u-avatar data-v-4f1b1b40" style="{{$root.s0}}" bindtap="__e"><block wx:if="{{!uText&&avatar}}"><image class="u-avatar__img data-v-4f1b1b40" style="{{$root.s1}}" src="{{avatar}}" mode="{{imgMode}}" data-event-opts="{{[['error',[['loadError',['$event']]]]]}}" binderror="__e"></image></block><block wx:else><block wx:if="{{uText}}"><text class="u-line-1 data-v-4f1b1b40" style="{{'font-size:'+('38rpx')+';'}}">{{uText}}</text></block><block wx:else><slot></slot></block></block><block wx:if="{{showSex}}"><view class="{{['u-avatar__sex data-v-4f1b1b40','u-avatar__sex--'+sexIcon]}}" style="{{$root.s2}}"><u-icon vue-id="35dc5aa6-1" name="{{sexIcon}}" size="20" class="data-v-4f1b1b40" bind:__l="__l"></u-icon></view></block><block wx:if="{{showLevel}}"><view class="u-avatar__level data-v-4f1b1b40" style="{{$root.s3}}"><u-icon vue-id="35dc5aa6-2" name="{{levelIcon}}" size="20" class="data-v-4f1b1b40" bind:__l="__l"></u-icon></view></block></view>