12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <view class="container">
- <image class="index-img" src="{{baseUrl + '/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 || baseUrl + '/static/image/cat.png'}}" />
- </button>
- <view class="user-text mt28">{{userInfo.nickname || '游客'}}</view>
- <view class="user-text user-number" wx:if="{{userInfo.competitionNo}}">报名号:{{userInfo.competitionNo}}</view>
- </view>
- <view class="bg-color">
- <view class="content">
- <view class="card-box">
- <van-cell
- is-link
- wx:for="{{menuList}}"
- wx:key="index"
- bind:click="handleActionWithLogin"
- data-index="{{index}}"
- class="{{index === menuList.length - 1 ? 'last-cell' : ''}}">
- <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>
- <button open-type="contact" class="cover-btn" wx:if="{{index == 5}}"></button>
- <!-- 未登录覆盖授权按钮 -->
- <button
- wx:if="{{!loggedIn && index >= 1 && index <= 4}}"
- class="cover-btn"
- open-type="getPhoneNumber" bindgetphonenumber="onGetPhoneNumber"
- data-index="{{index}}"></button>
- </van-cell>
- </view>
- </view>
- <view class="logo-item">
- <image class="logo-img" src="{{baseUrl + '/static/image/logo.png'}}" mode="aspectFit"/>
- </view>
- </view>
- </view>
- </view>
|