<view class="container">
  <image class="index-img" src="{{url + '/static/image/me-bg.png'}}" mode="aspectFit"></image>
  <view class="mine">
    <view class="user-box">
      <button class="avatar-wrapper" open-type="chooseAvatar"   bind:chooseavatar="onChooseAvatar">
        <van-image lazy-load round width="144rpx" height="144rpx" fit="cover" src="{{userInfo.avatar}}" />
      </button>
      <view class="user-text mt28">{{userInfo.nickname}}</view>
      <view class="user-text user-number">参赛号:103910</view>
    </view>
    <view class="bg-color">
      <view class="content">
        <view class="card-box">
          <van-cell is-link wx:for="{{menuList}}" wx:key="index" class="{{index === menuList.length - 1 ? 'last-cell' : ''}}" bind:click="goPage" data-index="{{index}}">
            <view slot="icon">
              <image class="card-img" src="{{item.icon}}" mode="aspectFit"/>
            </view>
            <view slot="title">
              <view class="van-cell-text">{{item.title}}</view>
            </view>
          </van-cell>
        </view>
      </view>
      <view class="logo-item">
        <image class="logo-img" src="/static/image/logo.png" mode="aspectFit"/>
      </view>
    </view>
  </view>
  <!-- 客服弹窗 -->
  <van-dialog
    confirm-button-class="confirm-btn"
    use-slot
    title="联系客服"
    show="{{showAgreementModal}}"
    show-cancel-button="{{false}}"
  >
    <view class="dialog-box">
      <image class="box-code" src="{{programConfig.customer_qrcode}}" mode="aspectFill"></image>
      <view class="box-text" bindtap="onPhone">客服电话：15527606226</view>
    </view>
  </van-dialog>
</view>