ntrp默认值为2.5

This commit is contained in:
2025-12-01 13:04:31 +08:00
parent 675ecb536d
commit 4c9a0da9ac
3 changed files with 8 additions and 9 deletions

View File

@@ -238,7 +238,7 @@ const MyselfPageContent: React.FC = () => {
loadMoreMatches={() => {}} loadMoreMatches={() => {}}
collapse={true} collapse={true}
style={{ paddingBottom: 0, overflow: "hidden" }} style={{ paddingBottom: 0, overflow: "hidden" }}
listLoadErrorWrapperHeight="267px" listLoadErrorWrapperHeight="fit-content"
listLoadErrorWidth="320px" listLoadErrorWidth="320px"
listLoadErrorHeight="152px" listLoadErrorHeight="152px"
defaultShowNum={3} defaultShowNum={3}
@@ -259,7 +259,7 @@ const MyselfPageContent: React.FC = () => {
loadMoreMatches={() => {}} loadMoreMatches={() => {}}
collapse={true} collapse={true}
style={{ paddingBottom: "90px", overflow: "hidden" }} style={{ paddingBottom: "90px", overflow: "hidden" }}
listLoadErrorWrapperHeight="220px" listLoadErrorWrapperHeight="fit-content"
listLoadErrorWidth="320px" listLoadErrorWidth="320px"
listLoadErrorHeight="152px" listLoadErrorHeight="152px"
defaultShowNum={3} defaultShowNum={3}

View File

@@ -23,11 +23,12 @@ const EditProfilePage: React.FC = () => {
// 表单状态基于store中的用户信息初始化 // 表单状态基于store中的用户信息初始化
const getInitialFormData = () => { const getInitialFormData = () => {
const info = user_info as UserInfoType; const info = user_info as UserInfoType;
debugger;
return { return {
nickname: info?.nickname ?? "", nickname: info?.nickname ?? "",
personal_profile: info?.personal_profile ?? "", personal_profile: info?.personal_profile ?? "",
occupation: info?.occupation ?? "", occupation: info?.occupation ?? "",
ntrp_level: info?.ntrp_level ?? "4.0", ntrp_level: info?.ntrp_level ?? "2.5",
phone: info?.phone ?? "", phone: info?.phone ?? "",
gender: info?.gender ?? "", gender: info?.gender ?? "",
birthday: info?.birthday ?? "2000-01-01", birthday: info?.birthday ?? "2000-01-01",
@@ -68,7 +69,7 @@ const EditProfilePage: React.FC = () => {
nickname: info?.nickname ?? "", nickname: info?.nickname ?? "",
personal_profile: info?.personal_profile ?? "", personal_profile: info?.personal_profile ?? "",
occupation: info?.occupation ?? "", occupation: info?.occupation ?? "",
ntrp_level: info?.ntrp_level ?? "4.0", ntrp_level: info?.ntrp_level ?? "2.5",
phone: info?.phone ?? "", phone: info?.phone ?? "",
gender: info?.gender ?? "", gender: info?.gender ?? "",
birthday: info?.birthday ?? "2000-01-01", birthday: info?.birthday ?? "2000-01-01",
@@ -851,9 +852,7 @@ const EditProfilePage: React.FC = () => {
// img={(user_info as UserInfoType)?.avatar_url} // img={(user_info as UserInfoType)?.avatar_url}
visible={ntrp_picker_visible} visible={ntrp_picker_visible}
setvisible={setNtrpPickerVisible} setvisible={setNtrpPickerVisible}
value={ value={form_data.ntrp_level === "" ? ["2.5"] : [form_data.ntrp_level]}
form_data.ntrp_level === "0" ? ["2.5"] : [form_data.ntrp_level]
}
onChange={handle_ntrp_level_change} onChange={handle_ntrp_level_change}
/> />
)} )}

View File

@@ -313,7 +313,7 @@ const OtherUserPage: React.FC = () => {
loadMoreMatches={() => {}} loadMoreMatches={() => {}}
collapse={true} collapse={true}
style={{ paddingBottom: 0, overflow: "hidden" }} style={{ paddingBottom: 0, overflow: "hidden" }}
listLoadErrorWrapperHeight="267px" listLoadErrorWrapperHeight="fit-content"
listLoadErrorWidth="320px" listLoadErrorWidth="320px"
listLoadErrorHeight="152px" listLoadErrorHeight="152px"
defaultShowNum={3} defaultShowNum={3}
@@ -356,7 +356,7 @@ const OtherUserPage: React.FC = () => {
loadMoreMatches={() => {}} loadMoreMatches={() => {}}
collapse={true} collapse={true}
style={{ paddingBottom: "90px", overflow: "hidden" }} style={{ paddingBottom: "90px", overflow: "hidden" }}
listLoadErrorWrapperHeight="220px" listLoadErrorWrapperHeight="fit-content"
listLoadErrorWidth="320px" listLoadErrorWidth="320px"
listLoadErrorHeight="152px" listLoadErrorHeight="152px"
defaultShowNum={3} defaultShowNum={3}