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
@@ -40,13 +40,6 @@
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
margin-right: 24rpx;
|
||||
border-radius: 18rpx;
|
||||
color: #FFFFFF;
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
line-height: 90rpx;
|
||||
text-align: center;
|
||||
background-color: #1385FA;
|
||||
}
|
||||
|
||||
/* 姓名 + meta */
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
<view class="data-card">
|
||||
<!-- 用户信息 -->
|
||||
<view class="userInfo" wx:if="{{ userInfo }}">
|
||||
<view class="avatar">{{ userInfo.realname[0] }}</view>
|
||||
<view class="avatar">
|
||||
<image src="{{ userInfo.sex_dictText === '女' ? '/images/woman.png' : '/images/man.png' }}" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="info-name-row">
|
||||
<view class="info-name">{{ userInfo.realname }}</view>
|
||||
|
||||
Reference in New Issue
Block a user