| | |
| | | <view class="user-center-card"> |
| | | <!-- 未登录的情况 --> |
| | | <block wx:if="{{currAuthStep === AuthStepType.ONE}}"> |
| | | <view class="user-center-card__header" bind:tap="gotoUserEditPage"> |
| | | <t-avatar image="{{userInfo.avatarUrl || defaultAvatarUrl}}" class="user-center-card__header__avatar" /> |
| | | <view class="user-center-card__header"> |
| | | <!-- <t-avatar image="{{userInfo.avatarUrl || defaultAvatarUrl}}" class="user-center-card__header__avatar" /> --> |
| | | <view class="user-center-card__header__avatar"> |
| | | <t-image src="{{userInfo.icon || defaultAvatarUrl}}" mode="aspectFill" class="img" /> |
| | | </view> |
| | | <view> |
| | | <view class="user-center-card__header__name">{{'请登录'}}</view> |
| | | </view> |
| | |
| | | <!-- 已登录但未授权用户信息情况 --> |
| | | <block wx:if="{{currAuthStep === AuthStepType.TWO}}"> |
| | | <view class="user-center-card__header"> |
| | | <t-avatar image="{{userInfo.icon || defaultAvatarUrl}}" class="user-center-card__header__avatar" /> |
| | | <!-- <t-avatar image="{{userInfo.icon || defaultAvatarUrl}}" class="user-center-card__header__avatar" mode="aspectFill" t-class="avatar" /> --> |
| | | <view class="user-center-card__header__avatar"> |
| | | <t-image src="{{userInfo.icon || defaultAvatarUrl}}" mode="aspectFill" class="img" /> |
| | | </view> |
| | | <view> |
| | | <view class="user-center-card__header__name">{{userInfo.nickName || '微信用户'}}</view> |
| | | <view class="userTypeBox"> |
| | | <text>{{userInfo.userType}}</text> |
| | | <text class="txt" wx:if="{{userInfo.userType}}">{{userInfo.userType}}</text> |
| | | <text bindtap="editUserType" wx:if="{{userInfo.userType}}" class="edit">修改</text> |
| | | <text bindtap="editUserType" wx:else class="edit">设置用户类型</text> |
| | | </view> |
| | |
| | | <!-- 已登录且已经授权用户信息的情况 --> |
| | | <block wx:if="{{currAuthStep === AuthStepType.THREE}}"> |
| | | <view class="user-center-card__header"> |
| | | <t-avatar t-class="avatar" mode="aspectFill" class="user-center-card__header__avatar" image="{{userInfo.icon || defaultAvatarUrl}}" /> |
| | | <!-- <t-avatar t-class="avatar" mode="aspectFill" class="user-center-card__header__avatar" image="{{userInfo.icon || defaultAvatarUrl}}" /> --> |
| | | <view class="user-center-card__header__avatar"> |
| | | <t-image src="{{userInfo.icon || defaultAvatarUrl}}" mode="aspectFill" class="img" /> |
| | | </view> |
| | | <view> |
| | | <view class="user-center-card__header__name">{{userInfo.nickName || '微信用户'}}</view> |
| | | <view class="userTypeBox"> |
| | | <text>{{userInfo.userType}}</text> |
| | | <text class="txt" wx:if="{{userInfo.userType}}">{{userInfo.userType}}</text> |
| | | <text bindtap="editUserType" wx:if="{{userInfo.userType}}" class="edit">修改</text> |
| | | <text bindtap="editUserType" wx:else class="edit">设置用户类型</text> |
| | | </view> |