376 lines
6 KiB
Text
376 lines
6 KiB
Text
/* 好友请求管理页面样式 */
|
|
|
|
.requests-container {
|
|
height: 100vh;
|
|
background-color:black;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 标签页 */
|
|
.tabs-container {
|
|
background: #A7ADB7;
|
|
display: flex;
|
|
box-sizing:border-box;
|
|
width: 90%;
|
|
margin: 0 auto;
|
|
height: 80rpx;
|
|
border-radius: 40rpx;
|
|
margin-top: 20rpx;
|
|
color: white;
|
|
}
|
|
|
|
.tab-item {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 32rpx 0;
|
|
position: relative;
|
|
gap: 16rpx;
|
|
color: white;
|
|
border-radius: 40rpx;
|
|
box-shadow: 10rpx 2rpx 8rpx 0 rgba(0,0,0,0.15),-5rpx 2rpx 8rpx 0 rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.tab-item.active {
|
|
background-color: #1E1E1E;
|
|
border-radius: 40rpx;
|
|
box-shadow: 10rpx 2rpx 8rpx 0 rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.tab-text {
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tab-item.active .tab-text {
|
|
color: white;
|
|
font-weight: 400;
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.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 {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
top: 120rpx;
|
|
box-sizing: border-box;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* 加载中 */
|
|
.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 0 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 {
|
|
box-sizing:border-box;
|
|
overflow: hidden;
|
|
width: 700rpx;
|
|
margin-left: 25rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.request-item {
|
|
border-radius: 24rpx;
|
|
padding: 24rpx;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
border: 1px solid rgb(131, 12, 243);
|
|
min-height: 140rpx;
|
|
margin: 20rpx 0;
|
|
}
|
|
|
|
/* 用户信息区域 */
|
|
.user-section {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 16rpx;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.user-avatar {
|
|
margin-right: 24rpx;
|
|
}
|
|
.avatar-out{
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.avatar-image {
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
border-radius: 24rpx;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
.avatar-placeholder {
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
border-radius: 24rpx;
|
|
background: #e0e0e0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.avatar-text {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: #666;
|
|
}
|
|
|
|
.user-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
/* 右侧区域(日期+按钮) */
|
|
.right-section {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
align-self: stretch;
|
|
}
|
|
|
|
.user-name {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8rpx;
|
|
min-width: 0;
|
|
}
|
|
|
|
.nickname {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.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;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.request-message {
|
|
max-width: 100%;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.message-text {
|
|
font-size: 24rpx;
|
|
font-weight: 400;
|
|
color: #B3B3B3;
|
|
line-height: 1.4;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.time-info {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.time-text {
|
|
font-size: 22rpx;
|
|
color: #999;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.handle-time {
|
|
font-size: 22rpx;
|
|
color: #ccc;
|
|
}
|
|
|
|
/* 操作按钮区域 */
|
|
.action-section {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.action-icon{
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
background:#F2F2F7;
|
|
border-radius: 50%;
|
|
padding: 10rpx;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
/* 底部安全区域 */
|
|
.safe-area-bottom {
|
|
height: 60rpx;
|
|
}
|
|
|
|
/* ================== 暗色主题覆盖(社交-好友请求) ================== */
|
|
.requests-container .tab-item.active {
|
|
border-bottom-color: #1E1E1E;
|
|
}
|
|
|
|
.requests-container .content-container {
|
|
color: #f0f0f0;
|
|
}
|
|
|
|
.requests-container .request-item {
|
|
background: rgba(255, 255, 255, 0.38);
|
|
border: 1rpx solid rgba(255, 255, 255, 0.38);
|
|
}
|
|
|
|
/* 基础文字层级 */
|
|
.requests-container .nickname,
|
|
.requests-container .empty-title {
|
|
color: #f5f5f5;
|
|
}
|
|
|
|
.requests-container .empty-desc,
|
|
.requests-container .user-id,
|
|
.requests-container .time-text,
|
|
.requests-container .handle-time {
|
|
color: #b0b0b0;
|
|
}
|
|
|
|
/* 状态色保留,仅底色微调对比 */
|
|
.requests-container .status-badge.pending {
|
|
background:#4a3720;
|
|
color:#ffb347;
|
|
}
|
|
|
|
.requests-container .status-badge.accepted {
|
|
background:#1f3321;
|
|
color:#57c765;
|
|
}
|
|
|
|
.requests-container .status-badge.rejected {
|
|
background:#3a1e20;
|
|
color:#ff6b6b;
|
|
}
|
|
|
|
/* 空 / 加载 / 提示 */
|
|
.requests-container .loading-text,
|
|
.requests-container .badge-text {
|
|
color:#b0b0b0;
|
|
}
|
|
|
|
.requests-container .empty-desc {
|
|
color:#9e9e9e;
|
|
}
|