优化员工头像和导出金额展示
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user