miniprogramme/pages/social/friend-requests/friend-requests.wxss

354 lines
5 KiB
Text
Raw Normal View History

2025-09-12 16:08:17 +08:00
/* 好友请求管理页面样式 */
.requests-container {
height: 100vh;
background-color: #f8f9fa;
display: flex;
flex-direction: column;
}
/* 自定义导航栏 */
.custom-nav-bar {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}
.nav-content {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32rpx;
height: 88rpx;
}
.nav-left {
width: 80rpx;
display: flex;
align-items: center;
}
.back-icon {
font-size: 40rpx;
color: white;
font-weight: bold;
}
.nav-center {
flex: 1;
text-align: center;
}
.nav-title {
font-size: 36rpx;
font-weight: 600;
color: white;
}
.nav-right {
width: 80rpx;
}
/* 标签页 */
.tabs-container {
margin-top: 176rpx;
background: white;
display: flex;
border-bottom: 1px solid #f0f0f0;
}
.tab-item {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 32rpx 0;
position: relative;
gap: 16rpx;
}
.tab-item.active {
border-bottom: 4rpx solid #667eea;
}
.tab-text {
font-size: 32rpx;
color: #666;
font-weight: 500;
}
.tab-item.active .tab-text {
color: #667eea;
font-weight: 600;
}
.tab-badge {
background: #ff4757;
border-radius: 20rpx;
padding: 4rpx 12rpx;
min-width: 32rpx;
height: 32rpx;
display: flex;
align-items: center;
justify-content: center;
}
.badge-text {
font-size: 20rpx;
color: white;
font-weight: 600;
}
/* 内容区域 */
.content-container {
flex: 1;
padding: 0 32rpx;
}
/* 加载中 */
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120rpx 0;
}
.loading-spinner {
width: 60rpx;
height: 60rpx;
border: 4rpx solid #f3f3f3;
border-top: 4rpx solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 24rpx;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
font-size: 28rpx;
color: #999;
}
/* 空状态 */
.empty-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 120rpx 0;
text-align: center;
}
.empty-icon {
font-size: 120rpx;
margin-bottom: 32rpx;
opacity: 0.6;
}
.empty-title {
font-size: 36rpx;
font-weight: 600;
color: #333;
margin-bottom: 16rpx;
}
.empty-desc {
font-size: 28rpx;
color: #666;
line-height: 1.5;
}
/* 请求列表 */
.requests-list {
padding: 32rpx 0;
}
.request-item {
background: white;
border-radius: 24rpx;
padding: 32rpx;
margin-bottom: 24rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
}
/* 用户信息区域 */
.user-section {
display: flex;
align-items: flex-start;
margin-bottom: 24rpx;
}
.user-avatar {
margin-right: 24rpx;
}
.avatar-image {
width: 96rpx;
height: 96rpx;
border-radius: 48rpx;
}
.avatar-placeholder {
width: 96rpx;
height: 96rpx;
border-radius: 48rpx;
background: #e0e0e0;
display: flex;
align-items: center;
justify-content: center;
}
.avatar-text {
font-size: 36rpx;
font-weight: 600;
color: #666;
}
.user-info {
flex: 1;
}
.user-name {
display: flex;
align-items: center;
margin-bottom: 8rpx;
gap: 16rpx;
}
.nickname {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
.status-badge {
padding: 4rpx 12rpx;
border-radius: 12rpx;
font-size: 22rpx;
}
.status-badge.pending {
background: #fff3e0;
color: #ff9800;
}
.status-badge.accepted {
background: #e8f5e8;
color: #4caf50;
}
.status-badge.rejected {
background: #ffebee;
color: #f44336;
}
.status-text {
font-weight: 600;
}
.user-id {
font-size: 24rpx;
color: #999;
margin-bottom: 16rpx;
}
.request-message {
background: #f8f9fa;
border-radius: 12rpx;
padding: 16rpx;
margin-bottom: 16rpx;
}
.message-text {
font-size: 28rpx;
color: #333;
line-height: 1.4;
}
.time-info {
display: flex;
flex-direction: column;
gap: 8rpx;
}
.time-text {
font-size: 24rpx;
color: #999;
}
.handle-time {
font-size: 22rpx;
color: #ccc;
}
/* 操作按钮区域 */
.action-section {
border-top: 1px solid #f0f0f0;
padding-top: 24rpx;
}
.action-buttons {
display: flex;
gap: 24rpx;
}
.action-btn {
flex: 1;
padding: 20rpx 0;
border-radius: 50rpx;
text-align: center;
font-weight: 600;
}
.reject-btn {
background: #f8f9fa;
border: 2rpx solid #e0e0e0;
}
.reject-btn .btn-text {
color: #666;
font-size: 28rpx;
}
.accept-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.accept-btn .btn-text {
color: white;
font-size: 28rpx;
}
/* 已处理状态的操作 */
.processed-actions {
border-top: 1px solid #f0f0f0;
padding-top: 24rpx;
display: flex;
justify-content: flex-end;
}
.message-btn {
background: #e3f2fd;
border: 2rpx solid #2196f3;
border-radius: 50rpx;
padding: 16rpx 32rpx;
}
.message-btn-text {
color: #2196f3;
font-size: 26rpx;
font-weight: 600;
}
/* 底部安全区域 */
.safe-area-bottom {
height: 60rpx;
}