Files
WXProgram/miniprogram/pages/staff/employee-dashboard.wxss
2025-10-21 21:51:51 +08:00

345 lines
5.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 员工界面样式 */
.employee-container {
height: 100vh;
background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
display: flex;
flex-direction: column;
padding: 0;
/* 安全区域适配 - 为整个容器添加顶部安全区域 */
padding-top: env(safe-area-inset-top);
box-sizing: border-box;
}
/* 顶部导航栏样式 */
.employee-header {
background: rgba(255, 255, 255, 0.95);
padding: 40rpx 40rpx 30rpx 40rpx;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
/* 移除margin-top使用容器的padding-top来处理安全区域 */
min-height: 140rpx;
}
.header-left {
display: flex;
align-items: center;
}
/* 微信风格返回按钮 */
.back-icon {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
background: rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
margin-right: 20rpx;
cursor: pointer;
transition: background-color 0.3s ease;
}
.back-icon:active {
background: rgba(0, 0, 0, 0.2);
}
.back-arrow {
font-size: 36rpx;
font-weight: bold;
color: #333;
line-height: 1;
}
.employee-avatar {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
margin-right: 20rpx;
border: 3rpx solid #4ecdc4;
}
.employee-info {
display: flex;
flex-direction: column;
}
.employee-name {
font-size: 32rpx;
font-weight: bold;
color: #333;
margin-bottom: 5rpx;
}
.employee-role {
font-size: 24rpx;
color: #666;
background: #f0f0f0;
padding: 4rpx 12rpx;
border-radius: 12rpx;
align-self: flex-start;
}
.header-right {
display: flex;
gap: 20rpx;
}
.refresh-btn, .emergency-btn {
padding: 15rpx 25rpx;
border: none;
border-radius: 8rpx;
font-size: 26rpx;
cursor: pointer;
transition: all 0.3s ease;
}
.refresh-btn {
background: #3498db;
color: white;
}
.emergency-btn {
background: #e74c3c;
color: white;
}
.refresh-btn:active, .emergency-btn:active {
transform: translateY(1rpx);
}
/* 工作统计区域样式 */
.work-stats-section {
padding: 40rpx;
background: rgba(255, 255, 255, 0.9);
margin: 20rpx;
border-radius: 15rpx;
box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
}
.stats-title {
margin-bottom: 30rpx;
}
.stats-text {
font-size: 32rpx;
font-weight: bold;
color: #333;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
}
.stat-card {
background: white;
padding: 30rpx;
border-radius: 12rpx;
text-align: center;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
}
.stat-card:active {
transform: translateY(-2rpx);
}
.stat-icon {
font-size: 48rpx;
margin-bottom: 15rpx;
}
.today-icon {
color: #3498db;
}
.completed-icon {
color: #27ae60;
}
.pending-icon {
color: #f39c12;
}
.stat-value {
display: block;
font-size: 36rpx;
font-weight: bold;
color: #333;
margin-bottom: 5rpx;
}
.stat-label {
font-size: 24rpx;
color: #666;
}
/* 菜单区域样式 */
.menu-section {
flex: 1;
padding: 40rpx;
background: rgba(255, 255, 255, 0.9);
margin: 0 20rpx 20rpx 20rpx;
border-radius: 15rpx;
box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
}
.menu-title {
margin-bottom: 30rpx;
}
.menu-text {
font-size: 32rpx;
font-weight: bold;
color: #333;
}
.menu-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 25rpx;
}
.menu-item {
background: white;
padding: 30rpx;
border-radius: 12rpx;
text-align: center;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
cursor: pointer;
}
.menu-item:active {
transform: translateY(-2rpx);
box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
}
.menu-icon {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20rpx auto;
}
.icon-text {
font-size: 48rpx;
line-height: 1;
}
.menu-name {
display: block;
font-size: 28rpx;
font-weight: bold;
color: #333;
margin-bottom: 8rpx;
}
.menu-desc {
font-size: 22rpx;
color: #666;
}
/* 快捷操作区域样式 */
.quick-actions {
padding: 40rpx;
background: rgba(255, 255, 255, 0.9);
margin: 0 20rpx 20rpx 20rpx;
border-radius: 15rpx;
box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
}
.actions-title {
margin-bottom: 30rpx;
}
.actions-text {
font-size: 32rpx;
font-weight: bold;
color: #333;
}
.actions-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
}
.action-btn {
background: white;
border: none;
padding: 25rpx;
border-radius: 12rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
cursor: pointer;
}
.action-btn:active {
transform: translateY(-2rpx);
box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1);
}
.btn-text {
font-size: 26rpx;
font-weight: bold;
color: #333;
}
.location-btn {
background: linear-gradient(135deg, #ff6b6b, #ee5a52);
color: white;
}
.orders-btn {
background: linear-gradient(135deg, #4ecdc4, #44a08d);
color: white;
}
.schedule-btn {
background: linear-gradient(135deg, #f39c12, #e67e22);
color: white;
}
/* 底部样式 */
.employee-footer {
background: rgba(255, 255, 255, 0.9);
padding: 20rpx 40rpx;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1rpx solid #eee;
}
.footer-text {
font-size: 24rpx;
color: #666;
}
.footer-time {
font-size: 22rpx;
color: #999;
}
/* 解绑微信按钮样式 */
.unbind-btn {
background: #e74c3c;
color: white;
border: none;
border-radius: 8rpx;
padding: 12rpx 20rpx;
font-size: 24rpx;
cursor: pointer;
transition: all 0.3s ease;
}
.unbind-btn:active {
background: #c0392b;
transform: translateY(1rpx);
}