style: 头像改用性别图片

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-25 11:46:47 +08:00
co-authored by Claude Opus 4.7
parent 0bf50f7ff4
commit f8047c3eef
14 changed files with 22 additions and 64 deletions
-9
View File
@@ -25,15 +25,6 @@
width: 120rpx;
height: 120rpx;
margin-right: 30rpx;
border-radius: 24rpx;
color: #FFFFFF;
font-size: 48rpx;
font-weight: bold;
line-height: 110rpx;
text-align: center;
box-sizing: border-box;
border: 5rpx solid #ffffff;
background-color: #1385FA;
}
.userInfo {
+3 -1
View File
@@ -7,7 +7,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">