左侧菜单,邀请,设置,和会员相关

This commit is contained in:
2026-07-07 23:40:20 +08:00
parent b740e0cd39
commit 851310a901
18 changed files with 2090 additions and 2169 deletions
@@ -8,7 +8,7 @@
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 2000;
z-index: 2500;
display: flex;
align-items: center;
justify-content: center;
File diff suppressed because it is too large Load Diff
+212 -135
View File
@@ -16,7 +16,7 @@
.settings-dialog {
position: relative;
width: 8.6rem;
width: 6.4rem;
height: 6.2rem;
background: $bg-white;
border-radius: 0.12rem;
@@ -60,35 +60,24 @@
&__nav-item {
display: flex;
align-items: center;
gap: 0.08rem;
padding: 0.12rem 0.2rem;
padding: 0.1rem 0.16rem;
margin: 0.02rem 0.12rem;
font-size: 0.14rem;
color: $text-dark;
cursor: pointer;
transition: all 0.2s;
border-left: 0.03rem solid transparent;
border-radius: 0.08rem;
font-weight: 500;
&:hover {
background: $bg-white;
color: $accent;
background: #E2E4E9;
}
&--active {
background: $bg-white;
color: $accent;
border-left-color: $accent;
font-weight: 600;
background: #E2E4E9;
}
}
&__nav-icon {
font-size: 0.16rem;
flex-shrink: 0;
width: 0.18rem;
text-align: center;
}
// 底部操作
&__bottom-actions {
margin-top: auto;
@@ -139,7 +128,10 @@
// ===== 账号与安全 =====
&__section {
margin-bottom: 0.28rem;
margin-bottom: 0.16rem;
padding: 0.16rem 0.24rem;
background: #F9FAFB;
border-radius: 0.08rem;
}
&__section-label {
@@ -156,7 +148,12 @@
}
&__danger-section {
margin-top: 0.32rem;
padding: 0.16rem 0.24rem;
background: #F9FAFB;
border-radius: 0.08rem;
display: flex;
align-items: center;
justify-content: space-between;
}
&__danger-title {
@@ -179,161 +176,238 @@
}
&__danger-btn {
background: $bg-main;
border: 1px solid $border-color;
border-radius: 0.06rem;
border: none;
background: none;
padding: 0.07rem 0.16rem;
font-size: 0.13rem;
color: $text-dark;
color: $danger;
cursor: pointer;
white-space: nowrap;
transition: all 0.2s;
&:hover {
border-color: $danger;
color: $danger;
}
}
// ===== 会员 =====
&__member-card {
background: $bg-white;
border: 1px solid $border-color;
border-radius: 0.1rem;
padding: 0.2rem 0.24rem;
margin-bottom: 0.24rem;
}
&__member-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.1rem;
}
&__member-title-row {
display: flex;
align-items: center;
gap: 0.1rem;
}
&__member-name {
font-size: 0.16rem;
font-weight: 700;
color: $text-dark;
}
&__member-badge {
background: $accent;
color: $bg-white;
font-size: 0.11rem;
padding: 0.02rem 0.08rem;
border-radius: 0.1rem;
&--inactive {
background: #ccc;
color: $bg-white;
}
}
&__member-terms {
font-size: 0.12rem;
color: $accent;
cursor: pointer;
text-decoration: underline;
&:hover {
color: $accent-hover;
}
}
&__member-info-row {
display: flex;
align-items: center;
justify-content: space-between;
}
&__member-price {
font-size: 0.13rem;
color: #555;
// ===== 会员卡片(新版) =====
&__mcard {
padding: 0.16rem 0.24rem;
border-radius: 0.12rem;
display: flex;
flex-direction: column;
gap: 0.06rem;
gap: 0.32rem;
span {
margin-left: 0;
color: $text-light;
&--formal {
background: linear-gradient(90deg, #52CAD1 0%, #52D1A7 100%);
}
&--trial {
background: linear-gradient(90deg, #F59E0B 0%, #F5B70B 100%);
}
&--free {
background: #F3F4F6;
}
}
&__member-expire-line {
font-size: 0.13rem;
color: #555;
&__mcard-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
}
&__member-remain-line {
font-size: 0.13rem;
color: $accent;
font-weight: 600;
&__mcard-title {
font-size: 0.18rem;
font-weight: 520;
color: #FFFFFF;
line-height: 0.24rem;
&--free {
color: #6A7282;
}
}
&__member-manage-btn {
background: $bg-main;
border: 1px solid $border-color;
border-radius: 0.06rem;
padding: 0.07rem 0.16rem;
font-size: 0.13rem;
color: $text-dark;
&__mcard-remain {
display: flex;
align-items: flex-end;
gap: 0.04rem;
}
&__mcard-remain-label {
font-size: 0.14rem;
font-weight: 330;
color: #FFFFFF;
line-height: 0.19rem;
}
&__mcard-remain-days {
font-size: 0.18rem;
font-weight: 520;
color: #FFFFFF;
line-height: 0.24rem;
}
&__mcard-bottom {
display: flex;
align-items: flex-end;
justify-content: space-between;
}
&__mcard-expire {
font-size: 0.12rem;
font-weight: 330;
color: #FFFFFF;
line-height: 0.16rem;
&--free {
color: #6A7282;
}
}
&__mcard-actions {
display: flex;
align-items: flex-start;
gap: 0.08rem;
}
&__mcard-btn {
display: flex;
align-items: center;
justify-content: center;
padding: 0.04rem 0.12rem;
font-size: 0.12rem;
font-weight: 330;
line-height: 0.16rem;
border-radius: 0.12rem;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
border: none;
transition: opacity 0.2s;
&:hover {
border-color: $accent;
color: $accent;
opacity: 0.85;
}
&--outline {
background: transparent;
border: 1px solid #FFFFFF;
color: #FFFFFF;
}
&--solid-formal {
background: #FFFFFF;
color: #52CAD1;
}
&--solid-trial {
background: #FFFFFF;
color: #F59E0B;
}
&--solid-accent {
background: #52CAD1;
color: #FFFFFF;
}
}
&__member-issue {
text-align: center;
padding: 0.2rem 0;
// ===== 问题反馈 =====
&__feedback-wrap {
background: #F9FAFB;
border-radius: 0.08rem;
padding: 0.16rem 0.24rem;
display: flex;
flex-direction: column;
gap: 0.24rem;
}
&__member-issue-title {
font-size: 0.15rem;
font-weight: 600;
color: $text-dark;
margin-bottom: 0.1rem;
&__feedback-section {
display: flex;
flex-direction: column;
gap: 0.12rem;
}
&__member-issue-desc {
font-size: 0.12rem;
color: #666;
line-height: 1.8;
margin-bottom: 0.16rem;
max-width: 5.0rem;
margin-left: auto;
margin-right: auto;
&__feedback-label {
font-size: 0.14rem;
font-weight: 520;
color: #1A1A1A;
line-height: 0.19rem;
}
&__member-issue-actions {
&__feedback-options {
display: flex;
flex-wrap: wrap;
gap: 0.08rem;
}
&__feedback-option {
display: flex;
justify-content: center;
gap: 0.16rem;
}
&__member-issue-btn {
background: $bg-white;
border: 1px solid $border-color;
border-radius: 0.06rem;
padding: 0.08rem 0.24rem;
font-size: 0.13rem;
color: $text-dark;
align-items: center;
padding: 0.08rem 0.12rem;
font-size: 0.12rem;
font-weight: 330;
line-height: 0.16rem;
text-align: center;
color: $accent;
border: 1px solid $accent;
border-radius: 0.08rem;
cursor: pointer;
transition: all 0.2s;
flex: 1 1 30%;
min-width: 0;
&:hover {
background: rgba(82, 202, 209, 0.08);
}
&--active {
background: $accent;
color: #FFFFFF;
border-color: $accent;
color: $accent;
&:hover {
background: $accent;
}
}
}
&__feedback-textarea {
width: 100%;
min-height: 0.64rem;
padding: 0.08rem 0.12rem;
font-size: 0.12rem;
font-weight: 330;
line-height: 0.16rem;
color: #1A1A1A;
background: #FFFFFF;
border: none;
border-radius: 0.08rem;
resize: vertical;
outline: none;
box-sizing: border-box;
&::placeholder {
color: #99A1AF;
}
}
&__feedback-submit {
margin-top: 0.44rem;
margin-left: auto;
margin-right: auto;
display: block;
padding: 0.08rem 0.24rem;
background: $accent;
color: #FFFFFF;
font-size: 0.13rem;
font-weight: 500;
border: none;
border-radius: 0.08rem;
cursor: pointer;
transition: opacity 0.2s;
&:hover {
opacity: 0.85;
}
}
@@ -468,6 +542,9 @@
font-size: 0.13rem;
color: #555;
line-height: 1.8;
padding: 0.16rem 0.24rem;
background: #F9FAFB;
border-radius: 0.08rem;
}
&__privacy-section {
@@ -1,6 +1,6 @@
@use '../variables' as *;
// ==================== 邀请注册送会员弹窗(重设计版) ====================
// ==================== 邀请注册送会员弹窗 ====================
.settings-invite-overlay {
position: fixed;
top: 0;
@@ -16,213 +16,219 @@
}
.settings-invite-dialog {
position: relative;
width: 4.2rem;
height: 5.0rem;
background: $bg-white;
border-radius: 0.26rem;
box-shadow: 0 0.2rem 0.44rem rgba(0, 0, 0, 0.14);
overflow: hidden;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0.24rem 0.32rem;
gap: 0.24rem;
width: 4.80rem;
background: linear-gradient(180deg, #EDF9FA 0%, #FFFFFF 20.63%);
border: 1px solid #F0F0F0;
box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.05);
border-radius: 0.12rem;
// 顶部渐变区域
// 顶部:标题行 + 关闭按钮
&__header {
width: 100%;
height: 1.04rem;
background: linear-gradient(90deg, #12C7BE 0%, #06B6D4 100%);
border-radius: 0.26rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
justify-content: space-between;
align-items: flex-start;
width: 100%;
}
// 皇冠图标
&__crown {
font-size: 0.32rem;
line-height: 0.39rem;
color: $bg-white;
font-weight: 700;
&__header-text {
display: flex;
flex-direction: column;
gap: 0.04rem;
}
&__title {
font-size: 0.18rem;
font-weight: 520;
line-height: 0.24rem;
color: $text-dark;
margin: 0;
}
&__subtitle {
font-size: 0.12rem;
font-weight: 330;
line-height: 0.16rem;
color: $text-middle;
margin: 0;
}
// 关闭按钮
&__close {
position: absolute;
top: 0.24rem;
right: 0.27rem;
font-size: 0.22rem;
line-height: 0.27rem;
color: #8EA0B8;
width: 0.24rem;
height: 0.24rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.14rem;
color: $text-middle;
cursor: pointer;
transition: color 0.2s;
z-index: 1;
flex-shrink: 0;
&:hover {
color: $text-dark;
}
}
// 内容区域
&__body {
flex: 1;
padding: 0.22rem 0.28rem 0.2rem;
display: flex;
flex-direction: column;
}
// 标题
&__title {
font-size: 0.21rem;
font-weight: 700;
color: #132034;
text-align: center;
margin: 0 0 0.05rem 0;
line-height: 0.25rem;
}
// 副标题
&__subtitle {
font-size: 0.13rem;
font-weight: 400;
color: #64748B;
text-align: center;
margin: 0 0 0.2rem 0;
line-height: 0.16rem;
}
// 邀请链接区域
&__link-box {
box-sizing: border-box;
display: flex;
align-items: center;
width: 3.64rem;
height: 0.44rem;
background: #F3FFFD;
border-radius: 0.22rem;
padding: 0 0.06rem 0 0.16rem;
margin: 0 auto 0.2rem;
box-sizing: border-box;
justify-content: space-between;
padding: 0.12rem 0.16rem;
width: 100%;
background: #F4FBFB;
border: 1px solid #AEE6EA;
border-radius: 0.08rem;
}
&__link-text {
flex: 1;
font-size: 0.11rem;
line-height: 0.13rem;
color: #334155;
white-space: nowrap;
font-size: 0.14rem;
font-weight: 330;
line-height: 0.19rem;
color: $text-dark;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
// 复制链接按钮
&__copy-btn {
width: 1.0rem;
height: 0.32rem;
border: none;
border-radius: 0.16rem;
background: #0F172A;
color: $bg-white;
font-size: 0.13rem;
font-weight: 600;
line-height: 0.16rem;
font-size: 0.14rem;
font-weight: 450;
line-height: 0.19rem;
color: $accent;
cursor: pointer;
flex-shrink: 0;
margin-left: 0.08rem;
transition: opacity 0.2s;
&:hover {
opacity: 0.7;
}
}
// 邀请步骤区域
&__steps {
display: flex;
flex-direction: column;
gap: 0.16rem;
width: 100%;
}
&__steps-title {
font-size: 0.14rem;
font-weight: 450;
line-height: 0.19rem;
color: $accent;
}
&__steps-list {
display: flex;
flex-direction: column;
gap: 0.16rem;
width: 100%;
}
// 步骤卡片
&__step-item {
box-sizing: border-box;
display: flex;
align-items: center;
padding: 0.12rem 0.16rem;
gap: 0.10rem;
width: 100%;
background: $bg-white;
border: 1px solid #F0F0F0;
border-radius: 0.08rem;
}
// 步骤数字圆圈
&__step-num {
display: flex;
justify-content: center;
align-items: center;
width: 0.20rem;
min-width: 0.20rem;
height: 0.20rem;
background: $bg-main;
border-radius: 0.10rem;
font-size: 0.14rem;
font-weight: 330;
line-height: 0.20rem;
text-align: center;
color: $text-middle;
flex-shrink: 0;
}
// 步骤文字
&__step-text {
font-size: 0.14rem;
font-weight: 330;
line-height: 0.19rem;
color: $text-dark;
}
// 底部:统计 + 按钮
&__footer {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
// 统计信息
&__stat {
display: flex;
flex-direction: column;
gap: 0.02rem;
}
&__stat-line {
font-size: 0.14rem;
font-weight: 330;
line-height: 0.19rem;
color: $text-middle;
em {
font-style: normal;
color: $accent;
font-weight: 450;
}
}
// 成为正式会员按钮
&__member-btn {
display: flex;
align-items: center;
padding: 0.08rem 0.12rem;
gap: 0.04rem;
background: $accent;
border-radius: 0.08rem;
border: none;
cursor: pointer;
transition: opacity 0.2s;
span {
font-size: 0.14rem;
font-weight: 520;
line-height: 0.19rem;
text-align: center;
color: #FFFFFF;
}
&:hover {
opacity: 0.85;
}
}
// 步骤卡片
&__step {
display: flex;
align-items: center;
width: 3.64rem;
height: 0.46rem;
background: #F3FFFD;
border-radius: 0.14rem;
padding: 0 0.14rem;
margin: 0 auto 0.12rem;
box-sizing: border-box;
}
// 步骤数字圆圈
&__step-circle {
width: 0.26rem;
height: 0.26rem;
border-radius: 50%;
background: $bg-white;
border: 1px solid #BFEFE8;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.12rem;
font-weight: 700;
color: #12C7BE;
line-height: 0.15rem;
flex-shrink: 0;
box-sizing: border-box;
}
// 步骤文字
&__step-text {
margin-left: 0.14rem;
font-size: 0.13rem;
font-weight: 500;
color: #334155;
line-height: 0.16rem;
}
// 底部统计 + 按钮
&__footer {
display: flex;
align-items: center;
margin-top: auto;
padding-top: 0.06rem;
}
// 统计项
&__stat {
display: flex;
flex-direction: column;
margin-right: 0.2rem;
}
&__stat-label {
font-size: 0.13rem;
font-weight: 500;
color: #64748B;
line-height: 0.16rem;
}
&__stat-value {
font-size: 0.13rem;
font-weight: 500;
color: #64748B;
line-height: 0.16rem;
}
// 成为正式会员按钮
&__member-btn {
margin-left: auto;
width: 1.1rem;
height: 0.29rem;
background: #F3FFFD;
border: 1px solid #BFEFE8;
border-radius: 0.08rem;
font-size: 0.13rem;
font-weight: 400;
color: #000000;
line-height: 0.16rem;
cursor: pointer;
transition: all 0.2s;
text-align: center;
&:hover {
background: #e8faf8;
border-color: $accent;
}
&__member-btn-arrow {
font-size: 0.16rem;
}
}
+385 -34
View File
@@ -142,11 +142,21 @@
.side-nav__dialog-close {
cursor: pointer;
color: $text-light;
font-size: 0.16rem;
display: flex;
align-items: center;
justify-content: center;
width: 0.24rem;
height: 0.24rem;
border-radius: 4px;
transition: background 0.2s;
&:hover {
color: $text-dark;
background: rgba(0, 0, 0, 0.05);
}
svg {
width: 0.14rem;
height: 0.14rem;
}
}
@@ -158,75 +168,116 @@
// ==================== 消息通知弹窗(左右分栏) ====================
.side-nav__message-dialog {
background: $bg-white;
border-radius: 0.12rem;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0.24rem 0.32rem;
gap: 0.24rem;
width: 8rem;
height: 6rem;
max-width: 90vw;
max-height: 90vh;
box-shadow: 0 0.04rem 0.2rem rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
background: linear-gradient(180deg, #EDF9FA 0%, #FFFFFF 12.08%);
border: 1px solid #F0F0F0;
box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.05);
border-radius: 0.12rem;
}
.side-nav__message-dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.16rem 0.2rem;
border-bottom: 1px solid $border-color;
font-size: 0.16rem;
font-weight: 600;
color: $text-dark;
width: 100%;
flex-shrink: 0;
span:first-child {
font-weight: 520;
font-size: 0.18rem;
line-height: 0.24rem;
color: $text-dark;
}
}
.side-nav__message-dialog-content {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 0.16rem;
width: 100%;
flex: 1;
overflow: hidden;
background: $bg-white;
}
// 左侧消息列表
.side-nav__message-list {
width: 2.1rem;
border-right: 1px solid $border-color;
display: flex;
flex-direction: column;
gap: 0.04rem;
width: 2.24rem;
height: 100%;
overflow-y: auto;
flex-shrink: 0;
}
.side-nav__message-list-item {
display: flex;
align-items: center;
padding: 0.12rem 0.10rem;
flex-direction: column;
align-items: flex-start;
padding: 0.16rem 0.12rem;
border-radius: 0.08rem;
cursor: pointer;
border-bottom: 1px solid $border-color;
transition: background 0.2s;
&:hover {
background: $bg-main;
background: #F6F6F6;
}
&--active {
background: $theme-color;
background: #EDF9FA;
}
}
.side-nav__message-list-title {
flex: 1;
font-size: 0.13rem;
color: $text-dark;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
// 列表项内部行布局
.side-nav__message-list-item-row {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
}
.side-nav__message-list-item-left {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.08rem;
}
.side-nav__message-unread-dot {
width: 0.08rem;
height: 0.08rem;
border-radius: 50%;
background: $danger;
margin-left: 0.06rem;
background: $accent;
flex-shrink: 0;
}
.side-nav__message-list-title {
font-weight: 520;
font-size: 0.14rem;
line-height: 0.19rem;
color: $text-dark;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.side-nav__message-list-date {
font-weight: 330;
font-size: 0.12rem;
line-height: 0.16rem;
color: $text-light;
flex-shrink: 0;
}
@@ -241,21 +292,45 @@
// 右侧消息详情
.side-nav__message-detail {
flex: 1;
padding: 0.2rem;
height: 100%;
overflow-y: auto;
position: relative;
padding: 0.16rem 0.24rem;
}
.side-nav__message-detail-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.side-nav__message-detail-title {
font-size: 0.16rem;
font-weight: 600;
font-weight: 630;
font-size: 0.22rem;
line-height: 0.29rem;
color: $text-dark;
margin-bottom: 0.16rem;
}
.side-nav__message-detail-time {
font-weight: 330;
font-size: 0.12rem;
line-height: 0.16rem;
color: $text-middle;
flex-shrink: 0;
}
.side-nav__message-detail-divider {
width: 100%;
height: 1px;
background: #F0F0F0;
margin: 0.16rem 0;
}
.side-nav__message-detail-content {
font-weight: 330;
font-size: 0.14rem;
line-height: 0.24rem;
color: $text-dark;
line-height: 1.7;
white-space: pre-wrap;
word-break: break-word;
}
@@ -380,3 +455,279 @@
}
}
}
// ==================== 邀请会员卡片 ====================
.side-nav__referral-card {
width: 100%;
background: linear-gradient(128.17deg, #52CAD1 0%, #82D79B 100%);
border-radius: 0.08rem;
padding: 0.16rem;
box-sizing: border-box;
margin-top: 0.12rem;
}
.side-nav__referral-title {
font-size: 0.16rem;
font-weight: 630;
color: #FFFFFF;
line-height: 0.21rem;
}
.side-nav__referral-subtitle {
font-size: 0.10rem;
font-weight: 330;
color: #EAFBFC;
line-height: 0.13rem;
margin-top: 0.04rem;
}
.side-nav__referral-panel {
background: #FFFFFF;
box-shadow: 0px 0.02rem 0.06rem rgba(26, 26, 26, 0.05);
border-radius: 0.06rem;
padding: 0.10rem 0.08rem;
margin-top: 0.10rem;
}
.side-nav__referral-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.side-nav__referral-label {
font-size: 0.10rem;
font-weight: 330;
color: #6B7280;
line-height: 0.13rem;
}
.side-nav__referral-value {
font-size: 0.10rem;
font-weight: 520;
color: #52CAD1;
line-height: 0.13rem;
}
.side-nav__referral-track {
width: 100%;
height: 0.02rem;
background: #D7F1F3;
border-radius: 9999px;
margin-top: 0.06rem;
overflow: hidden;
}
.side-nav__referral-fill {
height: 100%;
background: #52CAD1;
border-radius: 9999px;
}
.side-nav__referral-divider {
width: 100%;
border-top: 0.01rem solid #8C8C8C;
margin-top: 0.08rem;
}
.side-nav__referral-tip {
font-size: 0.10rem;
font-weight: 330;
color: #1A1A1A;
line-height: 0.13rem;
margin-top: 0.08rem;
strong {
font-weight: 630;
}
}
.side-nav__referral-action {
font-size: 0.11rem;
font-weight: 520;
color: #52CAD1;
line-height: 0.15rem;
text-align: center;
margin-top: 0.08rem;
cursor: pointer;
&:hover {
opacity: 0.8;
}
}
// ==================== 用户信息模块 ====================
.side-nav__user-info {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
background: #F3F4F6;
border-radius: 0.08rem;
padding: 0.12rem 0.16rem;
box-sizing: border-box;
margin-top: 0.12rem;
}
.side-nav__user-left {
display: flex;
flex-direction: column;
gap: 0.04rem;
}
.side-nav__user-phone {
font-size: 0.14rem;
font-weight: 330;
color: #1A1A1A;
line-height: 0.19rem;
}
.side-nav__user-member-tag {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.02rem 0.04rem;
border-radius: 0.04rem;
font-size: 0.10rem;
font-weight: 520;
line-height: 0.13rem;
width: fit-content;
// 正式会员:主题色字 + 浅绿底
&--formal {
color: #52CAD1;
background: #EDF9FA;
}
// 试用会员:橙色字 + 浅橙底
&--trial {
color: #F59E0B;
background: #FFFBF5;
}
// 免费用户:中灰字 + 灰底
&--free {
color: #6A7282;
background: #F3F4F6;
}
}
.side-nav__user-bell {
width: 0.20rem;
height: 0.20rem;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
position: relative;
svg {
width: 100%;
height: 100%;
}
&:hover {
opacity: 0.7;
}
}
// 铃铛右上角未读红点
.side-nav__user-bell-dot {
position: absolute;
top: -0.005rem;
right: 0.01rem;
width: 0.08rem;
height: 0.08rem;
background: #EF4444;
border-radius: 50%;
}
// ==================== 账户弹窗 ====================
.side-nav__user-info-wrapper {
position: relative;
margin-top: 0.12rem;
}
.side-nav__account-popup {
position: absolute;
bottom: calc(100% + 0.08rem);
left: 0;
width: 100%;
background: #FFFFFF;
border: 1px solid #F0F0F0;
box-shadow: 0px 0.02rem 0.08rem rgba(0, 0, 0, 0.04);
border-radius: 0.08rem;
overflow: hidden;
z-index: 100;
}
.side-nav__account-popup-header {
padding: 0.16rem;
background: linear-gradient(180deg, #EDF9FA 0%, #FFFFFF 38.18%);
border-radius: 0.08rem 0.08rem 0 0;
}
.side-nav__account-popup-header-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.side-nav__account-popup-header-left {
display: flex;
flex-direction: column;
gap: 0.04rem;
}
.side-nav__account-popup-member-type {
font-size: 0.14rem;
font-weight: 450;
line-height: 0.19rem;
// 正式会员 — 主题色
&--formal {
color: $accent;
}
// 试用会员 — 橙色
&--trial {
color: #F59E0B;
}
// 免费用户 — 中灰色
&--free {
color: $text-middle;
}
}
.side-nav__account-popup-expire {
font-size: 0.12rem;
font-weight: 330;
color: $text-light;
line-height: 0.16rem;
}
.side-nav__account-popup-detail {
font-size: 0.12rem;
font-weight: 330;
color: $text-light;
line-height: 0.16rem;
cursor: pointer;
&:hover {
color: $accent;
}
}
.side-nav__account-popup-item {
padding: 0.12rem 0.16rem;
font-size: 0.12rem;
font-weight: 330;
color: #000000;
line-height: 0.16rem;
cursor: pointer;
&:hover {
background: $bg-main;
}
}
+43 -2
View File
@@ -187,10 +187,28 @@
&__match-card {
flex-shrink: 0;
width: 2.06rem;
background: #FBFDF7;
border: 1px solid #9FD051;
border-radius: 0.08rem;
padding: 0.16rem 0.24rem;
border: 1px solid #9FD051;
background: #FBFDF7;
}
// 高匹配度
&__match-card--high {
background: #FBFDF7;
border-color: #9FD051;
}
// 中匹配度
&__match-card--medium {
background: #FFFBF5;
border-color: #F59E0B;
}
// 低匹配度
&__match-card--low {
background: #FFF6F5;
border-color: #FE6D52;
}
&__match-top {
@@ -214,6 +232,24 @@
color: #9FD051;
}
// 高匹配度文字色
&__match-card--high &__match-score,
&__match-card--high &__match-label {
color: #9FD051;
}
// 中匹配度文字色
&__match-card--medium &__match-score,
&__match-card--medium &__match-label {
color: #F59E0B;
}
// 低匹配度文字色
&__match-card--low &__match-score,
&__match-card--low &__match-label {
color: #FE6D52;
}
&__match-list {
display: flex;
flex-direction: column;
@@ -392,3 +428,8 @@
margin: 0;
}
}
// ---- 骨架屏区域 ----
.job-detail__skeleton {
padding: 0.32rem;
}
+11 -10
View File
@@ -15,8 +15,6 @@
overflow: hidden;
background: $bg-main;
font-size: 0.14rem;
display: flex;
flex-direction: column;
}
// 页面标题
@@ -156,9 +154,6 @@
font-size: 0.12rem;
line-height: 0.16rem;
color: $accent;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: text-top;
margin-left: 0.03rem;
}
@@ -278,11 +273,11 @@
}
}
// 职位列表
// 职位列表(用 calc 减去上方头部+筛选栏大致高度,保证列表独立滚动)
&__list {
gap: 0;
flex: 1;
overflow-y: auto;
height: calc(var(--app-height, 100vh) - 1.8rem);
padding-bottom: 0.2rem;
margin: 0 0.24rem;
@@ -307,7 +302,7 @@
&:hover {
box-shadow: 0 0.04rem 0.16rem rgba(0, 0, 0, 0.06);
background: #fbfbfb;
//background: #fbfbfb;
}
&--selected {
@@ -581,7 +576,7 @@
}
}
// 不再显示
// 不再显示(默认隐藏,hover 卡片时显示)
&__hide-btn {
display: block;
margin-top: auto;
@@ -589,15 +584,21 @@
font-weight: 330;
color: #8C8C8C;
cursor: pointer;
transition: color 0.2s;
transition: color 0.2s, opacity 0.2s;
line-height: 0.19rem;
white-space: nowrap;
opacity: 0;
&:hover {
color: $text-dark;
}
}
// hover 卡片时显示"不再显示"按钮
&__job-card:hover &__hide-btn {
opacity: 1;
}
// 弹出菜单
&__job-popup {
position: absolute;