diff --git a/src/locale/en-US.js b/src/locale/en-US.js index a73fb32fa50300ea772fb7ad607ec1cba1e41b42..95407f0af89e11577b9f5bf5c754992c6f756763 100644 --- a/src/locale/en-US.js +++ b/src/locale/en-US.js @@ -108,6 +108,27 @@ export default { 'app.settings.security.mfa': 'MFA Device', 'app.settings.security.mfa-description': 'Unbound MFA device, after binding, can be confirmed twice', + 'app.settings.security.modify': 'Modify', + 'app.settings.security.set': 'Set', + 'app.settings.security.bind': 'Bind', + 'app.settings.binding.taobao': 'Binding Taobao', + 'app.settings.binding.taobao-description': 'Currently unbound Taobao account', + 'app.settings.binding.alipay': 'Binding Alipay', + 'app.settings.binding.alipay-description': 'Currently unbound Alipay account', + 'app.settings.binding.dingding': 'Binding DingTalk', + 'app.settings.binding.dingding-description': 'Currently unbound DingTalk account', + 'app.settings.binding.bind': 'Bind', + 'app.settings.notification.password': 'Account Password', + 'app.settings.notification.password-description': + 'Messages from other users will be notified in the form of a station letter', + 'app.settings.notification.messages': 'System Messages', + 'app.settings.notification.messages-description': + 'System messages will be notified in the form of a station letter', + 'app.settings.notification.todo': 'To-do Notification', + 'app.settings.notification.todo-description': + 'The to-do list will be notified in the form of a letter from the station', + 'app.settings.open': 'Open', + 'app.settings.close': 'Close', // ...enMessages, }, }; diff --git a/src/locale/zh-CN.js b/src/locale/zh-CN.js index c1f7c347d973b065302bff29177d697162f29124..059c53144cab87c6d117e5f2cc287b6f435b9a23 100644 --- a/src/locale/zh-CN.js +++ b/src/locale/zh-CN.js @@ -105,6 +105,25 @@ export default { 'app.settings.security.email-description': '已绑定邮箱:', 'app.settings.security.mfa': 'MFA 设备', 'app.settings.security.mfa-description': '未绑定 MFA 设备,绑定后,可以进行二次确认', + 'app.settings.security.modify': '修改', + 'app.settings.security.set': '设置', + 'app.settings.security.bind': '绑定', + 'app.settings.binding.taobao': '绑定淘宝', + 'app.settings.binding.taobao-description': '当前未绑定淘宝账号', + 'app.settings.binding.alipay': '绑定支付宝', + 'app.settings.binding.alipay-description': '当前未绑定支付宝账号', + 'app.settings.binding.dingding': '绑定钉钉', + 'app.settings.binding.dingding-description': '当前未绑定钉钉账号', + 'app.settings.binding.bind': '绑定', + 'app.settings.notification.password': '账户密码', + 'app.settings.notification.password-description': '其他用户的消息将以站内信的形式通知', + 'app.settings.notification.messages': '系统消息', + 'app.settings.notification.messages-description': '系统消息将以站内信的形式通知', + 'app.settings.notification.todo': '账户密码', + 'app.settings.notification.todo-description': '账户密码', + 'app.settings.open': '开', + 'app.settings.close': '关', + // ...zhMessages, }, }; diff --git a/src/pages/Account/Settings/BaseView.js b/src/pages/Account/Settings/BaseView.js index f2dd1cf15b48b97976c314c3174c70db0ff4606b..38b00980091889d8bcb4f7417c0f8b428ce3193b 100644 --- a/src/pages/Account/Settings/BaseView.js +++ b/src/pages/Account/Settings/BaseView.js @@ -54,28 +54,6 @@ const validatorPhone = (rule, value, callback) => { })) @Form.create() class BaseView extends Component { - constructor(props) { - super(props); - const { intl } = props; - this.formLabelData = { - email: intl.formatMessage({ id: 'app.settings.basic.email' }, {}), - emailMessage: intl.formatMessage({ id: 'app.settings.basic.email-message' }, {}), - nickname: intl.formatMessage({ id: 'app.settings.basic.nickname' }, {}), - nicknameMessage: intl.formatMessage({ id: 'app.settings.basic.nickname-message' }, {}), - profile: intl.formatMessage({ id: 'app.settings.basic.profile' }, {}), - profileMessage: intl.formatMessage({ id: 'app.settings.basic.profile-message' }, {}), - profilePlaceholder: intl.formatMessage({ id: 'app.settings.basic.profile-placeholder' }, {}), - country: intl.formatMessage({ id: 'app.settings.basic.country' }, {}), - countryMessage: intl.formatMessage({ id: 'app.settings.basic.country-message' }, {}), - geographic: intl.formatMessage({ id: 'app.settings.basic.geographic' }, {}), - geographicMessage: intl.formatMessage({ id: 'app.settings.basic.geographic-message' }, {}), - address: intl.formatMessage({ id: 'app.settings.basic.address' }, {}), - addressMessage: intl.formatMessage({ id: 'app.settings.basic.address-message' }, {}), - phone: intl.formatMessage({ id: 'app.settings.basic.phone' }, {}), - phoneMessage: intl.formatMessage({ id: 'app.settings.basic.phone-message' }, {}), - }; - } - componentDidMount() { this.setBaseInfo(); } @@ -105,41 +83,73 @@ class BaseView extends Component { render() { const { form: { getFieldDecorator }, + intl, } = this.props; return (