add partial localization for inform page
This commit is contained in:
@@ -2,6 +2,7 @@ import { Component, ReactNode } from 'react';
|
||||
import { AtForm, AtInput, AtButton, AtMessage } from 'taro-ui';
|
||||
import './inform.scss';
|
||||
import Taro from '@tarojs/taro';
|
||||
import pt from '@/plain-text';
|
||||
|
||||
export default class InformPage extends Component {
|
||||
state = {
|
||||
@@ -32,7 +33,7 @@ export default class InformPage extends Component {
|
||||
isLoading: false,
|
||||
});
|
||||
Taro.atMessage({
|
||||
message: '提交成功',
|
||||
message: pt.get().informPage.submitSuccessText,
|
||||
type: 'success',
|
||||
});
|
||||
setTimeout(() => {
|
||||
@@ -57,18 +58,18 @@ export default class InformPage extends Component {
|
||||
<AtMessage />
|
||||
<AtInput
|
||||
name='phone'
|
||||
title='手机号码'
|
||||
title={pt.get().informPage.phoneTitleText}
|
||||
type='text'
|
||||
placeholder='便于查询工单'
|
||||
placeholder={pt.get().informPage.phonePlaceholderText}
|
||||
value={this.state.phone}
|
||||
onChange={this.handleChangePhone.bind(this)}
|
||||
/>
|
||||
<AtInput
|
||||
required
|
||||
name='name'
|
||||
title='真实姓名'
|
||||
title={pt.get().informPage.nameTitleText}
|
||||
type='text'
|
||||
placeholder='必填,与工单绑定'
|
||||
placeholder={pt.get().informPage.namePlaceholderText}
|
||||
value={this.state.name}
|
||||
onChange={this.handleChangeName.bind(this)}
|
||||
/>
|
||||
@@ -78,10 +79,10 @@ export default class InformPage extends Component {
|
||||
type='primary'
|
||||
disabled={this.state.isDisable}
|
||||
>
|
||||
提交
|
||||
{pt.get().informPage.submitText}
|
||||
</AtButton>
|
||||
<AtButton formType='reset' type='secondary'>
|
||||
清空
|
||||
{pt.get().informPage.resetText}
|
||||
</AtButton>
|
||||
</AtForm>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user