ntrp默认值为2.5
This commit is contained in:
@@ -238,7 +238,7 @@ const MyselfPageContent: React.FC = () => {
|
||||
loadMoreMatches={() => {}}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: 0, overflow: "hidden" }}
|
||||
listLoadErrorWrapperHeight="267px"
|
||||
listLoadErrorWrapperHeight="fit-content"
|
||||
listLoadErrorWidth="320px"
|
||||
listLoadErrorHeight="152px"
|
||||
defaultShowNum={3}
|
||||
@@ -259,7 +259,7 @@ const MyselfPageContent: React.FC = () => {
|
||||
loadMoreMatches={() => {}}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||
listLoadErrorWrapperHeight="220px"
|
||||
listLoadErrorWrapperHeight="fit-content"
|
||||
listLoadErrorWidth="320px"
|
||||
listLoadErrorHeight="152px"
|
||||
defaultShowNum={3}
|
||||
|
||||
@@ -23,11 +23,12 @@ const EditProfilePage: React.FC = () => {
|
||||
// 表单状态,基于store中的用户信息初始化
|
||||
const getInitialFormData = () => {
|
||||
const info = user_info as UserInfoType;
|
||||
debugger;
|
||||
return {
|
||||
nickname: info?.nickname ?? "",
|
||||
personal_profile: info?.personal_profile ?? "",
|
||||
occupation: info?.occupation ?? "",
|
||||
ntrp_level: info?.ntrp_level ?? "4.0",
|
||||
ntrp_level: info?.ntrp_level ?? "2.5",
|
||||
phone: info?.phone ?? "",
|
||||
gender: info?.gender ?? "",
|
||||
birthday: info?.birthday ?? "2000-01-01",
|
||||
@@ -68,7 +69,7 @@ const EditProfilePage: React.FC = () => {
|
||||
nickname: info?.nickname ?? "",
|
||||
personal_profile: info?.personal_profile ?? "",
|
||||
occupation: info?.occupation ?? "",
|
||||
ntrp_level: info?.ntrp_level ?? "4.0",
|
||||
ntrp_level: info?.ntrp_level ?? "2.5",
|
||||
phone: info?.phone ?? "",
|
||||
gender: info?.gender ?? "",
|
||||
birthday: info?.birthday ?? "2000-01-01",
|
||||
@@ -851,9 +852,7 @@ const EditProfilePage: React.FC = () => {
|
||||
// img={(user_info as UserInfoType)?.avatar_url}
|
||||
visible={ntrp_picker_visible}
|
||||
setvisible={setNtrpPickerVisible}
|
||||
value={
|
||||
form_data.ntrp_level === "0" ? ["2.5"] : [form_data.ntrp_level]
|
||||
}
|
||||
value={form_data.ntrp_level === "" ? ["2.5"] : [form_data.ntrp_level]}
|
||||
onChange={handle_ntrp_level_change}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -313,7 +313,7 @@ const OtherUserPage: React.FC = () => {
|
||||
loadMoreMatches={() => {}}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: 0, overflow: "hidden" }}
|
||||
listLoadErrorWrapperHeight="267px"
|
||||
listLoadErrorWrapperHeight="fit-content"
|
||||
listLoadErrorWidth="320px"
|
||||
listLoadErrorHeight="152px"
|
||||
defaultShowNum={3}
|
||||
@@ -356,7 +356,7 @@ const OtherUserPage: React.FC = () => {
|
||||
loadMoreMatches={() => {}}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||
listLoadErrorWrapperHeight="220px"
|
||||
listLoadErrorWrapperHeight="fit-content"
|
||||
listLoadErrorWidth="320px"
|
||||
listLoadErrorHeight="152px"
|
||||
defaultShowNum={3}
|
||||
|
||||
Reference in New Issue
Block a user