Commit 6b496dc9 authored by 卢均锐's avatar 卢均锐

Merge branch 'v2' of http://10.0.0.22:3000/lingxi/lingxi-business-paltform into v2

* 'v2' of http://10.0.0.22:3000/lingxi/lingxi-business-paltform: feat: 实名认证中英韩国际化翻译
parents 89189021 42706953
export default {
'accountSetting.twoPasswordsDifferent':'Two passwords are different',
'accountSetting.inputCorrentPhoneNumble':'Please fill in the correct phone number',
'accountSetting.unvalidEmail':'Invalid Email',
'accountSetting.loginPsw':'Login password',
'accountSetting.pswLength':'Password length is 8-20 characters',
'accountSetting.pswNotEmptySymbol':'Password cannot contain spaces',
'accountSetting.pswDiverse':'Password must contain uppercase and lowercase letters, lowercase letters and numbers',
'accountSetting.confirmPsw':'Confirm password',
'accountSetting.emailAddress':'Email address',
'accountSetting.emailCode':'Email verification code',
'accountSetting.inputEmailCode':'Please fill in the email verification code',
'accountSetting.newPhoneNumble':'New phone number',
'accountSetting.inputPhoneNumble':'Please fill in the phone number',
'accountSetting.code':'Verification code',
'accountSetting.inputCode':'Please fill in the verification code',
'accountSetting.getVerificationCode':'Get verification code',
'accountSetting.clickVerify':'Click to verify',
'accountSetting.verifyError':'Verification failed',
'accountSetting.verifyRightSlide':'Slide to the right to verify',
'accountSetting.currentlyBoundPhoneNumble':'Currently bound phone number',
'accountSetting.CurrentlyAuthenticatedMailbox':'Currently authenticated mailbox',
'accountSetting.notBoundEmail':'You have not bound an email',
'accountSetting.notSettingPsw':'You have not set a payment password',
'accountSetting.modify':'Modify',
'accountSetting.setEmail':'Set Email',
'accountSetting.setPayPsw':'Set payment password',
'accountSetting.resetPayPsw':'Reset payment password',
'accountSetting.verifyOk':'Verification successful',
'accountSetting.submit':'Submit',
'accountSetting.phoneCodeVerify':'Mobile verification code verification',
'accountSetting.emailVerify':'Email Verification',
'accountSetting.payPswVerify':'Payment password verification',
'accountSetting.inputPayPsw':'Please fill in the payment password',
'accountSetting.payPsw':'Payment password',
'accountSetting.setSixNumblePsw':'Please set a 6-digit password',
'accountSetting.setNewPayPsw':'Set a new payment password',
'accountSetting.back':'Back',
'accountSetting.modifyLoginPsw':'Modify login password',
'accountSetting.modifyEmail':'Modify Email',
'accountSetting.modifyPhone':'Modify phone',
"accountSetting.French": "France",
"accountSetting.mobileVerify": "Mobile Verification",
"accountSetting.adviseChangePsw": "Internet accounts are at risk of being stolen. It is recommended that you change your password regularly to protect your account security",
"accountSetting.yourVerifyEmail": "Your verified email:",
"accountSetting.yourVerifyPhone": "Your verified phone:",
"accountSetting.ifLossTochange": "If it is lost or disabled, please change it immediately to avoid account theft",
"accountSetting.pswStartToUpdate": "Your payment password has been turned on. It is recommended that you change your payment password regularly to improve security"
'accountSetting.twoPasswordsDifferent': 'Two passwords are different',
'accountSetting.inputCorrentPhoneNumble': 'Please fill in the correct phone number',
'accountSetting.unvalidEmail': 'Invalid Email',
'accountSetting.loginPsw': 'Login password',
'accountSetting.pswLength': 'Password length is 8-20 characters',
'accountSetting.pswNotEmptySymbol': 'Password cannot contain spaces',
'accountSetting.pswDiverse': 'Password must contain uppercase and lowercase letters, lowercase letters and numbers',
'accountSetting.confirmPsw': 'Confirm password',
'accountSetting.emailAddress': 'Email address',
'accountSetting.emailCode': 'Email verification code',
'accountSetting.inputEmailCode': 'Please fill in the email verification code',
'accountSetting.newPhoneNumble': 'New phone number',
'accountSetting.inputPhoneNumble': 'Please fill in the phone number',
'accountSetting.code': 'Verification code',
'accountSetting.inputCode': 'Please fill in the verification code',
'accountSetting.getVerificationCode': 'Get verification code',
'accountSetting.clickVerify': 'Click to verify',
'accountSetting.verifyError': 'Verification failed',
'accountSetting.verifyRightSlide': 'Slide to the right to verify',
'accountSetting.currentlyBoundPhoneNumble': 'Currently bound phone number',
'accountSetting.CurrentlyAuthenticatedMailbox': 'Currently authenticated mailbox',
'accountSetting.notBoundEmail': 'You have not bound an email',
'accountSetting.notSettingPsw': 'You have not set a payment password',
'accountSetting.modify': 'Modify',
'accountSetting.setEmail': 'Set Email',
'accountSetting.setPayPsw': 'Set payment password',
'accountSetting.resetPayPsw': 'Reset payment password',
'accountSetting.verifyOk': 'Verification successful',
'accountSetting.submit': 'Submit',
'accountSetting.phoneCodeVerify': 'Mobile verification code verification',
'accountSetting.emailVerify': 'Email Verification',
'accountSetting.payPswVerify': 'Payment password verification',
'accountSetting.inputPayPsw': 'Please fill in the payment password',
'accountSetting.payPsw': 'Payment password',
'accountSetting.setSixNumblePsw': 'Please set a 6-digit password',
'accountSetting.setNewPayPsw': 'Set a new payment password',
'accountSetting.back': 'Back',
'accountSetting.modifyLoginPsw': 'Modify login password',
'accountSetting.modifyEmail': 'Modify Email',
'accountSetting.modifyPhone': 'Modify phone',
"accountSetting.French": "France",
"accountSetting.mobileVerify": "Mobile Verification",
"accountSetting.adviseChangePsw": "Internet accounts are at risk of being stolen. It is recommended that you change your password regularly to protect your account security",
"accountSetting.yourVerifyEmail": "Your verified email:",
"accountSetting.yourVerifyPhone": "Your verified phone:",
"accountSetting.ifLossTochange": "If it is lost or disabled, please change it immediately to avoid account theft",
"accountSetting.pswStartToUpdate": "Your payment password has been turned on. It is recommended that you change your payment password regularly to improve security",
'accountSetting.cardImage': 'id card photo',
'accountSetting.cardMessage': 'Please upload clear and complete original color photos, ID card information visible and inevitable.',
'accountSetting.cardFace': 'Human face',
'accountSetting.emblem': 'National Emblem',
'accountSetting.cardInfo': 'id information',
'accountSetting.name': 'name',
'accountSetting.cardNo': 'cardNo',
'accountSetting.cardLabel': 'Automatic acquisition of upload photos',
'accountSetting.certified': 'Not certified',
'accountSetting.certified1': 'anew authentication',
'accountSetting.certified2': 'authentication',
'accountSetting.certified3': 'Enjoy full name membership exclusive services to enhance personal account security and credibility',
}
export default {
'accountSetting.twoPasswordsDifferent': '비밀번호가 달라요.',
'accountSetting.inputCorrentPhoneNumble': '정확한 핸드폰 번호를 기입해 주십시오',
'accountSetting.unvalidEmail': '잘못된 메일박스',
'accountSetting.loginPsw': '로그인 암호',
'accountSetting.pswLength': '암호 길이 8-20자',
'accountSetting.pswNotEmptySymbol': '암호에는 공백을 사용할 수 없습니다.',
'accountSetting.pswDiverse': '암호에는 대소문자, 소문자 및 숫자가 포함되어야 합니다.',
'accountSetting.confirmPsw': '암호 확인',
'accountSetting.emailAddress': '메일 주소',
'accountSetting.emailCode': '메일박스 인증번호',
'accountSetting.inputEmailCode': '메일박스 인증번호를 기입하십시오',
'accountSetting.newPhoneNumble': '새 핸드폰 번호',
'accountSetting.inputPhoneNumble': '핸드폰 번호를 기입해 주세요',
'accountSetting.code': '인증 코드',
'accountSetting.inputCode': '인증번호를 입력하십시오.',
'accountSetting.getVerificationCode': '인증 코드 가져오기',
'accountSetting.clickVerify': '클릭하여 검증',
'accountSetting.verifyError': '인증 실패',
'accountSetting.verifyRightSlide': '오른쪽으로 슬라이딩 확인',
'accountSetting.currentlyBoundPhoneNumble': '현재 귀속 핸드폰 번호',
'accountSetting.CurrentlyAuthenticatedMailbox': '현재 인증된 사서함',
'accountSetting.notBoundEmail': '너 아직 메일박스 연결 안 했어.',
'accountSetting.notSettingPsw': '결제 암호를 설정하지 않았습니다.',
'accountSetting.modify': '수정',
'accountSetting.setEmail': '사서함 설정',
'accountSetting.setPayPsw': '결제 암호 설정',
'accountSetting.resetPayPsw': '결제 암호 재설정',
'accountSetting.verifyOk': '검증 성공',
'accountSetting.submit': '커밋',
'accountSetting.phoneCodeVerify': '핸드폰 검사 코드 검증',
'accountSetting.emailVerify': '메일박스 확인',
'accountSetting.payPswVerify': '결제 암호 확인',
'accountSetting.inputPayPsw': '결제 비밀번호 입력',
'accountSetting.payPsw': '지불 비밀번호',
'accountSetting.setSixNumblePsw': '6자리 숫자의 비밀번호를 설정하세요',
'accountSetting.setNewPayPsw': '새 결제 암호 설정',
'accountSetting.back': '되돌아오다',
'accountSetting.modifyLoginPsw': '로그인 암호 수정',
'accountSetting.modifyEmail': '메일박스 수정',
'accountSetting.modifyPhone': '핸드폰 수정',
"accountSetting.French": '프랑스',
"accountSetting.mobileVerify": '휴대폰 인증',
"accountSetting.adviseChangePsw": '인터넷 계정에 도난 위험이 존재하므로 정기적으로 비밀번호를 변경하여 계정의 안전을 보호하는 것을 권장합니다',
"accountSetting.yourVerifyEmail": '인증된 메일박스:',
"accountSetting.yourVerifyPhone": '인증된 휴대폰:',
"accountSetting.ifLossTochange": '분실 또는 정지 시, 계정 도난 방지 즉시 교환',
"accountSetting.pswStartToUpdate": '결제 암호가 켜져 있으므로 정기적으로 새 결제 암호를 교체하여 보안을 강화하는 것이 좋습니다.'
'accountSetting.twoPasswordsDifferent': '비밀번호가 달라요.',
'accountSetting.inputCorrentPhoneNumble': '정확한 핸드폰 번호를 기입해 주십시오',
'accountSetting.unvalidEmail': '잘못된 메일박스',
'accountSetting.loginPsw': '로그인 암호',
'accountSetting.pswLength': '암호 길이 8-20자',
'accountSetting.pswNotEmptySymbol': '암호에는 공백을 사용할 수 없습니다.',
'accountSetting.pswDiverse': '암호에는 대소문자, 소문자 및 숫자가 포함되어야 합니다.',
'accountSetting.confirmPsw': '암호 확인',
'accountSetting.emailAddress': '메일 주소',
'accountSetting.emailCode': '메일박스 인증번호',
'accountSetting.inputEmailCode': '메일박스 인증번호를 기입하십시오',
'accountSetting.newPhoneNumble': '새 핸드폰 번호',
'accountSetting.inputPhoneNumble': '핸드폰 번호를 기입해 주세요',
'accountSetting.code': '인증 코드',
'accountSetting.inputCode': '인증번호를 입력하십시오.',
'accountSetting.getVerificationCode': '인증 코드 가져오기',
'accountSetting.clickVerify': '클릭하여 검증',
'accountSetting.verifyError': '인증 실패',
'accountSetting.verifyRightSlide': '오른쪽으로 슬라이딩 확인',
'accountSetting.currentlyBoundPhoneNumble': '현재 귀속 핸드폰 번호',
'accountSetting.CurrentlyAuthenticatedMailbox': '현재 인증된 사서함',
'accountSetting.notBoundEmail': '너 아직 메일박스 연결 안 했어.',
'accountSetting.notSettingPsw': '결제 암호를 설정하지 않았습니다.',
'accountSetting.modify': '수정',
'accountSetting.setEmail': '사서함 설정',
'accountSetting.setPayPsw': '결제 암호 설정',
'accountSetting.resetPayPsw': '결제 암호 재설정',
'accountSetting.verifyOk': '검증 성공',
'accountSetting.submit': '커밋',
'accountSetting.phoneCodeVerify': '핸드폰 검사 코드 검증',
'accountSetting.emailVerify': '메일박스 확인',
'accountSetting.payPswVerify': '결제 암호 확인',
'accountSetting.inputPayPsw': '결제 비밀번호 입력',
'accountSetting.payPsw': '지불 비밀번호',
'accountSetting.setSixNumblePsw': '6자리 숫자의 비밀번호를 설정하세요',
'accountSetting.setNewPayPsw': '새 결제 암호 설정',
'accountSetting.back': '되돌아오다',
'accountSetting.modifyLoginPsw': '로그인 암호 수정',
'accountSetting.modifyEmail': '메일박스 수정',
'accountSetting.modifyPhone': '핸드폰 수정',
"accountSetting.French": '프랑스',
"accountSetting.mobileVerify": '휴대폰 인증',
"accountSetting.adviseChangePsw": '인터넷 계정에 도난 위험이 존재하므로 정기적으로 비밀번호를 변경하여 계정의 안전을 보호하는 것을 권장합니다',
"accountSetting.yourVerifyEmail": '인증된 메일박스:',
"accountSetting.yourVerifyPhone": '인증된 휴대폰:',
"accountSetting.ifLossTochange": '분실 또는 정지 시, 계정 도난 방지 즉시 교환',
"accountSetting.pswStartToUpdate": '결제 암호가 켜져 있으므로 정기적으로 새 결제 암호를 교체하여 보안을 강화하는 것이 좋습니다.',
'accountSetting.cardImage': '신분증 사진',
'accountSetting.cardMessage': '선명하고 완전한 컬러 원본 사진을 올려주시면 신분증 제반 정보가 보이고 필연입니다.',
'accountSetting.cardFace': '피규어',
'accountSetting.emblem': '국장면',
'accountSetting.cardInfo': '아이디 정보',
'accountSetting.name': '이름',
'accountSetting.cardNo': '식별 번호',
'accountSetting.cardLabel': '자동으로 사진 업로드',
'accountSetting.certified': '인증되지 않은',
'accountSetting.certified1': '재인증',
'accountSetting.certified2': '확인됨',
'accountSetting.certified3': '실명 회원만의 서비스를 누리고 개인 계정의 보안과 신용을 향상시키십시오.',
}
export default {
'accountSetting.twoPasswordsDifferent': '两次密码不一样',
'accountSetting.inputCorrentPhoneNumble': '请填写正确的手机号',
'accountSetting.unvalidEmail': '无效的邮箱',
'accountSetting.loginPsw': '登录密码',
'accountSetting.pswLength': '密码长度8-20个字符',
'accountSetting.pswNotEmptySymbol': '密码不能包含空格',
'accountSetting.pswDiverse': '密码必须包含大小写、小写字母和数字',
'accountSetting.confirmPsw': '确认密码',
'accountSetting.emailAddress': '邮箱地址',
'accountSetting.emailCode': '邮箱验证码',
'accountSetting.inputEmailCode': '请填写邮箱验证码',
'accountSetting.newPhoneNumble': '新的手机号码',
'accountSetting.inputPhoneNumble': '请填写手机号',
'accountSetting.code': '验证码',
'accountSetting.inputCode': '请填写验证码',
'accountSetting.getVerificationCode': '获取验证码',
'accountSetting.clickVerify': '点击进行验证',
'accountSetting.verifyError': '验证失败',
'accountSetting.verifyRightSlide': '向右滑动验证',
'accountSetting.currentlyBoundPhoneNumble': '当前绑定手机号码',
'accountSetting.CurrentlyAuthenticatedMailbox': '当前已认证邮箱',
'accountSetting.notBoundEmail': '你还没有绑定邮箱',
'accountSetting.notSettingPsw': '您未设置支付密码',
'accountSetting.modify': '修改',
'accountSetting.setEmail': '设置邮箱',
'accountSetting.setPayPsw': '设置支付密码',
'accountSetting.resetPayPsw': '重置支付密码',
'accountSetting.verifyOk': '验证成功',
'accountSetting.submit': '提交',
'accountSetting.phoneCodeVerify': '手机校验码验证',
'accountSetting.emailVerify': '邮箱验证',
'accountSetting.payPswVerify': '支付密码验证',
'accountSetting.inputPayPsw': '请填写支付密码',
'accountSetting.payPsw': '支付密码',
'accountSetting.setSixNumblePsw': '请设置6位数字的密码',
'accountSetting.setNewPayPsw': '设置新的支付密码',
'accountSetting.back': '返回',
'accountSetting.modifyLoginPsw': '修改登录密码',
'accountSetting.modifyEmail': '修改邮箱',
'accountSetting.modifyPhone': '修改手机',
"accountSetting.French": "法国",
"accountSetting.mobileVerify": "手机验证",
"accountSetting.adviseChangePsw": "互联网账号存在被盗风险,建议您定期更改密码以保护账号安全",
"accountSetting.yourVerifyEmail": "您验证的邮箱:",
"accountSetting.yourVerifyPhone": "您验证的手机:",
"accountSetting.ifLossTochange": "若丢失或已停用,请立刻更换,避免账号被盗",
"accountSetting.pswStartToUpdate": "您的支付密码已开启,建议您定期更换新的支付密码,提高安全性"
}
\ No newline at end of file
'accountSetting.twoPasswordsDifferent': '两次密码不一样',
'accountSetting.inputCorrentPhoneNumble': '请填写正确的手机号',
'accountSetting.unvalidEmail': '无效的邮箱',
'accountSetting.loginPsw': '登录密码',
'accountSetting.pswLength': '密码长度8-20个字符',
'accountSetting.pswNotEmptySymbol': '密码不能包含空格',
'accountSetting.pswDiverse': '密码必须包含大小写、小写字母和数字',
'accountSetting.confirmPsw': '确认密码',
'accountSetting.emailAddress': '邮箱地址',
'accountSetting.emailCode': '邮箱验证码',
'accountSetting.inputEmailCode': '请填写邮箱验证码',
'accountSetting.newPhoneNumble': '新的手机号码',
'accountSetting.inputPhoneNumble': '请填写手机号',
'accountSetting.code': '验证码',
'accountSetting.inputCode': '请填写验证码',
'accountSetting.getVerificationCode': '获取验证码',
'accountSetting.clickVerify': '点击进行验证',
'accountSetting.verifyError': '验证失败',
'accountSetting.verifyRightSlide': '向右滑动验证',
'accountSetting.currentlyBoundPhoneNumble': '当前绑定手机号码',
'accountSetting.CurrentlyAuthenticatedMailbox': '当前已认证邮箱',
'accountSetting.notBoundEmail': '你还没有绑定邮箱',
'accountSetting.notSettingPsw': '您未设置支付密码',
'accountSetting.modify': '修改',
'accountSetting.setEmail': '设置邮箱',
'accountSetting.setPayPsw': '设置支付密码',
'accountSetting.resetPayPsw': '重置支付密码',
'accountSetting.verifyOk': '验证成功',
'accountSetting.submit': '提交',
'accountSetting.phoneCodeVerify': '手机校验码验证',
'accountSetting.emailVerify': '邮箱验证',
'accountSetting.payPswVerify': '支付密码验证',
'accountSetting.inputPayPsw': '请填写支付密码',
'accountSetting.payPsw': '支付密码',
'accountSetting.setSixNumblePsw': '请设置6位数字的密码',
'accountSetting.setNewPayPsw': '设置新的支付密码',
'accountSetting.back': '返回',
'accountSetting.modifyLoginPsw': '修改登录密码',
'accountSetting.modifyEmail': '修改邮箱',
'accountSetting.modifyPhone': '修改手机',
"accountSetting.French": "法国",
"accountSetting.mobileVerify": "手机验证",
"accountSetting.adviseChangePsw": "互联网账号存在被盗风险,建议您定期更改密码以保护账号安全",
"accountSetting.yourVerifyEmail": "您验证的邮箱:",
"accountSetting.yourVerifyPhone": "您验证的手机:",
"accountSetting.ifLossTochange": "若丢失或已停用,请立刻更换,避免账号被盗",
"accountSetting.pswStartToUpdate": "您的支付密码已开启,建议您定期更换新的支付密码,提高安全性",
'accountSetting.cardImage': '身份证照片',
'accountSetting.cardMessage': '请上传清晰完整的彩色原件照片,身份证各项信息可见和是必然。',
'accountSetting.cardFace': '人像面',
'accountSetting.emblem': '国徽面',
'accountSetting.cardInfo': '身份证信息',
'accountSetting.name': '姓名',
'accountSetting.cardNo': '身份证号码',
'accountSetting.cardLabel': '上传照片自动获取',
'accountSetting.certified': '未认证',
'accountSetting.certified1': '重新认证',
'accountSetting.certified2': '实名认证',
'accountSetting.certified3': '享受实名会员专属服务,提升个人账户安全信用度',
}
......@@ -8,29 +8,29 @@ import { ReactComponent as PasswordIcon } from '@/assets/securityIcons/password.
import { ReactComponent as PaycodeIcon } from '@/assets/securityIcons/paycode.svg';
import { ReactComponent as Realname } from '@/assets/securityIcons/realname.svg';
import Icon from '@ant-design/icons';
import { getIntl, useIntl} from 'umi'
import { getIntl, useIntl } from 'umi'
const intl = getIntl();
const TITLE_NAP = {
'loginPwd': {
title: `${intl.formatMessage({ id: 'accountSetting.loginPsw'})}`,
title: `${intl.formatMessage({ id: 'accountSetting.loginPsw' })}`,
desc: `${intl.formatMessage({ id: 'accountSetting.adviseChangePsw' })}`
},
'email': {
title: `${intl.formatMessage({ id: 'accountSetting.emailVerify'})}`,
title: `${intl.formatMessage({ id: 'accountSetting.emailVerify' })}`,
desc: `${intl.formatMessage({ id: 'accountSetting.yourVerifyEmail' })}{{email}}`
},
'phone': {
title: `${intl.formatMessage({ id: 'accountSetting.mobileVerify'})}`,
title: `${intl.formatMessage({ id: 'accountSetting.mobileVerify' })}`,
desc: `${intl.formatMessage({ id: 'accountSetting.yourVerifyPhone' })}{{phone}},${intl.formatMessage({ id: 'accountSetting.ifLossTochange' })}`
} ,
},
'paycode': {
title: `${intl.formatMessage({ id: 'accountSetting.payPsw'})}`,
title: `${intl.formatMessage({ id: 'accountSetting.payPsw' })}`,
desc: `${intl.formatMessage({ id: 'accountSetting.pswStartToUpdate' })}`
},
'realname': {
title: '实名认证',
desc: '享受实名会员专属服务,提升个人账户安全信用度'
title: intl.formatMessage({ id: 'accountSetting.certified2' }),
desc: intl.formatMessage({ id: 'accountSetting.certified3' })
}
}
......@@ -43,11 +43,11 @@ interface IProps {
}
const Icons = {
"loginPwd": <Icon component={() => <EmailIcon /> } />,
"email": <Icon component={() => <PasswordIcon /> } />,
"phone": <Icon component={() => <TelephoneIcon /> } />,
"paycode": <Icon component={() => <PaycodeIcon /> } />,
"realname": <Icon component={() => <Realname /> } />,
"loginPwd": <Icon component={() => <EmailIcon />} />,
"email": <Icon component={() => <PasswordIcon />} />,
"phone": <Icon component={() => <TelephoneIcon />} />,
"paycode": <Icon component={() => <PaycodeIcon />} />,
"realname": <Icon component={() => <Realname />} />,
}
const TypeVerify: React.FC<IProps> = (props) => {
......@@ -57,23 +57,23 @@ const TypeVerify: React.FC<IProps> = (props) => {
return TITLE_NAP[type].title
}
const descRender = () => {
if(type == 'email' && email == '') {
if (type == 'email' && email == '') {
return intl.formatMessage({ id: 'accountSetting.notBoundEmail' })
} else if(type == 'paycode' && paycode == 0) {
} else if (type == 'paycode' && paycode == 0) {
return intl.formatMessage({ id: 'accountSetting.notSettingPsw' })
}
return TITLE_NAP[type].desc.replace(/\{\{(.*?)\}\}/, (match, key) => { return props[key] });
return TITLE_NAP[type].desc.replace(/\{\{(.*?)\}\}/, (match, key) => { return props[key] });
}
const renderLink = () => {
let title = intl.formatMessage({ id: 'accountSetting.modify' });
if(type == 'email' && email == '') {
if (type == 'email' && email == '') {
title = intl.formatMessage({ id: 'accountSetting.setEmail' })
} else if(type == 'paycode') {
} else if (type == 'paycode') {
title = paycode == 0 ? intl.formatMessage({ id: 'accountSetting.setPayPsw' }) : intl.formatMessage({ id: 'accountSetting.resetPayPsw' })
} else if (type == 'realname') {
title = isAuth == 1 ? '未认证' : '重新认证'
title = isAuth == 1 ? intl.formatMessage({ id: 'accountSetting.certified' }) : intl.formatMessage({ id: 'accountSetting.certified1' })
}
return <Link to={`/memberCenter/systemSetting/accountSetting/${type}`}>{title}</Link>
}
......
......@@ -37,6 +37,7 @@ const RealnameLayout = () => {
const data = {
...info,
frontUrl: front,
backUrl: info?.backUrl,
}
setTerm(true)
setInfo(data);
......@@ -132,20 +133,20 @@ const RealnameLayout = () => {
<PageHeaderWrapper
onBack={() => history.goBack()}
backIcon={<ReutrnEle description={intl.formatMessage({ id: 'accountSetting.back' })} />}
extra={<Button loading={loading} disabled={disabled} type='primary' onClick={handleSubmit}>提交</Button>}
extra={<Button loading={loading} disabled={disabled} type='primary' onClick={handleSubmit}>{intl.formatMessage({ id: 'accountSetting.submit' })}</Button>}
>
<Card style={{ marginBottom: '16px' }}>
<div className={styles.r_title}>身份证照片</div>
<div className={styles.r_text}>请上传清晰完整的彩色原件照片,身份证各项信息可见和是必然。</div>
<div className={styles.r_title}>{intl.formatMessage({ id: 'accountSetting.cardImage' })}</div>
<div className={styles.r_text}>{intl.formatMessage({ id: 'accountSetting.cardMessage' })}</div>
<div className={styles.r_body}>
<div className={styles.r_cardFile}>
<div className={styles.r_fileLayout}>
{info?.frontUrl ? (
<div className={styles.r_imageBox}>
<div className={styles.r_clear} onClick={() => handleCircle('frontUrl')}>
<CloseSquareFilled style={styles.r_clearicon} />
<CloseSquareFilled className={styles.r_clearicon} />
</div>
<Image src={info?.frontUrl} />
<Image width='100%' height='100%' src={info?.frontUrl} />
</div>
) : (
<div className={styles.r_imageBox}>
......@@ -155,21 +156,21 @@ const RealnameLayout = () => {
accept=".png,.jpg"
onChange={handleFrontUrl}
>
<Image preview={false} src={card_ortho} />
<Image height='100%' preview={false} src={card_ortho} />
</Upload>
</div>
)}
</div>
<div className={styles.r_fileText}>人像面</div>
<div className={styles.r_fileText}>{intl.formatMessage({ id: 'accountSetting.cardFace' })}</div>
</div>
<div className={styles.r_cardFile}>
<div className={styles.r_fileLayout}>
{info?.backUrl ? (
<div className={styles.r_imageBox}>
<div className={styles.r_clear} onClick={() => handleCircle('backUrl')}>
<CloseSquareFilled />
<CloseSquareFilled className={styles.r_clearicon} />
</div>
<Image src={info?.backUrl} />
<Image width='100%' height='100%' src={info?.backUrl} />
</div>
) : (
<div className={styles.r_imageBox}>
......@@ -179,24 +180,24 @@ const RealnameLayout = () => {
accept=".png,.jpg"
onChange={handleBackUrl}
>
<Image preview={false} src={card_inverse} />
<Image height='100%' preview={false} src={card_inverse} />
</Upload>
</div>
)}
</div>
<div className={styles.r_fileText}>国徽面</div>
<div className={styles.r_fileText}>{intl.formatMessage({ id: 'accountSetting.emblem' })}</div>
</div>
</div>
</Card>
<Card style={{ marginBottom: '16px' }}>
<div className={styles.r_title}>身份证信息</div>
<div className={styles.r_title}>{intl.formatMessage({ id: 'accountSetting.cardInfo' })}</div>
<div className={styles.r_item}>
<div className={styles.r_lable}>姓名</div>
<div className={styles.r_value}>{info?.name || '上传照片自动获取'}</div>
<div className={styles.r_lable}>{intl.formatMessage({ id: 'accountSetting.name' })}</div>
<div className={styles.r_value}>{info?.name || intl.formatMessage({ id: 'accountSetting.cardLabel' })}</div>
</div>
<div className={styles.r_item}>
<div className={styles.r_lable}>身份证号码</div>
<div className={styles.r_value}>{info?.cardNo || '上传照片自动获取'}</div>
<div className={styles.r_lable}>{intl.formatMessage({ id: 'accountSetting.cardNo' })}</div>
<div className={styles.r_value}>{info?.cardNo || intl.formatMessage({ id: 'accountSetting.cardLabel' })}</div>
</div>
</Card>
</PageHeaderWrapper>
......
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