393 lines
8.1 KiB
SCSS
393 lines
8.1 KiB
SCSS
// 编辑资料页面样式
|
|
.edit_profile_page {
|
|
height: 100vh; // position: relative;
|
|
background: radial-gradient(
|
|
circle at 50% 0,
|
|
/* 光晕圆心在顶部中间 */ rgba(191, 255, 239, 0.9) 0px,
|
|
/* 中间更深的浅蓝 */ rgba(191, 255, 239, 0.5) 200px,
|
|
/* 100px 处开始淡化 */ #fafafa 300px,
|
|
/* 到 200px 变成白色 */ #fafafa 100% /* 200px 以下全白 */
|
|
);
|
|
position: relative;
|
|
// overflow: hidden;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
width: 0;
|
|
height: 0;
|
|
color: transparent;
|
|
}
|
|
}
|
|
|
|
.custom-navbar {
|
|
height: 56px;
|
|
/* 通常与原生导航栏高度一致 */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
// background-color: #fff;
|
|
color: #000;
|
|
padding-top: 44px;
|
|
/* 适配状态栏 */
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.detail-navigator {
|
|
height: 30px;
|
|
width: 80px;
|
|
border-radius: 15px;
|
|
position: absolute;
|
|
left: 12px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.detail-navigator-back {
|
|
height: 32px;
|
|
width: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
& > .detail-navigator-back-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 导航栏
|
|
.navbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
height: 98px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 44px 44px 0px 0px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 21px 16px 0px;
|
|
box-sizing: border-box;
|
|
|
|
.navbar_left {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
cursor: pointer;
|
|
|
|
.back_icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
}
|
|
|
|
.navbar_title {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 17px;
|
|
line-height: 1.4em;
|
|
color: #000000;
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.navbar_right {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
cursor: pointer;
|
|
|
|
.save_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
line-height: 1.4em;
|
|
color: #000000;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 主要内容区域
|
|
.edit_main_content {
|
|
position: relative;
|
|
z-index: 5;
|
|
flex: 1;
|
|
margin-top: 98px;
|
|
box-sizing: border-box;
|
|
padding: 0px 16px;
|
|
padding-bottom: 48px;
|
|
|
|
// 头像编辑区域
|
|
.avatar_section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 48px;
|
|
// margin-top: 98px;
|
|
|
|
.avatar_container {
|
|
position: relative;
|
|
|
|
.avatar {
|
|
width: 100px;
|
|
height: 100px;
|
|
object-fit: cover;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.12),
|
|
0px 0px 1px 0px rgba(0, 0, 0, 0.2);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.65);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.avatar_overlay {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: #000000;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.06);
|
|
z-index: 10;
|
|
|
|
.upload_icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 表单区域
|
|
.form_section {
|
|
margin-bottom: 16px;
|
|
border: 0.5pt solid rgba(0, 0, 0, 0.06);
|
|
border-radius: 12px;
|
|
// box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
|
|
overflow: hidden;
|
|
|
|
.form_group {
|
|
background: #ffffff;
|
|
|
|
.form_item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 12px;
|
|
min-height: 44px;
|
|
box-sizing: border-box;
|
|
gap: 20px;
|
|
|
|
.item_left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
|
|
.item_icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.item_label {
|
|
font-family: "PingFang SC";
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
}
|
|
}
|
|
|
|
.item_right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
overflow: hidden;
|
|
|
|
.item_input {
|
|
flex: 1;
|
|
text-align: right;
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
min-width: 0;
|
|
|
|
&::placeholder {
|
|
color: rgba(0, 0, 0, 0.4);
|
|
font-weight: unset;
|
|
}
|
|
}
|
|
|
|
.item_value {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
&.placeholder {
|
|
color: rgba(60, 60, 67, 0.3);
|
|
}
|
|
}
|
|
|
|
.bio_textarea {
|
|
flex: 1;
|
|
text-align: right;
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
min-height: 20px;
|
|
resize: none;
|
|
|
|
&::placeholder {
|
|
color: rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
|
|
.arrow_icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
Button {
|
|
padding: 0;
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
border: none;
|
|
flex: 1;
|
|
text-align: right;
|
|
background-color: unset;
|
|
|
|
&.placeholer {
|
|
font-weight: 400;
|
|
color: rgba(60, 60, 67, 0.3);
|
|
}
|
|
|
|
&:after {
|
|
border: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.divider {
|
|
position: absolute;
|
|
left: 36px;
|
|
right: 12px;
|
|
height: 0.5pt;
|
|
background: rgba(0, 0, 0, 0.06);
|
|
border-radius: 99px;
|
|
}
|
|
}
|
|
|
|
.divider {
|
|
height: 0.5pt;
|
|
background-color: rgba(0, 0, 0, 0.06);
|
|
margin-left: 35px;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 退出登录区域
|
|
.logout_section {
|
|
margin-top: 16px;
|
|
|
|
.logout_button {
|
|
background: #ffffff;
|
|
border: 0.5pt solid rgba(0, 0, 0, 0.06);
|
|
border-radius: 16px;
|
|
padding: 2px 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
min-height: 48px;
|
|
|
|
.logout_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
line-height: 1.4em;
|
|
color: #000000;
|
|
|
|
&.close_account {
|
|
color: #fe3c31;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.group {
|
|
border: 0.5pt solid rgba(0, 0, 0, 0.06);
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
|
|
.logout_button {
|
|
border: unset;
|
|
border-radius: unset;
|
|
|
|
Image {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
&:first-child {
|
|
border-bottom: 0.5pt solid rgba(0, 0, 0, 0.06);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 加载状态
|
|
.loading_container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 200px;
|
|
|
|
.loading_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 1.4em;
|
|
color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
}
|
|
}
|