<view class="center">
  <!-- 处理点击事件和hover类 -->
  <view class="logo" bindtap="goLogin" hover-class="{{!isLogin ? 'logo-hover' : ''}}">
  <!-- 如果已登录并且有头像，则显示用户头像 -->
  <image class="logo-img" wx:if="{{isLogin && userInfo && userInfo.avatarUrl}}" src="{{ userInfo.avatarUrl }}" />
  <!-- 如果未登录或没有头像，则显示默认头像 -->
  <image class="logo-img" wx:if="{{!isLogin || !userInfo.avatarUrl}}" src="/assets/taddar/me.png" />
  <view class="logo-title">
    <!-- 显示昵称，如果已登录，则显示昵称 -->
    <text class="uer-name">Hi，{{ isLogin ? userInfo.nickName : '未登录' }}</text>
    <!-- 未登录时显示登录图标 -->
    <image class="go-login" wx:if="{{!isLogin}}" src="/assets/taddar/right (1).png" />
  </view>
</view>


  <view class="center-list">
    <view class="center-list-item">
      <image class="list-icon" src="/assets/taddar/edit.png" />
      <text class="list-text">编辑个人信息</text>
      <image class="navigat-arrow" src="/assets/taddar/right.png" />
    </view>
  </view>

  <view class="center-list">
    <view class="center-list-item border-bottom">
      <image class="list-icon" src="/assets/taddar/logout.png" />
      <text class="list-text" bindtap="tuichu">退出登录</text>
      <image class="navigat-arrow" src="/assets/taddar/right.png" />
    </view>
  </view>
</view>
<custom-tab-bar></custom-tab-bar>