Commit b1710c11 authored by 卢均锐's avatar 卢均锐

fix: [12879]

parent 83bb9968
...@@ -38,6 +38,13 @@ const SignUpForm = () => { ...@@ -38,6 +38,13 @@ const SignUpForm = () => {
const getCountryCodeId = async () => { const getCountryCodeId = async () => {
const res = await PublicApi.getManageCountryAreaGetTelCode() const res = await PublicApi.getManageCountryAreaGetTelCode()
if (res.code === 1000) { if (res.code === 1000) {
let _value = ''
for (let i = 0; i < res.data.length; i++) {
if (res.data[i] === '86') {
_value = res.data[i];
break
}
}
return { telPrefix: res.data } return { telPrefix: res.data }
} }
return {} return {}
...@@ -104,6 +111,7 @@ const SignUpForm = () => { ...@@ -104,6 +111,7 @@ const SignUpForm = () => {
member: name, member: name,
startSignUp: formatTimeString(data.startSignUp), startSignUp: formatTimeString(data.startSignUp),
endSignUp: formatTimeString(data.endSignUp), endSignUp: formatTimeString(data.endSignUp),
telPrefix: '86'
}); });
}) })
} }
...@@ -148,4 +156,4 @@ const SignUpForm = () => { ...@@ -148,4 +156,4 @@ const SignUpForm = () => {
</PageHeaderWrapper> </PageHeaderWrapper>
) )
} }
export default SignUpForm export default SignUpForm
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment