yingsa/miniprogram/pages/index/index.wxss
2026-01-20 08:50:50 +08:00

150 lines
2.1 KiB
Plaintext

/* 门店选择器 */
.store-selector {
display: flex;
align-items: center;
justify-content: space-between;
background: #fff;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 20rpx;
}
.store-info {
display: flex;
align-items: center;
}
.store-icon {
width: 40rpx;
height: 40rpx;
margin-right: 16rpx;
}
.store-name {
font-size: 30rpx;
font-weight: 500;
}
.arrow-icon {
width: 32rpx;
height: 32rpx;
opacity: 0.5;
}
/* 性别筛选 */
.gender-tabs {
display: flex;
background: #fff;
border-radius: 16rpx;
padding: 8rpx;
margin-bottom: 20rpx;
}
.gender-tabs .tab {
flex: 1;
text-align: center;
padding: 16rpx 0;
font-size: 28rpx;
color: var(--text-secondary);
border-radius: 12rpx;
transition: all 0.3s;
}
.gender-tabs .tab.active {
background: var(--primary-color);
color: #fff;
font-weight: 500;
}
/* 排名列表 */
.ranking-list {
background: #fff;
border-radius: 16rpx;
overflow: hidden;
}
.list-header {
display: flex;
align-items: center;
padding: 20rpx 24rpx;
background: var(--light-bg);
font-size: 24rpx;
color: var(--text-secondary);
}
.list-item {
display: flex;
align-items: center;
padding: 24rpx;
border-bottom: 1rpx solid var(--border-color);
}
.list-item:last-child {
border-bottom: none;
}
.col-rank {
width: 80rpx;
}
.col-user {
flex: 1;
display: flex;
align-items: center;
}
.col-level {
width: 120rpx;
text-align: center;
}
.col-power {
width: 100rpx;
text-align: right;
}
.list-item .avatar {
width: 72rpx;
height: 72rpx;
border-radius: 50%;
margin-right: 16rpx;
background: var(--light-bg);
}
.list-item .user-info {
display: flex;
flex-direction: column;
}
.list-item .name {
font-size: 28rpx;
font-weight: 500;
margin-bottom: 4rpx;
}
.list-item .rate {
font-size: 22rpx;
color: var(--text-secondary);
}
.list-item .power-score {
font-size: 32rpx;
font-weight: 600;
color: var(--primary-color);
}
/* 空状态 */
.empty-state {
padding: 100rpx 0;
}
.empty-state image {
width: 240rpx;
height: 240rpx;
}
.empty-state .sub-text {
font-size: 24rpx;
margin-top: 8rpx;
}