284 lines
4.6 KiB
Plaintext
284 lines
4.6 KiB
Plaintext
/* 管理员界面样式 */
|
||
.admin-container {
|
||
height: 100vh;
|
||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 0;
|
||
/* 安全区域适配 - 为整个容器添加顶部安全区域 */
|
||
padding-top: env(safe-area-inset-top);
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* 顶部导航栏样式 */
|
||
.admin-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;
|
||
}
|
||
|
||
.admin-avatar {
|
||
width: 80rpx;
|
||
height: 80rpx;
|
||
border-radius: 50%;
|
||
margin-right: 20rpx;
|
||
border: 3rpx solid #667eea;
|
||
}
|
||
|
||
.admin-info {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.admin-name {
|
||
font-size: 32rpx;
|
||
font-weight: bold;
|
||
color: #333;
|
||
margin-bottom: 5rpx;
|
||
}
|
||
|
||
.admin-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, .back-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;
|
||
}
|
||
|
||
.back-btn {
|
||
background: #95a5a6;
|
||
color: white;
|
||
}
|
||
|
||
.refresh-btn:active, .back-btn:active {
|
||
transform: translateY(1rpx);
|
||
}
|
||
|
||
/* 统计区域样式 */
|
||
.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;
|
||
}
|
||
|
||
.employee-icon {
|
||
color: #3498db;
|
||
}
|
||
|
||
.order-icon {
|
||
color: #e74c3c;
|
||
}
|
||
|
||
.warehouse-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;
|
||
}
|
||
|
||
/* 底部样式 */
|
||
.admin-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);
|
||
} |