forked from zhouruizhe/gmTouringMiniApp
128 lines
1.9 KiB
Plaintext
128 lines
1.9 KiB
Plaintext
/* pages/badges/badges.wxss */
|
|
|
|
.page {
|
|
min-height: 100vh;
|
|
padding: 24rpx;
|
|
box-sizing: border-box;
|
|
background: #fff8ec;
|
|
}
|
|
|
|
/* 顶部积分卡片 */
|
|
.header-card {
|
|
background: linear-gradient(135deg, #ffb347 0%, #ff7e5f 100%);
|
|
border-radius: 24rpx;
|
|
padding: 40rpx 32rpx;
|
|
color: #fff;
|
|
box-shadow: 0 8rpx 24rpx rgba(255, 126, 95, 0.25);
|
|
}
|
|
|
|
.header-label {
|
|
font-size: 28rpx;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.header-points {
|
|
margin-top: 12rpx;
|
|
display: flex;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.points-num {
|
|
font-size: 72rpx;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
.points-unit {
|
|
font-size: 30rpx;
|
|
margin-left: 8rpx;
|
|
}
|
|
|
|
/* 分区标题 */
|
|
.section-title {
|
|
margin: 40rpx 8rpx 20rpx;
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.section-count {
|
|
font-size: 24rpx;
|
|
font-weight: 400;
|
|
color: #999;
|
|
}
|
|
|
|
/* 徽章网格 */
|
|
.badge-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.badge-item {
|
|
background: #ffffff;
|
|
border-radius: 20rpx;
|
|
padding: 28rpx 12rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.badge-item:active {
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.badge-icon {
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #fff2d6, #ffe0b3);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 56rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.badge-name {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: 600;
|
|
margin-bottom: 6rpx;
|
|
}
|
|
|
|
.badge-time {
|
|
font-size: 20rpx;
|
|
color: #999;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty {
|
|
margin-top: 120rpx;
|
|
text-align: center;
|
|
color: #999;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 120rpx;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-text {
|
|
margin-top: 24rpx;
|
|
font-size: 30rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.empty-tip {
|
|
margin-top: 12rpx;
|
|
font-size: 24rpx;
|
|
color: #aaa;
|
|
}
|