mine.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <view class="container">
  2. <image class="index-img" src="{{baseUrl + '/static/image/me-bg.png'}}" mode="aspectFit"></image>
  3. <view class="mine">
  4. <view class="user-box">
  5. <button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
  6. <van-image lazy-load round width="144rpx" height="144rpx" fit="cover" src="{{userInfo.avatar || baseUrl + '/static/image/cat.png'}}" />
  7. </button>
  8. <view class="user-text mt28">{{userInfo.nickname || '游客'}}</view>
  9. <view class="user-text user-number" wx:if="{{userInfo.competitionNo}}">报名号:{{userInfo.competitionNo}}</view>
  10. </view>
  11. <view class="bg-color">
  12. <view class="content">
  13. <view class="card-box">
  14. <van-cell
  15. is-link
  16. wx:for="{{menuList}}"
  17. wx:key="index"
  18. bind:click="handleActionWithLogin"
  19. data-index="{{index}}"
  20. class="{{index === menuList.length - 1 ? 'last-cell' : ''}}">
  21. <view slot="icon">
  22. <image class="card-img" src="{{item.icon}}" mode="aspectFit"/>
  23. </view>
  24. <view slot="title">
  25. <view class="van-cell-text">{{item.title}}</view>
  26. </view>
  27. <button open-type="contact" class="cover-btn" wx:if="{{index == 5}}"></button>
  28. <!-- 未登录覆盖授权按钮 -->
  29. <button
  30. wx:if="{{!loggedIn && index >= 1 && index <= 4}}"
  31. class="cover-btn"
  32. open-type="getPhoneNumber" bindgetphonenumber="onGetPhoneNumber"
  33. data-index="{{index}}"></button>
  34. </van-cell>
  35. </view>
  36. </view>
  37. <view class="logo-item">
  38. <image class="logo-img" src="{{baseUrl + '/static/image/logo.png'}}" mode="aspectFit"/>
  39. </view>
  40. </view>
  41. </view>
  42. </view>