<view><block tt:if="{{userInfo}}"><view data-event-opts="{{[['tap',[['toLogin',['$event']]]]]}}" class="user-header" bindtap="__e"><view class="avatar-btn"><image src="{{userInfo?userInfo.avatar:'https://inmei-print.oss-cn-guangzhou.aliyuncs.com/logo.png'}}"></image></view><view class="user-info"><view class="name">{{userInfo.nickname?userInfo.nickname:'请先登录'}}</view></view></view></block><block tt:else><view class="user-header"><view class="avatar-btn"><image src="https://inmei-print.oss-cn-guangzhou.aliyuncs.com/logo.png"></image></view><view class="user-info"><view data-event-opts="{{[['tap',[['toLogin',['$event']]]]]}}" class="name" bindtap="__e">请先登录</view></view></view></block><view class="user-menu"><navigator class="menu-item" hover-class="none" url="/pages/user/address?type=1"><view class="icon"><image src="/static/image/address.png"></image></view><view class="name">会员地址</view><view class="right"><image src="/static/image/right.png"></image></view></navigator><navigator class="menu-item" hover-class="none" url="/pages/user/license"><view class="icon"><image src="/static/image/zizhi.png"></image></view><view class="name">服务资质</view><view class="right"><image src="/static/image/right.png"></image></view></navigator><view data-event-opts="{{[['tap',[['outLogin',['$event']]]]]}}" class="menu-item" bindtap="__e"><view class="icon"><image src="/static/image/out.png"></image></view><view class="name">退出</view><view class="right"><image src="/static/image/right.png"></image></view></view></view></view>