407 lines
6.1 KiB
Plaintext
407 lines
6.1 KiB
Plaintext
.employee-page {
|
|
padding-top: 18rpx;
|
|
}
|
|
|
|
.employee-filter-scroll {
|
|
width: 100%;
|
|
margin-bottom: 22rpx;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.employee-filters {
|
|
display: flex;
|
|
gap: 18rpx;
|
|
width: max-content;
|
|
min-width: 100%;
|
|
}
|
|
|
|
.employee-filter {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 104rpx;
|
|
height: 54rpx;
|
|
padding: 0 18rpx;
|
|
border-radius: 999rpx;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
color: #8f877d;
|
|
font-size: 22rpx;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.employee-filter.active {
|
|
background: #eef7f0;
|
|
color: #55786d;
|
|
box-shadow: inset 0 0 0 1rpx rgba(111, 143, 131, 0.16);
|
|
}
|
|
|
|
.employee-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18rpx;
|
|
}
|
|
|
|
.employee-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 18rpx;
|
|
min-height: 156rpx;
|
|
padding: 22rpx 18rpx;
|
|
border-color: rgba(111, 143, 131, 0.08);
|
|
background: rgba(255, 255, 255, 0.86);
|
|
box-shadow: 0 8rpx 20rpx rgba(78, 96, 78, 0.045);
|
|
animation: cardIn 180ms ease both;
|
|
}
|
|
|
|
.employee-card.manager {
|
|
background: rgba(255, 255, 255, 0.92);
|
|
}
|
|
|
|
.employee-card:active {
|
|
transform: scale(0.99);
|
|
}
|
|
|
|
.employee-avatar-wrap {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
width: 92rpx;
|
|
height: 92rpx;
|
|
}
|
|
|
|
.employee-avatar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 92rpx;
|
|
height: 92rpx;
|
|
overflow: hidden;
|
|
border: 4rpx solid #f5faf3;
|
|
border-radius: 50%;
|
|
color: #fff;
|
|
font-size: 30rpx;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.image-avatar image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.employee-dot {
|
|
position: absolute;
|
|
right: 2rpx;
|
|
bottom: 4rpx;
|
|
width: 18rpx;
|
|
height: 18rpx;
|
|
border: 3rpx solid #fffdf8;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.employee-dot.normal {
|
|
background: #85b58a;
|
|
}
|
|
|
|
.employee-dot.rest {
|
|
background: #d7b17d;
|
|
}
|
|
|
|
.employee-dot.disabled {
|
|
background: #b8afa6;
|
|
}
|
|
|
|
.employee-card-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.employee-title-row,
|
|
.employee-status-row {
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
}
|
|
|
|
.employee-title-row {
|
|
gap: 10rpx;
|
|
}
|
|
|
|
.employee-status-row {
|
|
gap: 12rpx;
|
|
margin-top: 8rpx;
|
|
}
|
|
|
|
.employee-name {
|
|
overflow: hidden;
|
|
color: #25211d;
|
|
font-size: 29rpx;
|
|
font-weight: 900;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.role-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex: 0 0 auto;
|
|
min-height: 32rpx;
|
|
padding: 0 10rpx;
|
|
border-radius: 999rpx;
|
|
background: #fff0df;
|
|
color: #bd7a4d;
|
|
font-size: 18rpx;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.role-tag.manager {
|
|
background: #e5eee9;
|
|
color: #55786d;
|
|
}
|
|
|
|
.employee-state {
|
|
flex: 0 0 auto;
|
|
min-height: 32rpx;
|
|
padding: 0 12rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 19rpx;
|
|
font-weight: 900;
|
|
line-height: 32rpx;
|
|
}
|
|
|
|
.employee-state.normal {
|
|
background: #eff7ef;
|
|
color: #5f9070;
|
|
}
|
|
|
|
.employee-state.rest {
|
|
background: #fff4df;
|
|
color: #b57935;
|
|
}
|
|
|
|
.employee-state.disabled {
|
|
background: #f0ece5;
|
|
color: #8d8379;
|
|
}
|
|
|
|
.employee-schedule {
|
|
overflow: hidden;
|
|
color: #9b938a;
|
|
font-size: 21rpx;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.employee-metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 8rpx;
|
|
margin-top: 12rpx;
|
|
}
|
|
|
|
.employee-metric {
|
|
min-width: 0;
|
|
}
|
|
|
|
.metric-label,
|
|
.metric-value {
|
|
display: block;
|
|
}
|
|
|
|
.metric-label {
|
|
color: #a39a90;
|
|
font-size: 18rpx;
|
|
}
|
|
|
|
.metric-value {
|
|
margin-top: 4rpx;
|
|
color: #4c4740;
|
|
font-size: 23rpx;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.employee-metric.strong .metric-value {
|
|
color: #2f4d3d;
|
|
}
|
|
|
|
.arrow {
|
|
flex: 0 0 auto;
|
|
color: #b0a79e;
|
|
font-size: 46rpx;
|
|
line-height: 1;
|
|
}
|
|
|
|
.employee-fab {
|
|
bottom: calc(112rpx + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.retry-btn {
|
|
width: 180rpx;
|
|
min-width: 180rpx;
|
|
max-width: 180rpx;
|
|
margin: 24rpx auto 0;
|
|
}
|
|
|
|
.modal-mask {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 80;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
background: rgba(18, 15, 12, 0.48);
|
|
animation: maskIn 180ms ease both;
|
|
}
|
|
|
|
.employee-modal {
|
|
width: 100%;
|
|
padding: 28rpx 28rpx calc(28rpx + env(safe-area-inset-bottom));
|
|
border-radius: 28rpx 28rpx 0 0;
|
|
background: #fffaf4;
|
|
box-shadow: 0 -18rpx 40rpx rgba(41, 31, 23, 0.16);
|
|
animation: modalUp 220ms ease both;
|
|
}
|
|
|
|
.modal-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.modal-title {
|
|
display: block;
|
|
color: #27211d;
|
|
font-size: 34rpx;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.modal-close {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 48rpx;
|
|
min-width: 48rpx;
|
|
height: 48rpx;
|
|
border: 1rpx solid #e4d8ca;
|
|
border-radius: 50%;
|
|
background: #fffaf4;
|
|
}
|
|
|
|
.modal-close::before,
|
|
.modal-close::after {
|
|
position: absolute;
|
|
width: 22rpx;
|
|
height: 3rpx;
|
|
border-radius: 999rpx;
|
|
background: #61554c;
|
|
content: "";
|
|
}
|
|
|
|
.modal-close::before {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.modal-close::after {
|
|
transform: rotate(-45deg);
|
|
}
|
|
|
|
.avatar-upload {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
margin-bottom: 18rpx;
|
|
padding: 18rpx;
|
|
border-radius: 18rpx;
|
|
background: #f7efe7;
|
|
}
|
|
|
|
.avatar-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 auto;
|
|
width: 92rpx;
|
|
height: 92rpx;
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
background: #6f8f83;
|
|
color: #fff;
|
|
font-size: 24rpx;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.avatar-preview image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.avatar-btn {
|
|
flex: 1;
|
|
min-width: 0;
|
|
max-width: none;
|
|
}
|
|
|
|
.avatar-remove {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.modal-field {
|
|
padding: 16rpx 18rpx;
|
|
border-radius: 18rpx;
|
|
background: #f7efe7;
|
|
}
|
|
|
|
.modal-field text {
|
|
display: block;
|
|
margin-bottom: 8rpx;
|
|
color: #6c5f54;
|
|
font-size: 24rpx;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.modal-field input {
|
|
height: 58rpx;
|
|
color: #2c2722;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.modal-submit {
|
|
margin-top: 22rpx;
|
|
}
|
|
|
|
@keyframes cardIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8rpx);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes maskIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes modalUp {
|
|
from {
|
|
transform: translateY(40rpx);
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
}
|
|
}
|