- Updated user information retrieval to support store-specific points and ladder user data. - Refactored store initialization logic to prioritize last selected store. - Improved API endpoints for fetching matches and user data, ensuring compatibility with store context. - Adjusted UI components to display store-related information consistently across various pages. - Enhanced error handling and data fetching logic for better user experience.
178 lines
3.0 KiB
Plaintext
178 lines
3.0 KiB
Plaintext
/* ==========================================
|
|
比赛记录页面 - 橙色主题优化
|
|
========================================== */
|
|
|
|
.container {
|
|
min-height: 100vh;
|
|
background: var(--bg-page);
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.history-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.match-item {
|
|
background: var(--bg-card);
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-card);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.match-item:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.match-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24rpx 28rpx;
|
|
background: var(--primary-gradient);
|
|
border-bottom: 2rpx solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.match-header-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8rpx;
|
|
flex: 1;
|
|
}
|
|
|
|
.match-name {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
}
|
|
|
|
.match-store {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.match-type {
|
|
padding: 6rpx 16rpx;
|
|
background: rgba(255, 255, 255, 0.25);
|
|
border-radius: 20rpx;
|
|
font-size: 22rpx;
|
|
color: #fff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.match-content {
|
|
padding: 28rpx;
|
|
}
|
|
|
|
.content-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24rpx;
|
|
}
|
|
|
|
.result {
|
|
display: inline-block;
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.result.win {
|
|
background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
|
|
color: #fff;
|
|
box-shadow: 0 4rpx 12rpx rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
.result.lose {
|
|
background: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
|
|
color: #fff;
|
|
box-shadow: 0 4rpx 12rpx rgba(244, 67, 54, 0.3);
|
|
}
|
|
|
|
.score-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8rpx;
|
|
flex: 1;
|
|
}
|
|
|
|
.opponent {
|
|
font-size: 28rpx;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.score {
|
|
font-size: 40rpx;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
letter-spacing: 4rpx;
|
|
}
|
|
|
|
.power-change {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 12rpx;
|
|
text-align: center;
|
|
min-width: 100rpx;
|
|
}
|
|
|
|
.power-change.positive {
|
|
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.power-change.negative {
|
|
background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
|
|
color: #c62828;
|
|
}
|
|
|
|
.match-footer {
|
|
padding: 20rpx 28rpx;
|
|
background: var(--bg-card-hover);
|
|
border-top: 1rpx solid var(--border-soft);
|
|
}
|
|
|
|
.match-time {
|
|
font-size: 24rpx;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 120rpx 40rpx;
|
|
min-height: 60vh;
|
|
}
|
|
|
|
.empty-state image {
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
opacity: 0.6;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.empty-state text {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.loading-state {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40rpx;
|
|
color: #999;
|
|
font-size: 28rpx;
|
|
}
|