209 lines
3.5 KiB
Plaintext
209 lines
3.5 KiB
Plaintext
/* pages/history/index.wxss - 测试历史记录(按旧版模板重构) */
|
|
.container {
|
|
min-height: 100vh;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs-container {
|
|
background-color: #fff;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
padding: 20rpx 0;
|
|
}
|
|
|
|
.tabs-scroll {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
padding: 0 32rpx;
|
|
}
|
|
|
|
.tab-item {
|
|
padding: 12rpx 32rpx;
|
|
margin-right: 16rpx;
|
|
border-radius: 40rpx;
|
|
background-color: #f5f5f5;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tab-item.active {
|
|
background-color: #e63946;
|
|
}
|
|
|
|
.tab-text {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.tab-item.active .tab-text {
|
|
color: #fff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding-top: 200rpx;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 100rpx;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.primary-button {
|
|
background: linear-gradient(135deg, #e63946 0%, #ff6b9d 100%);
|
|
border-radius: 40rpx;
|
|
padding: 20rpx 60rpx;
|
|
box-shadow: 0 8rpx 24rpx rgba(230, 57, 70, 0.3);
|
|
}
|
|
|
|
.button-text {
|
|
font-size: 28rpx;
|
|
color: #fff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 测试记录列表 */
|
|
.test-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.test-card {
|
|
background-color: #fff;
|
|
border-radius: 16rpx;
|
|
padding: 24rpx;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.test-card:active {
|
|
transform: scale(0.98);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.card-content {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.icon-circle {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 20rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.icon-mbti { background-color: #f3e8ff; }
|
|
.icon-pdp { background-color: #dbeafe; }
|
|
.icon-disc { background-color: #dcfce7; }
|
|
.icon-ai { background-color: #fce7f3; }
|
|
|
|
.icon-emoji {
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.test-details {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.test-header-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8rpx;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.test-title {
|
|
font-size: 30rpx;
|
|
font-weight: 500;
|
|
color: #333;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.result-badge {
|
|
padding: 4rpx 16rpx;
|
|
border-radius: 20rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.badge-mbti { background-color: #f3e8ff; }
|
|
.badge-mbti .badge-text { color: #7c3aed; }
|
|
|
|
.badge-pdp { background-color: #dbeafe; }
|
|
.badge-pdp .badge-text { color: #2563eb; }
|
|
|
|
.badge-disc { background-color: #dcfce7; }
|
|
.badge-disc .badge-text { color: #16a34a; }
|
|
|
|
.badge-ai { background-color: #fce7f3; }
|
|
.badge-ai .badge-text { color: #db2777; }
|
|
|
|
.badge-text {
|
|
font-size: 22rpx;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.test-time-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16rpx;
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
.test-time {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.test-enterprise {
|
|
font-size: 24rpx;
|
|
color: #666;
|
|
flex-shrink: 0;
|
|
max-width: 280rpx;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.load-more-row {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 32rpx 0 20rpx;
|
|
}
|
|
|
|
.load-more-text {
|
|
font-size: 26rpx;
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.no-more {
|
|
color: #bbb;
|
|
}
|