This commit is contained in:
张成
2025-09-07 10:21:27 +08:00
parent 4c36986ade
commit 9830cd4b2d
4 changed files with 223 additions and 63 deletions

View File

@@ -17,52 +17,7 @@
overflow-y: auto;
padding: 15px;
// 头部操作栏
.header_section {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 0 20px;
margin-bottom: 20px;
.back_button {
width: 40px;
height: 40px;
background: transparent;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
.back_icon {
width: 24px;
height: 24px;
}
}
.page_title {
font-family: 'PingFang SC';
font-weight: 600;
font-size: 18px;
line-height: 1.4em;
color: #000000;
}
.save_button {
background: transparent;
border: none;
cursor: pointer;
.save_text {
font-family: 'PingFang SC';
font-weight: 600;
font-size: 16px;
line-height: 1.4em;
color: #000000;
}
}
}
// 头像编辑区域
.avatar_section {
@@ -71,6 +26,7 @@
align-items: center;
gap: 12px;
margin-bottom: 30px;
margin-top: 98px;
.avatar_container {
position: relative;

View File

@@ -152,19 +152,6 @@ const EditProfilePage: React.FC = () => {
</View>
) : (
<>
{/* 头部操作栏 */}
<View className="header_section">
<Button className="back_button" onClick={handle_back}>
<Image
className="back_icon"
src={require('../../../static/detail/icon-arrow-left.svg')}
/>
</Button>
<Text className="page_title"></Text>
<Button className="save_button" onClick={handle_save}>
<Text className="save_text"></Text>
</Button>
</View>
{/* 头像编辑区域 */}
<View className="avatar_section">
@@ -173,7 +160,7 @@ const EditProfilePage: React.FC = () => {
<View className="avatar_overlay">
<Image
className="upload_icon"
src={require('../../../static/publishBall/icon-upload.svg')}
src={require('../../../static/userinfo/icon_upload.svg')}
/>
</View>
</View>