Skip to content

Commit

Permalink
feat: modify the registration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
b3aton committed Sep 5, 2022
1 parent 7d3fa07 commit 8113739
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/storefront/src/locales/zh-CN/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
'intl.global.button.finish': '完成',

'intl.global.validate.required': '{label}是必填的',
'intl.global.validate.password.required': '您必须输入密码',

'intl.global.fileUpload.defaultText': '拖放文件或浏览',
'intl.global.fileUpload.typeNotSupport': '{name}文件类型不支持',
Expand Down
14 changes: 14 additions & 0 deletions apps/storefront/src/locales/zh-CN/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,18 @@ export default {

// register components
'intl.user.register.RegisteredSingleCheckBox.label': '电子邮件营销通讯',

// login
'intl.user.login.loginTipInfo.resetPassword': '您必须重置密码才能再次登录。请在{email}查看您的电子邮件以重置密码',
'intl.user.login.loginTipInfo.receivePassword': '如果输入的电子邮件地址与此存储关联,您将收到一封密码重置电子邮件。如果您没有收到此电子邮件,请检查您的垃圾邮件文件夹或与我们联系以获得进一步帮助。',
'intl.user.login.loginTipInfo.loggedOutLogin': '您已成功注销帐户。',
'intl.user.login.loginTipInfo.accountincorrect': '您的电子邮件地址或密码不正确。请重试。如果您忘记了登录详细信息,只需单击“忘记密码”链接如下:',

'intl.user.login.loginText.forgotPasswordText': '忘记密码?',
'intl.user.login.loginText.emailAddress': '电子邮件地址',
'intl.user.login.loginText.password': '密码',

'intl.user.forgot.forgotText.resetPassword': '重置密码',
'intl.user.forgot.forgotText.requestEmail': '填写下面的电子邮件以请求新密码。将向以下地址发送一封电子邮件,其中包含验证您电子邮件地址的链接。',
'intl.user.forgot.forgotText.resetPasswordBtn': '重置密码',
}
1 change: 1 addition & 0 deletions apps/storefront/src/pages/registered/Registered.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export default function Registered(props: RegisteredProps) {
isOpen: false,
openUrl: '',
})
window.location.reload()
}
clearRegisterInfo()
} catch (error) {
Expand Down
1 change: 1 addition & 0 deletions apps/storefront/src/pages/registered/RegisteredBCToB2B.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ export default function RegisteredBCToB2B(props: RegisteredProps) {
isOpen: false,
openUrl: '',
})
window.location.reload()
}
}
} catch (err: any) {
Expand Down
2 changes: 2 additions & 0 deletions apps/storefront/src/pages/registered/RegisteredDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ export default function RegisteredDetail(props: RegisteredDetailProps) {
type: 'stateList',
payload: {
stateList,
addressBasicFields,
bcAddressBasicFields,
[addressBasicName]: [...addressBasicList],
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const reducer = (state: RegisterState, action: RegisterAction) => {
...state,
stateList: action.payload.stateList,
addressBasicFields: action.payload.addressBasicFields,
bcAddressBasicFields: action.payload.bcAddressBasicFields,
}
case 'finishInfo':
return {
Expand Down

0 comments on commit 8113739

Please sign in to comment.