optimize pt structure
This commit is contained in:
@@ -33,7 +33,7 @@ export default class InformPage extends Component {
|
||||
isLoading: false,
|
||||
});
|
||||
Taro.atMessage({
|
||||
message: pt.get().informPage.submitSuccessText,
|
||||
message: pt.get().informPage.submitText.success,
|
||||
type: 'success',
|
||||
});
|
||||
setTimeout(() => {
|
||||
@@ -58,18 +58,18 @@ export default class InformPage extends Component {
|
||||
<AtMessage />
|
||||
<AtInput
|
||||
name='phone'
|
||||
title={pt.get().informPage.phoneTitleText}
|
||||
title={pt.get().informPage.phoneText.title}
|
||||
type='text'
|
||||
placeholder={pt.get().informPage.phonePlaceholderText}
|
||||
placeholder={pt.get().informPage.phoneText.placeholder}
|
||||
value={this.state.phone}
|
||||
onChange={this.handleChangePhone.bind(this)}
|
||||
/>
|
||||
<AtInput
|
||||
required
|
||||
name='name'
|
||||
title={pt.get().informPage.nameTitleText}
|
||||
title={pt.get().informPage.nameText.title}
|
||||
type='text'
|
||||
placeholder={pt.get().informPage.namePlaceholderText}
|
||||
placeholder={pt.get().informPage.nameText.placeholder}
|
||||
value={this.state.name}
|
||||
onChange={this.handleChangeName.bind(this)}
|
||||
/>
|
||||
@@ -79,10 +79,10 @@ export default class InformPage extends Component {
|
||||
type='primary'
|
||||
disabled={this.state.isDisable}
|
||||
>
|
||||
{pt.get().informPage.submitText}
|
||||
{pt.get().informPage.buttonText.submit}
|
||||
</AtButton>
|
||||
<AtButton formType='reset' type='secondary'>
|
||||
{pt.get().informPage.resetText}
|
||||
{pt.get().informPage.buttonText.reset}
|
||||
</AtButton>
|
||||
</AtForm>
|
||||
);
|
||||
|
||||
@@ -58,10 +58,10 @@ export default class SettingsPage extends Component {
|
||||
type='primary'
|
||||
disabled={this.state.isDisable}
|
||||
>
|
||||
{pt.get().reportPage.submitText}
|
||||
{pt.get().reportPage.buttonText.submit}
|
||||
</AtButton>
|
||||
<AtButton formType='reset' type='secondary'>
|
||||
{pt.get().reportPage.resetText}
|
||||
{pt.get().reportPage.buttonText.reset}
|
||||
</AtButton>
|
||||
</AtForm>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user