You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
981 lines
32 KiB
981 lines
32 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>青核 Youthome - 发现</title>
|
|
<link rel="stylesheet" href="../colors_and_type.css">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', sans-serif;
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-secondary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.app-container {
|
|
width: 375px;
|
|
height: 812px;
|
|
margin: 0 auto;
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* ========== 状态栏 ========== */
|
|
.status-bar {
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 16px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-bar .right-icons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* ========== 顶部导航 ========== */
|
|
.top-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
height: 44px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-left, .nav-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: var(--youth-text-primary);
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.nav-btn:active {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
/* ========== Tab切换栏 ========== */
|
|
.tab-bar {
|
|
display: flex;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid var(--youth-border-light);
|
|
flex-shrink: 0;
|
|
background: var(--youth-bg-page);
|
|
}
|
|
|
|
.tab-item {
|
|
position: relative;
|
|
padding: 12px 20px 12px 0;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-tertiary);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tab-item.active {
|
|
color: var(--youth-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tab-item::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 0;
|
|
height: 3px;
|
|
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
|
|
border-radius: 16px;
|
|
transition: width 0.2s ease;
|
|
}
|
|
|
|
.tab-item.active::after {
|
|
width: 28px;
|
|
}
|
|
|
|
/* ========== 搜索栏 + 高级筛选 ========== */
|
|
.search-section {
|
|
padding: 10px 16px;
|
|
flex-shrink: 0;
|
|
background: var(--youth-bg-page);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.search-input-wrap {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
height: 44px;
|
|
background: var(--youth-bg-card);
|
|
border: 1px solid var(--youth-border);
|
|
border-radius: 8px;
|
|
padding: 0 12px;
|
|
transition: all 0.2s ease;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.search-input-wrap:focus-within {
|
|
border-color: var(--youth-primary);
|
|
}
|
|
|
|
.search-icon {
|
|
color: var(--youth-text-tertiary);
|
|
margin-right: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
height: 44px;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: var(--youth-text-placeholder);
|
|
}
|
|
|
|
.filter-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--youth-bg-card);
|
|
border: 1px solid var(--youth-border);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.filter-btn:active {
|
|
background: var(--youth-bg-hover);
|
|
}
|
|
|
|
.filter-btn svg {
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
/* ========== 快捷筛选标签行 ========== */
|
|
.filter-tags-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 0 16px 12px;
|
|
overflow-x: auto;
|
|
flex-shrink: 0;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.filter-tags-row::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.filter-tag {
|
|
flex-shrink: 0;
|
|
height: 32px;
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 16px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background: #F0F1F3;
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
.filter-tag.active {
|
|
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
|
|
color: #FFFFFF;
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.25);
|
|
}
|
|
|
|
/* ========== 推荐用户卡片列表 ========== */
|
|
.user-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding: 4px 16px 80px;
|
|
}
|
|
|
|
.user-list::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.user-card {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 16px;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
margin-bottom: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.user-card:active {
|
|
transform: scale(0.99);
|
|
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.user-card:first-child {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* 头像区域 */
|
|
.avatar-wrap {
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.match-badge {
|
|
position: absolute;
|
|
bottom: -2px;
|
|
right: -4px;
|
|
height: 18px;
|
|
padding: 0 6px;
|
|
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
|
|
color: #FFFFFF;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
border-radius: 9px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 1px 4px rgba(38, 194, 187, 0.3);
|
|
border: 1.5px solid #FFFFFF;
|
|
}
|
|
|
|
/* 用户信息区域 */
|
|
.user-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-name-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
max-width: 100px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.gender-age-tag {
|
|
flex-shrink: 0;
|
|
height: 18px;
|
|
padding: 0 6px;
|
|
border-radius: 9px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.gender-age-tag.female {
|
|
background: #FFEBF2;
|
|
color: #FF6B9D;
|
|
}
|
|
|
|
.gender-age-tag.male {
|
|
background: #E8F4FF;
|
|
color: #4A90D9;
|
|
}
|
|
|
|
.verify-badge {
|
|
flex-shrink: 0;
|
|
height: 18px;
|
|
padding: 0 6px;
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
border-radius: 9px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.user-school-info {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.user-school-info .dot {
|
|
width: 2px;
|
|
height: 2px;
|
|
background: var(--youth-text-tertiary);
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.interest-tags {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.interest-tag {
|
|
flex-shrink: 0;
|
|
height: 20px;
|
|
padding: 0 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.interest-tag.mint {
|
|
background: #E8F8F5;
|
|
color: #3DB9A8;
|
|
}
|
|
|
|
.interest-tag.orange {
|
|
background: #FFF4E8;
|
|
color: #E68A2E;
|
|
}
|
|
|
|
.interest-tag.purple {
|
|
background: #F0EEFF;
|
|
color: #7B61FF;
|
|
}
|
|
|
|
.interest-tag.pink {
|
|
background: #FFEBF2;
|
|
color: #E64F85;
|
|
}
|
|
|
|
/* 打招呼按钮 */
|
|
.greet-btn {
|
|
flex-shrink: 0;
|
|
height: 44px;
|
|
padding: 0 12px;
|
|
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
|
|
color: #FFFFFF;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.25);
|
|
transition: all 0.2s ease;
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.greet-btn:active {
|
|
transform: scale(0.96);
|
|
box-shadow: 0 1px 4px rgba(38, 194, 187, 0.2);
|
|
}
|
|
|
|
/* ========== 底部Tab导航 ========== */
|
|
.bottom-nav {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 64px;
|
|
background: var(--youth-bg-card);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-around;
|
|
padding-top: 8px;
|
|
box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
|
|
z-index: 20;
|
|
}
|
|
|
|
.bottom-nav-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
cursor: pointer;
|
|
flex: 1;
|
|
color: var(--youth-text-tertiary);
|
|
transition: color 0.2s ease;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.bottom-nav-item.active {
|
|
color: var(--youth-primary);
|
|
}
|
|
|
|
.bottom-nav-item .nav-icon {
|
|
font-size: 22px;
|
|
line-height: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.bottom-nav-item .nav-icon svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.bottom-nav-item span {
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.bottom-nav-item.publish-btn {
|
|
position: relative;
|
|
}
|
|
|
|
.bottom-nav-item.publish-btn .nav-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
|
|
border-radius: 50%;
|
|
color: #FFFFFF;
|
|
margin-top: -14px;
|
|
box-shadow: 0 4px 12px rgba(38, 194, 187, 0.35);
|
|
}
|
|
|
|
.bottom-nav-item.publish-btn span {
|
|
margin-top: 4px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="app-container">
|
|
<!-- 状态栏 -->
|
|
<div class="status-bar">
|
|
<span>9:41</span>
|
|
<div class="right-icons">
|
|
<svg width="17" height="11" viewBox="0 0 17 11" fill="currentColor">
|
|
<rect x="0" y="7" width="3" height="4" rx="0.5"></rect>
|
|
<rect x="4.5" y="5" width="3" height="6" rx="0.5"></rect>
|
|
<rect x="9" y="2.5" width="3" height="8.5" rx="0.5"></rect>
|
|
<rect x="13.5" y="0" width="3" height="11" rx="0.5"></rect>
|
|
</svg>
|
|
<svg width="15" height="11" viewBox="0 0 15 11" fill="currentColor">
|
|
<path d="M7.5 1C5.3 1 3.2 1.7 1.5 3C-0.5 4.7 -0.5 7.5 1.5 9.2C1.9 9.6 2.5 9.6 2.9 9.2C3.3 8.8 3.3 8.2 2.9 7.8C1.6 6.5 1.6 4.4 2.9 3.1C4.2 1.8 6.3 1.4 8 2C10.1 2.7 11.7 4.4 12.2 6.5C12.5 7.3 12.4 8.1 11.8 8.7C11.4 9.1 11.4 9.7 11.8 10.1C12.2 10.5 12.8 10.5 13.2 10.1C14.2 9.1 14.5 7.7 14.2 6.3C13.6 4 12.1 2.3 10.2 1.3C9.3 1 8.4 0.9 7.5 1Z"></path>
|
|
<path d="M7.5 4.5C6 4.5 4.5 5 3.4 6.2C2.3 7.4 2 9 2.4 10.4C2.5 10.8 2.8 11 3.2 11C3.5 11 3.8 10.8 3.9 10.5C4.2 9.5 4.8 8.6 5.7 8C6.6 7.4 7.6 7.1 8.6 7.2C9.8 7.3 10.9 7.8 11.6 8.7C12.3 9.6 12.6 10.7 12.4 11.8L12.4 12C12.3 12.4 12.6 12.7 13 12.8C13.4 12.9 13.7 12.6 13.8 12.2C14.1 10.5 13.5 8.8 12.4 7.5C11.3 6.2 9.6 5.3 7.8 4.9L7.5 4.5Z"></path>
|
|
</svg>
|
|
<svg width="25" height="12" viewBox="0 0 25 12" fill="none">
|
|
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="currentColor" opacity="0.5"></rect>
|
|
<rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"></rect>
|
|
<rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"></rect>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 顶部导航栏 -->
|
|
<div class="top-nav">
|
|
<div class="nav-left">
|
|
|
|
</div>
|
|
|
|
<div class="nav-right">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Tab切换栏 -->
|
|
<div class="tab-bar">
|
|
<div class="tab-item active" onclick="switchTab('social')">社交图谱</div>
|
|
<div class="tab-item" onclick="switchTab('radar')">附近雷达</div>
|
|
</div>
|
|
|
|
<!-- 搜索栏 + 高级筛选 -->
|
|
<div class="search-section">
|
|
<div class="search-input-wrap">
|
|
<svg class="search-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="11" cy="11" r="8"></circle>
|
|
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
|
</svg>
|
|
<input type="text" class="search-input" placeholder="搜索用户">
|
|
</div>
|
|
<button class="filter-btn" onclick="openFilter()" aria-label="高级筛选">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 快捷筛选标签行 -->
|
|
<div class="filter-tags-row">
|
|
<div class="filter-tag active" data-tag="same-school" onclick="toggleFilterTag(this)">同校</div>
|
|
<div class="filter-tag" data-tag="same-age" onclick="toggleFilterTag(this)">同龄</div>
|
|
<div class="filter-tag" data-tag="opposite-gender" onclick="toggleFilterTag(this)">异性</div>
|
|
<div class="filter-tag" data-tag="common-interest" onclick="toggleFilterTag(this)">共同兴趣</div>
|
|
</div>
|
|
|
|
<!-- 推荐用户卡片列表 -->
|
|
<div class="user-list">
|
|
<!-- 用户卡片1 -->
|
|
<div class="user-card" onclick="goToProfile(1)">
|
|
<div class="avatar-wrap">
|
|
<div class="user-avatar" style="background: linear-gradient(135deg, #FFB0C7, #FF6B9D);">林</div>
|
|
<div class="match-badge">95%</div>
|
|
</div>
|
|
<div class="user-info">
|
|
<div class="user-name-row">
|
|
<span class="user-name">林小雨</span>
|
|
<span class="gender-age-tag female">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="9" r="5"></circle>
|
|
<path d="M12 14v8M8 20h8"></path>
|
|
</svg>
|
|
20
|
|
</span>
|
|
<span class="verify-badge">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
|
|
<polyline points="9 12 11 14 15 10"></polyline>
|
|
</svg>
|
|
本校
|
|
</span>
|
|
</div>
|
|
<div class="user-school-info">
|
|
<span>清华大学</span>
|
|
<span class="dot"></span>
|
|
<span>中文系</span>
|
|
<span class="dot"></span>
|
|
<span>大二</span>
|
|
</div>
|
|
<div class="interest-tags">
|
|
<span class="interest-tag mint">摄影</span>
|
|
<span class="interest-tag orange">旅行</span>
|
|
<span class="interest-tag purple">阅读</span>
|
|
</div>
|
|
</div>
|
|
<button class="greet-btn" onclick="event.stopPropagation(); sendGreeting(1, '林小雨')">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0"></path>
|
|
<path d="M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2"></path>
|
|
<path d="M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8"></path>
|
|
<path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"></path>
|
|
</svg>
|
|
打招呼
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 用户卡片2 -->
|
|
<div class="user-card" onclick="goToProfile(2)">
|
|
<div class="avatar-wrap">
|
|
<div class="user-avatar" style="background: linear-gradient(135deg, #7ED6E8, #26C2BB);">陈</div>
|
|
<div class="match-badge">92%</div>
|
|
</div>
|
|
<div class="user-info">
|
|
<div class="user-name-row">
|
|
<span class="user-name">陈明轩</span>
|
|
<span class="gender-age-tag male">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="9" r="5"></circle>
|
|
<path d="M12 14v8M8 20h8"></path>
|
|
</svg>
|
|
21
|
|
</span>
|
|
<span class="verify-badge">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
|
|
<polyline points="9 12 11 14 15 10"></polyline>
|
|
</svg>
|
|
本校
|
|
</span>
|
|
</div>
|
|
<div class="user-school-info">
|
|
<span>清华大学</span>
|
|
<span class="dot"></span>
|
|
<span>计算机系</span>
|
|
<span class="dot"></span>
|
|
<span>大三</span>
|
|
</div>
|
|
<div class="interest-tags">
|
|
<span class="interest-tag mint">编程</span>
|
|
<span class="interest-tag purple">AI</span>
|
|
<span class="interest-tag orange">篮球</span>
|
|
</div>
|
|
</div>
|
|
<button class="greet-btn" onclick="event.stopPropagation(); sendGreeting(2, '陈明轩')">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0"></path>
|
|
<path d="M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2"></path>
|
|
<path d="M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8"></path>
|
|
<path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"></path>
|
|
</svg>
|
|
打招呼
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 用户卡片3 -->
|
|
<div class="user-card" onclick="goToProfile(3)">
|
|
<div class="avatar-wrap">
|
|
<div class="user-avatar" style="background: linear-gradient(135deg, #A29BFE, #6C5CE7);">王</div>
|
|
<div class="match-badge">88%</div>
|
|
</div>
|
|
<div class="user-info">
|
|
<div class="user-name-row">
|
|
<span class="user-name">王思远</span>
|
|
<span class="gender-age-tag male">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="9" r="5"></circle>
|
|
<path d="M12 14v8M8 20h8"></path>
|
|
</svg>
|
|
22
|
|
</span>
|
|
<span class="verify-badge">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
|
|
<polyline points="9 12 11 14 15 10"></polyline>
|
|
</svg>
|
|
本校
|
|
</span>
|
|
</div>
|
|
<div class="user-school-info">
|
|
<span>清华大学</span>
|
|
<span class="dot"></span>
|
|
<span>经管学院</span>
|
|
<span class="dot"></span>
|
|
<span>大四</span>
|
|
</div>
|
|
<div class="interest-tags">
|
|
<span class="interest-tag orange">创业</span>
|
|
<span class="interest-tag purple">金融</span>
|
|
</div>
|
|
</div>
|
|
<button class="greet-btn" onclick="event.stopPropagation(); sendGreeting(3, '王思远')">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0"></path>
|
|
<path d="M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2"></path>
|
|
<path d="M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8"></path>
|
|
<path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"></path>
|
|
</svg>
|
|
打招呼
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 用户卡片4 -->
|
|
<div class="user-card" onclick="goToProfile(4)">
|
|
<div class="avatar-wrap">
|
|
<div class="user-avatar" style="background: linear-gradient(135deg, #FFD93D, #FF9F45);">张</div>
|
|
<div class="match-badge">85%</div>
|
|
</div>
|
|
<div class="user-info">
|
|
<div class="user-name-row">
|
|
<span class="user-name">张晓桐</span>
|
|
<span class="gender-age-tag female">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="9" r="5"></circle>
|
|
<path d="M12 14v8M8 20h8"></path>
|
|
</svg>
|
|
19
|
|
</span>
|
|
</div>
|
|
<div class="user-school-info">
|
|
<span>北京师范大学</span>
|
|
<span class="dot"></span>
|
|
<span>心理系</span>
|
|
<span class="dot"></span>
|
|
<span>大一</span>
|
|
</div>
|
|
<div class="interest-tags">
|
|
<span class="interest-tag pink">心理学</span>
|
|
<span class="interest-tag mint">瑜伽</span>
|
|
<span class="interest-tag orange">美食</span>
|
|
</div>
|
|
</div>
|
|
<button class="greet-btn" onclick="event.stopPropagation(); sendGreeting(4, '张晓桐')">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0"></path>
|
|
<path d="M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2"></path>
|
|
<path d="M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8"></path>
|
|
<path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"></path>
|
|
</svg>
|
|
打招呼
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 用户卡片5 -->
|
|
<div class="user-card" onclick="goToProfile(5)">
|
|
<div class="avatar-wrap">
|
|
<div class="user-avatar" style="background: linear-gradient(135deg, #55EFC4, #00B894);">李</div>
|
|
<div class="match-badge">82%</div>
|
|
</div>
|
|
<div class="user-info">
|
|
<div class="user-name-row">
|
|
<span class="user-name">李子涵</span>
|
|
<span class="gender-age-tag male">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="9" r="5"></circle>
|
|
<path d="M12 14v8M8 20h8"></path>
|
|
</svg>
|
|
21
|
|
</span>
|
|
<span class="verify-badge">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
|
|
<polyline points="9 12 11 14 15 10"></polyline>
|
|
</svg>
|
|
本校
|
|
</span>
|
|
</div>
|
|
<div class="user-school-info">
|
|
<span>清华大学</span>
|
|
<span class="dot"></span>
|
|
<span>建筑学院</span>
|
|
<span class="dot"></span>
|
|
<span>大三</span>
|
|
</div>
|
|
<div class="interest-tags">
|
|
<span class="interest-tag purple">建筑设计</span>
|
|
<span class="interest-tag mint">绘画</span>
|
|
</div>
|
|
</div>
|
|
<button class="greet-btn" onclick="event.stopPropagation(); sendGreeting(5, '李子涵')">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0"></path>
|
|
<path d="M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2"></path>
|
|
<path d="M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8"></path>
|
|
<path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"></path>
|
|
</svg>
|
|
打招呼
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 用户卡片6 -->
|
|
<div class="user-card" onclick="goToProfile(6)">
|
|
<div class="avatar-wrap">
|
|
<div class="user-avatar" style="background: linear-gradient(135deg, #FD79A8, #E84393);">赵</div>
|
|
<div class="match-badge">78%</div>
|
|
</div>
|
|
<div class="user-info">
|
|
<div class="user-name-row">
|
|
<span class="user-name">赵雨萱</span>
|
|
<span class="gender-age-tag female">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="9" r="5"></circle>
|
|
<path d="M12 14v8M8 20h8"></path>
|
|
</svg>
|
|
20
|
|
</span>
|
|
</div>
|
|
<div class="user-school-info">
|
|
<span>北京大学</span>
|
|
<span class="dot"></span>
|
|
<span>法学院</span>
|
|
<span class="dot"></span>
|
|
<span>大二</span>
|
|
</div>
|
|
<div class="interest-tags">
|
|
<span class="interest-tag purple">辩论</span>
|
|
<span class="interest-tag orange">演讲</span>
|
|
<span class="interest-tag mint">跑步</span>
|
|
</div>
|
|
</div>
|
|
<button class="greet-btn" onclick="event.stopPropagation(); sendGreeting(6, '赵雨萱')">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0"></path>
|
|
<path d="M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2"></path>
|
|
<path d="M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8"></path>
|
|
<path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"></path>
|
|
</svg>
|
|
打招呼
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 用户卡片7 -->
|
|
<div class="user-card" onclick="goToProfile(7)">
|
|
<div class="avatar-wrap">
|
|
<div class="user-avatar" style="background: linear-gradient(135deg, #74B9FF, #0984E3);">刘</div>
|
|
<div class="match-badge">75%</div>
|
|
</div>
|
|
<div class="user-info">
|
|
<div class="user-name-row">
|
|
<span class="user-name">刘宇航</span>
|
|
<span class="gender-age-tag male">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="9" r="5"></circle>
|
|
<path d="M12 14v8M8 20h8"></path>
|
|
</svg>
|
|
22
|
|
</span>
|
|
<span class="verify-badge">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
|
|
<polyline points="9 12 11 14 15 10"></polyline>
|
|
</svg>
|
|
本校
|
|
</span>
|
|
</div>
|
|
<div class="user-school-info">
|
|
<span>清华大学</span>
|
|
<span class="dot"></span>
|
|
<span>自动化系</span>
|
|
<span class="dot"></span>
|
|
<span>大四</span>
|
|
</div>
|
|
<div class="interest-tags">
|
|
<span class="interest-tag mint">机器人</span>
|
|
<span class="interest-tag purple">电竞</span>
|
|
</div>
|
|
</div>
|
|
<button class="greet-btn" onclick="event.stopPropagation(); sendGreeting(7, '刘宇航')">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0"></path>
|
|
<path d="M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2"></path>
|
|
<path d="M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8"></path>
|
|
<path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"></path>
|
|
</svg>
|
|
打招呼
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 底部Tab导航 -->
|
|
|
|
</div>
|
|
|
|
<script>
|
|
// 返回
|
|
function goBack() {
|
|
window.history.back();
|
|
}
|
|
|
|
// Tab切换
|
|
function switchTab(tab) {
|
|
const tabs = document.querySelectorAll('.tab-item');
|
|
tabs.forEach(function(t, index) {
|
|
if ((tab === 'social' && index === 0) || (tab === 'radar' && index === 1)) {
|
|
t.classList.add('active');
|
|
} else {
|
|
t.classList.remove('active');
|
|
}
|
|
});
|
|
|
|
if (tab === 'social') {
|
|
window.location.href = 'social-graph.html';
|
|
} else if (tab === 'radar') {
|
|
window.location.href = 'campus-radar.html';
|
|
}
|
|
}
|
|
|
|
// 快捷筛选标签切换
|
|
function toggleFilterTag(el) {
|
|
el.classList.toggle('active');
|
|
}
|
|
|
|
// 打开高级筛选
|
|
function openFilter() {
|
|
window.location.href = 'multi-filter.html';
|
|
}
|
|
|
|
// 跳转用户资料
|
|
function goToProfile(id) {
|
|
window.location.href = 'user-profile.html?id=' + id;
|
|
}
|
|
|
|
// 发送好友申请
|
|
function sendGreeting(userId, userName) {
|
|
alert('已向 ' + userName + ' 发送好友申请!');
|
|
}
|
|
|
|
// 底部导航切换
|
|
function switchBottomNav(tab) {
|
|
const navItems = document.querySelectorAll('.bottom-nav-item');
|
|
navItems.forEach(function(item) {
|
|
item.classList.remove('active');
|
|
});
|
|
|
|
const tabMap = {
|
|
'home': 0,
|
|
'feed': 1,
|
|
'publish': 2,
|
|
'message': 3,
|
|
'discover': 4
|
|
};
|
|
|
|
if (tabMap[tab] !== undefined && navItems[tabMap[tab]]) {
|
|
navItems[tabMap[tab]].classList.add('active');
|
|
}
|
|
|
|
// 实际跳转逻辑可根据项目需要补充
|
|
// window.location.href = tab + '.html';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|