488 lines
7.1 KiB
Plaintext
488 lines
7.1 KiB
Plaintext
/* 管理员主页面样式 */
|
|
.admin-container {
|
|
width: 100%;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #f5f5f5;
|
|
position: relative;
|
|
}
|
|
|
|
/* 顶部导航栏 */
|
|
.top-nav {
|
|
height: 90rpx;
|
|
background-color: #1aad19;
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 30rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 微信风格返回按钮 */
|
|
.back-icon {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
border-radius: 50%;
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.back-icon:active {
|
|
background-color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.back-arrow {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
color: white;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15rpx;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.admin-badge {
|
|
background-color: #ff4d4f;
|
|
color: white;
|
|
font-size: 20rpx;
|
|
padding: 5rpx 10rpx;
|
|
border-radius: 15rpx;
|
|
}
|
|
|
|
/* 主内容区域 */
|
|
.main-content {
|
|
flex: 1;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 左侧地图区域 */
|
|
.map-section {
|
|
width: 33.33%;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.map {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* 中间订单管理区域 */
|
|
.order-section {
|
|
width: 33.33%;
|
|
height: 100%;
|
|
background-color: white;
|
|
border-left: 1rpx solid #e0e0e0;
|
|
border-right: 1rpx solid #e0e0e0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 右侧员工管理区域 */
|
|
.staff-section {
|
|
width: 33.33%;
|
|
height: 100%;
|
|
background-color: white;
|
|
}
|
|
|
|
/* 区域标题 */
|
|
.section-header {
|
|
height: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20rpx;
|
|
border-bottom: 1rpx solid #e0e0e0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.add-btn {
|
|
background-color: #1aad19;
|
|
color: white;
|
|
font-size: 28rpx;
|
|
padding: 10rpx 20rpx;
|
|
border-radius: 40rpx;
|
|
border: none;
|
|
min-width: 160rpx;
|
|
}
|
|
|
|
.manage-btn {
|
|
background-color: #1890ff;
|
|
color: white;
|
|
font-size: 28rpx;
|
|
padding: 10rpx 20rpx;
|
|
border-radius: 40rpx;
|
|
border: none;
|
|
min-width: 160rpx;
|
|
}
|
|
|
|
.manage-btn:active {
|
|
background-color: #096dd9;
|
|
}
|
|
|
|
/* 订单标签页 */
|
|
.order-tabs {
|
|
display: flex;
|
|
border-bottom: 1rpx solid #e0e0e0;
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 20rpx 0;
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.tab.active {
|
|
color: #1aad19;
|
|
font-weight: bold;
|
|
border-bottom: 4rpx solid #1aad19;
|
|
}
|
|
|
|
/* 订单列表 */
|
|
.order-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.order-item {
|
|
padding: 20rpx;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.order-item:active {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.order-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.order-id {
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.order-status {
|
|
font-size: 24rpx;
|
|
padding: 5rpx 15rpx;
|
|
border-radius: 20rpx;
|
|
}
|
|
|
|
/* 订单状态颜色 */
|
|
.order-status.pending {
|
|
background-color: #fff7e6;
|
|
color: #fa8c16;
|
|
}
|
|
|
|
.order-status.assigned {
|
|
background-color: #e6f7ff;
|
|
color: #1890ff;
|
|
}
|
|
|
|
.order-status.in_transit {
|
|
background-color: #f6ffed;
|
|
color: #52c41a;
|
|
}
|
|
|
|
.order-status.delivered {
|
|
background-color: #f0f0f0;
|
|
color: #999;
|
|
}
|
|
|
|
.order-info {
|
|
font-size: 26rpx;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* 员工列表 */
|
|
.staff-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.staff-item {
|
|
display: flex;
|
|
padding: 20rpx;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
align-items: center;
|
|
}
|
|
|
|
.staff-item:active {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.staff-avatar {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 50%;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.staff-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.staff-name {
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
display: block;
|
|
margin-bottom: 5rpx;
|
|
}
|
|
|
|
.staff-phone {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
display: block;
|
|
margin-bottom: 5rpx;
|
|
}
|
|
|
|
.staff-status {
|
|
font-size: 24rpx;
|
|
padding: 5rpx 15rpx;
|
|
border-radius: 20rpx;
|
|
display: inline-block;
|
|
margin-bottom: 5rpx;
|
|
}
|
|
|
|
.staff-status.idle {
|
|
background-color: #f6ffed;
|
|
color: #52c41a;
|
|
}
|
|
|
|
.staff-status.busy {
|
|
background-color: #fff1f0;
|
|
color: #ff4d4f;
|
|
}
|
|
|
|
.order-count {
|
|
font-size: 24rpx;
|
|
color: #666;
|
|
}
|
|
|
|
/* 底部页签 */
|
|
.bottom-tabs {
|
|
height: 100rpx;
|
|
background-color: white;
|
|
border-top: 1rpx solid #e0e0e0;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
}
|
|
|
|
.tab-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #999;
|
|
}
|
|
|
|
.tab-item.active {
|
|
color: #1aad19;
|
|
}
|
|
|
|
.tab-icon {
|
|
font-size: 40rpx;
|
|
margin-bottom: 5rpx;
|
|
}
|
|
|
|
.tab-text {
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
/* 弹窗样式 */
|
|
.modal-mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-content {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 80%;
|
|
max-width: 600rpx;
|
|
background-color: white;
|
|
border-radius: 20rpx;
|
|
z-index: 1001;
|
|
}
|
|
|
|
.modal-content.large {
|
|
width: 90%;
|
|
max-width: 800rpx;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 30rpx;
|
|
border-bottom: 1rpx solid #e0e0e0;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.modal-close {
|
|
font-size: 40rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 30rpx;
|
|
}
|
|
|
|
.modal-text {
|
|
font-size: 30rpx;
|
|
color: #333;
|
|
margin-bottom: 20rpx;
|
|
display: block;
|
|
}
|
|
|
|
/* 员工选择列表 */
|
|
.staff-select-list {
|
|
max-height: 400rpx;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.staff-select-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.staff-select-avatar {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
border-radius: 50%;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.staff-select-name {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.staff-select-status {
|
|
font-size: 24rpx;
|
|
padding: 5rpx 15rpx;
|
|
border-radius: 20rpx;
|
|
}
|
|
|
|
/* 表单样式 */
|
|
.form-item {
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.form-picker {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
background-color: #f5f5f5;
|
|
border-radius: 10rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 20rpx;
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
background-color: #f5f5f5;
|
|
border-radius: 10rpx;
|
|
padding: 0 20rpx;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.submit-btn {
|
|
width: 100%;
|
|
height: 88rpx;
|
|
background-color: #1aad19;
|
|
color: white;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
border-radius: 10rpx;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768rpx) {
|
|
.main-content {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.map-section,
|
|
.order-section,
|
|
.staff-section {
|
|
width: 100%;
|
|
height: 33.33%;
|
|
}
|
|
|
|
.order-section {
|
|
border-left: none;
|
|
border-right: none;
|
|
border-top: 1rpx solid #e0e0e0;
|
|
border-bottom: 1rpx solid #e0e0e0;
|
|
}
|
|
} |