diff --git a/src/user_pages/edit/index.scss b/src/user_pages/edit/index.scss index 0aeff1a..2dc4714 100644 --- a/src/user_pages/edit/index.scss +++ b/src/user_pages/edit/index.scss @@ -1,7 +1,17 @@ // 编辑资料页面样式 .edit_profile_page { - height: 100vh; - background: radial-gradient(circle at 50% 0%, rgba(238, 255, 220, 1) 0%, rgba(255, 255, 255, 1) 37%); + 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 处开始淡化 */ + #fff 300px, + /* 到 200px 变成白色 */ + #fff 100% + /* 200px 以下全白 */ + ); position: relative; // overflow: hidden; box-sizing: border-box; @@ -28,7 +38,6 @@ position: sticky; top: 0; z-index: 100; - background-color: rgb(238, 255, 220); } .detail-navigator { diff --git a/src/user_pages/edit/index.tsx b/src/user_pages/edit/index.tsx index 0884e51..5511e0f 100644 --- a/src/user_pages/edit/index.tsx +++ b/src/user_pages/edit/index.tsx @@ -591,7 +591,8 @@ const EditProfilePage: React.FC = () => { openType="getPhoneNumber" onGetPhoneNumber={onGetPhoneNumber} > - {form_data.phone || "未绑定"} + {form_data.phone ? form_data.phone.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3") + : "未绑定"}