You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
446 lines
6.3 KiB
446 lines
6.3 KiB
/* pages/admin-dashboard/admin-dashboard.wxss */
|
|
.page-container {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* 顶部导航栏 */
|
|
.admin-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
padding: 30rpx;
|
|
padding-top: calc(30rpx + env(safe-area-inset-top));
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.admin-title {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: white;
|
|
}
|
|
|
|
.admin-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.admin-name {
|
|
font-size: 28rpx;
|
|
color: white;
|
|
}
|
|
|
|
.logout-btn {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
padding: 8rpx 20rpx;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 20rpx;
|
|
}
|
|
|
|
.scroll-container {
|
|
flex: 1;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
/* 数据概览 */
|
|
.stats-overview {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 20rpx;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
border-radius: 20rpx;
|
|
padding: 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 60rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.stat-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
/* 图表区域 */
|
|
.chart-section {
|
|
background: white;
|
|
border-radius: 20rpx;
|
|
padding: 30rpx;
|
|
margin-bottom: 30rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.section-subtitle {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.chart-container {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 供需缺口 TopN */
|
|
.filters-row {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.filter-picker {
|
|
flex: 1;
|
|
}
|
|
|
|
.gaps-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.gap-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: #f8fbff;
|
|
border: 1rpx solid #e8ecff;
|
|
border-radius: 12rpx;
|
|
padding: 18rpx 20rpx;
|
|
}
|
|
|
|
.gap-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.gap-category {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.gap-sub {
|
|
font-size: 22rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.gap-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.gap-value {
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.gap-value.pos { color: #EA4335; }
|
|
.gap-value.neg { color: #34A853; }
|
|
|
|
.empty-tips {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
text-align: center;
|
|
padding: 20rpx 0;
|
|
}
|
|
|
|
.push-row { margin-top: 20rpx; }
|
|
.push-btn {
|
|
width: 100%;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 12rpx;
|
|
padding: 22rpx;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
/* 柱状图 */
|
|
.bar-chart {
|
|
width: 100%;
|
|
}
|
|
|
|
.chart-bars {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: flex-end;
|
|
height: 300rpx;
|
|
padding: 20rpx 0;
|
|
}
|
|
|
|
.bar-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
height: 100%;
|
|
}
|
|
|
|
.bar-wrapper {
|
|
flex: 1;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
|
|
.bar {
|
|
width: 60%;
|
|
background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 8rpx 8rpx 0 0;
|
|
min-height: 20rpx;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.bar-value {
|
|
position: absolute;
|
|
top: -40rpx;
|
|
font-size: 22rpx;
|
|
color: #666;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.bar-label {
|
|
font-size: 22rpx;
|
|
color: #999;
|
|
margin-top: 15rpx;
|
|
}
|
|
|
|
/* 折线图 */
|
|
.line-chart {
|
|
width: 100%;
|
|
height: 300rpx;
|
|
position: relative;
|
|
}
|
|
|
|
.chart-area {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.chart-grid {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.grid-line {
|
|
height: 1rpx;
|
|
background: #e0e0e0;
|
|
}
|
|
|
|
.chart-line {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 60rpx;
|
|
}
|
|
|
|
.line-path {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.line-point {
|
|
position: absolute;
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
background: #667eea;
|
|
border-radius: 50%;
|
|
border: 3rpx solid white;
|
|
box-shadow: 0 2rpx 8rpx rgba(102, 126, 234, 0.3);
|
|
transform: translate(-50%, 50%);
|
|
}
|
|
|
|
.chart-labels {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 60rpx;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
}
|
|
|
|
.label-item {
|
|
font-size: 22rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.chart-values {
|
|
position: absolute;
|
|
top: -30rpx;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.value-item {
|
|
font-size: 20rpx;
|
|
color: #666;
|
|
}
|
|
|
|
/* 饼图 */
|
|
.pie-chart-container {
|
|
width: 100%;
|
|
}
|
|
|
|
.pie-chart {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.pie-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.pie-segment {
|
|
height: 40rpx;
|
|
border-radius: 20rpx;
|
|
min-width: 20rpx;
|
|
}
|
|
|
|
.pie-label {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15rpx;
|
|
}
|
|
|
|
.label-color {
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.label-text {
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
}
|
|
|
|
/* 快捷操作 */
|
|
.quick-actions {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.action-item {
|
|
flex: 1;
|
|
background: white;
|
|
border-radius: 20rpx;
|
|
padding: 40rpx 20rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.action-icon {
|
|
font-size: 60rpx;
|
|
margin-bottom: 15rpx;
|
|
}
|
|
|
|
.action-text {
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
}
|
|
|
|
/* 加载状态 */
|
|
.loading-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.loading-content {
|
|
text-align: center;
|
|
}
|
|
|
|
.loading-text {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
}
|
|
|
|
/* 词云 */
|
|
.word-cloud {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16rpx;
|
|
align-items: center;
|
|
}
|
|
|
|
.word-chip {
|
|
background: #f2f3f5;
|
|
border-radius: 24rpx;
|
|
padding: 10rpx 16rpx;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.word-cloud-loading {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|