optimize pt structure

This commit is contained in:
Dawn_Ocean
2024-03-07 20:41:46 +08:00
parent 0a98ea71ac
commit 74f644b3ee
4 changed files with 66 additions and 36 deletions
+7 -7
View File
@@ -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>
);
+2 -2
View File
@@ -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>
);