编辑页样式优化
This commit is contained in:
@@ -345,7 +345,7 @@ const EditProfilePage: React.FC = () => {
|
||||
}
|
||||
|
||||
return defaultOptions;
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<View className="edit_profile_page">
|
||||
@@ -591,7 +591,11 @@ const EditProfilePage: React.FC = () => {
|
||||
openType="getPhoneNumber"
|
||||
onGetPhoneNumber={onGetPhoneNumber}
|
||||
>
|
||||
{form_data.phone ? form_data.phone.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3")
|
||||
{form_data.phone
|
||||
? form_data.phone.replace(
|
||||
/(\d{3})(\d{4})(\d{4})/,
|
||||
"$1 $2 $3"
|
||||
)
|
||||
: "未绑定"}
|
||||
</Button>
|
||||
<Image
|
||||
@@ -600,7 +604,7 @@ const EditProfilePage: React.FC = () => {
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
<View className="divider"></View>
|
||||
{/* <View className="divider"></View> */}
|
||||
</View>
|
||||
</View>
|
||||
|
||||
@@ -688,7 +692,11 @@ const EditProfilePage: React.FC = () => {
|
||||
options={cities}
|
||||
visible={location_picker_visible}
|
||||
setvisible={setLocationPickerVisible}
|
||||
value={form_data.country ? [form_data.country, form_data.province, form_data.city] : getDefaultOption(cities)}
|
||||
value={
|
||||
form_data.country
|
||||
? [form_data.country, form_data.province, form_data.city]
|
||||
: getDefaultOption(cities)
|
||||
}
|
||||
onChange={handle_location_change}
|
||||
/>
|
||||
)}
|
||||
@@ -713,7 +721,9 @@ const EditProfilePage: React.FC = () => {
|
||||
// img={(user_info as UserInfoType)?.avatar_url}
|
||||
visible={ntrp_picker_visible}
|
||||
setvisible={setNtrpPickerVisible}
|
||||
value={form_data.ntrp_level === "0" ? ["3.0"] : [form_data.ntrp_level]}
|
||||
value={
|
||||
form_data.ntrp_level === "0" ? ["3.0"] : [form_data.ntrp_level]
|
||||
}
|
||||
onChange={handle_ntrp_level_change}
|
||||
/>
|
||||
)}
|
||||
@@ -726,7 +736,11 @@ const EditProfilePage: React.FC = () => {
|
||||
options={professions}
|
||||
visible={occupation_picker_visible}
|
||||
setvisible={setOccupationPickerVisible}
|
||||
value={form_data.occupation ? [...form_data.occupation.split(" ")] : getDefaultOption(professions)}
|
||||
value={
|
||||
form_data.occupation
|
||||
? [...form_data.occupation.split(" ")]
|
||||
: getDefaultOption(professions)
|
||||
}
|
||||
onChange={handle_occupation_change}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user