style: 头像改用性别图片
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
0bf50f7ff4
commit
f8047c3eef
@@ -56,16 +56,7 @@
|
||||
.userAvatar {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
overflow: hidden;
|
||||
border-radius: 24rpx;
|
||||
margin-right: 15rpx;
|
||||
color: #FFFFFF;
|
||||
font-size: 40rpx;
|
||||
font-weight: bold;
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
border: 5rpx solid #ffffff;
|
||||
background-color: #1385FA;
|
||||
}
|
||||
|
||||
.userInfo {
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
</view>
|
||||
|
||||
<view class="user" wx:if="{{ userInfo }}">
|
||||
<view class="userAvatar">{{ userInfo.realname[0] }}</view>
|
||||
<view class="userAvatar">
|
||||
<image src="{{ userInfo.sex_dictText === '女' ? '/images/woman.png' : '/images/man.png' }}" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="userInfo">
|
||||
<view class="userName">{{ userInfo.realname }}</view>
|
||||
<view class="userSex">{{ userInfo.sex_dictText }}·{{ userInfo.age }}岁<text>丨</text>{{ userInfo.height }}cm</view>
|
||||
|
||||
Reference in New Issue
Block a user