优化员工头像和导出金额展示

This commit is contained in:
2026-07-02 23:30:36 +08:00
parent 2c23d764a1
commit e8c7cd3d78
6 changed files with 35 additions and 7 deletions
@@ -5,7 +5,10 @@
</view>
<view wx:else class="card employee-head">
<view class="avatar" style="background: {{employee.color}};">{{employee.shortName}}</view>
<view wx:if="{{employee.avatar}}" class="avatar image-avatar">
<image src="{{employee.avatar}}" mode="aspectFill"></image>
</view>
<view wx:else class="avatar" style="background: {{employee.color}};">{{employee.shortName}}</view>
<view>
<text class="employee-name">{{employee.name}}</text>
<text class="tag" style="background: {{employee.color}}; color: #fff;">员工色</text>
@@ -23,11 +23,17 @@
width: 94rpx;
height: 94rpx;
border-radius: 50%;
overflow: hidden;
color: #fff;
font-size: 34rpx;
font-weight: 900;
}
.image-avatar image {
width: 100%;
height: 100%;
}
.employee-name {
display: block;
margin-bottom: 12rpx;