Files
wxserver/pages/index/index.wxss
T
2025-10-26 19:29:30 +08:00

194 lines
2.8 KiB
Plaintext

/**index.wxss**/
.container {
min-height: 100vh;
background-color: #f5f5f5;
}
/* 搜索栏 */
.search-bar {
padding: 24rpx;
background-color: #fff;
border-bottom: 1px solid #f0f0f0;
}
.search-input {
background-color: #f5f5f5;
border-radius: 40rpx;
padding: 24rpx 32rpx;
font-size: 28rpx;
}
/* 筛选栏 */
.filter-bar {
display: flex;
align-items: center;
padding: 20rpx 24rpx;
background-color: #fff;
border-bottom: 1px solid #f0f0f0;
}
.filter-label {
font-size: 26rpx;
color: #666;
margin-right: 16rpx;
white-space: nowrap;
}
.filter-scroll {
white-space: nowrap;
}
.filter-item {
display: inline-block;
padding: 12rpx 32rpx;
margin-right: 16rpx;
border-radius: 40rpx;
font-size: 26rpx;
background-color: #f5f5f5;
color: #666;
}
.filter-item.active {
background-color: #07c160;
color: #fff;
}
/* 人员列表 */
.person-list {
height: calc(100vh - 200rpx);
padding: 24rpx;
}
.person-card {
background-color: #fff;
border-radius: 16rpx;
padding: 32rpx;
margin-bottom: 24rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
}
.person-header {
display: flex;
align-items: center;
}
.avatar {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
margin-right: 24rpx;
background-color: #f0f0f0;
}
.person-info {
flex: 1;
display: flex;
flex-direction: column;
}
.person-name {
font-size: 32rpx;
font-weight: 600;
color: #333;
margin-bottom: 8rpx;
}
.person-nickname {
font-size: 24rpx;
color: #999;
}
.person-count {
text-align: right;
}
.count-text {
font-size: 36rpx;
font-weight: 600;
color: #07c160;
display: block;
}
.count-label {
font-size: 22rpx;
color: #999;
}
/* 最近的纪念日 */
.next-anniversary {
margin-top: 20rpx;
padding-top: 20rpx;
border-top: 1px solid #f0f0f0;
display: flex;
align-items: center;
font-size: 26rpx;
color: #666;
}
.next-label {
margin-right: 8rpx;
}
.next-text {
flex: 1;
}
.days-text {
color: #07c160;
font-weight: 500;
}
.days-text.urgent {
color: #ff5722;
font-weight: 600;
}
/* 空状态 */
.empty-state {
padding: 160rpx 40rpx;
text-align: center;
}
.empty-state .icon {
font-size: 120rpx;
display: block;
margin-bottom: 32rpx;
}
.empty-state .text {
font-size: 28rpx;
color: #999;
display: block;
margin-bottom: 16rpx;
}
.empty-state .hint {
font-size: 24rpx;
color: #bbb;
display: block;
}
/* 浮动按钮 */
.fab {
position: fixed;
bottom: 120rpx;
right: 40rpx;
width: 100rpx;
height: 100rpx;
border-radius: 50%;
background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 60rpx;
box-shadow: 0 8rpx 24rpx rgba(7, 193, 96, 0.3);
z-index: 100;
transition: all 0.3s;
}
.fab:active {
transform: scale(0.95);
}