Files
ai_dianshang/miniprogram/pages/points/index.wxss
2025-11-17 13:32:54 +08:00

340 lines
4.9 KiB
Plaintext

.points-page {
background-color: #f5f5f5;
min-height: 100vh;
}
/* 积分头部 */
.points-header {
padding: 32rpx;
background: linear-gradient(135deg, #fa4126 0%, #ff6b47 100%);
}
.points-card {
background: rgba(255, 255, 255, 0.1);
border-radius: 16rpx;
padding: 40rpx;
text-align: center;
backdrop-filter: blur(10rpx);
}
.points-title {
color: rgba(255, 255, 255, 0.8);
font-size: 28rpx;
margin-bottom: 16rpx;
}
.points-amount {
color: #fff;
font-size: 72rpx;
font-weight: bold;
margin-bottom: 16rpx;
}
.points-desc {
color: rgba(255, 255, 255, 0.7);
font-size: 24rpx;
margin-bottom: 32rpx;
}
/* 积分统计 */
.points-stats {
display: flex;
align-items: center;
justify-content: space-around;
margin-top: 32rpx;
padding-top: 32rpx;
border-top: 1rpx solid rgba(255, 255, 255, 0.2);
}
.stat-item {
text-align: center;
flex: 1;
}
.stat-value {
color: #fff;
font-size: 32rpx;
font-weight: bold;
margin-bottom: 8rpx;
}
.stat-label {
color: rgba(255, 255, 255, 0.7);
font-size: 22rpx;
}
.stat-divider {
width: 1rpx;
height: 40rpx;
background-color: rgba(255, 255, 255, 0.2);
}
/* 标签页 */
.tabs-container {
background: #fff;
margin-top: -20rpx;
border-radius: 20rpx 20rpx 0 0;
padding-top: 20rpx;
}
.tabs-external__inner {
background: #fff;
}
.tabs-external__item {
color: #666;
font-size: 28rpx;
}
.tabs-external__active {
color: #fa4126;
font-weight: bold;
}
.tabs-external__track {
background-color: #fa4126;
}
/* 内容区域 */
.tab-content {
background: #fff;
min-height: 60vh;
}
/* 积分明细 */
.points-history {
padding: 0 32rpx;
}
.history-item {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding: 32rpx 0;
border-bottom: 1rpx solid #f0f0f0;
}
.history-item:last-child {
border-bottom: none;
}
.history-left {
display: flex;
align-items: flex-start;
flex: 1;
}
.history-icon {
width: 48rpx;
height: 48rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 24rpx;
flex-shrink: 0;
}
.history-icon.earn {
background-color: #52c41a;
}
.history-icon.spend {
background-color: #ff4d4f;
}
.history-info {
flex: 1;
}
.history-desc {
font-size: 32rpx;
color: #333;
margin-bottom: 8rpx;
}
.history-time {
font-size: 24rpx;
color: #999;
margin-bottom: 4rpx;
}
.history-detail {
font-size: 24rpx;
color: #666;
margin-bottom: 4rpx;
}
.history-amount {
font-size: 32rpx;
font-weight: bold;
text-align: right;
}
.history-amount.earn {
color: #52c41a;
}
.history-amount.spend {
color: #ff4d4f;
}
/* 积分规则 */
.rules-container {
padding: 32rpx;
}
.rule-item {
display: flex;
align-items: center;
padding: 32rpx 0;
border-bottom: 1rpx solid #f0f0f0;
}
.rule-item:last-child {
border-bottom: none;
}
.rule-icon {
width: 64rpx;
height: 64rpx;
background-color: #fff2f0;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 24rpx;
}
.rule-content {
flex: 1;
}
.rule-title {
font-size: 32rpx;
color: #333;
margin-bottom: 8rpx;
font-weight: 500;
}
.rule-desc {
font-size: 28rpx;
color: #666;
}
/* 积分兑换 */
.exchange-container {
padding: 32rpx;
}
.exchange-item {
display: flex;
align-items: center;
padding: 32rpx;
background: #fff;
border-radius: 16rpx;
margin-bottom: 24rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
border: 1rpx solid #f0f0f0;
}
.exchange-image {
width: 80rpx;
height: 80rpx;
background-color: #fff2f0;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 24rpx;
}
.exchange-info {
flex: 1;
}
.exchange-name {
font-size: 32rpx;
color: #333;
margin-bottom: 8rpx;
font-weight: 500;
}
.exchange-desc {
font-size: 24rpx;
color: #666;
}
.exchange-points {
text-align: right;
}
.points-text {
font-size: 28rpx;
color: #fa4126;
font-weight: bold;
margin-bottom: 16rpx;
}
/* 加载状态 */
.loading-container {
display: flex;
justify-content: center;
align-items: center;
padding: 120rpx 32rpx;
}
/* 加载更多 */
.load-more {
display: flex;
justify-content: center;
align-items: center;
padding: 32rpx;
color: #999;
font-size: 24rpx;
}
.no-more {
text-align: center;
padding: 32rpx;
color: #ccc;
font-size: 24rpx;
}
/* 空状态 */
.empty-state {
text-align: center;
padding: 120rpx 32rpx;
}
.empty-icon {
width: 120rpx;
height: 120rpx;
margin: 0 auto 32rpx;
opacity: 0.3;
}
.empty-text {
font-size: 28rpx;
color: #999;
margin-bottom: 16rpx;
}
.empty-desc {
font-size: 24rpx;
color: #ccc;
}
/* 兑换相关样式 */
.exchange-stock {
margin-top: 8rpx;
}
.stock-warning {
color: #ff4d4f;
font-size: 22rpx;
background-color: #fff2f0;
padding: 4rpx 8rpx;
border-radius: 4rpx;
border: 1rpx solid #ffccc7;
}