fix AtMessage bug in repair page
parent
6cd27cce10
commit
2f6b98b43f
|
|
@ -5,9 +5,10 @@ import {
|
||||||
AtForm,
|
AtForm,
|
||||||
AtInput,
|
AtInput,
|
||||||
AtButton,
|
AtButton,
|
||||||
AtRadio,
|
|
||||||
AtCheckbox,
|
AtCheckbox,
|
||||||
AtCard,
|
AtCard,
|
||||||
|
AtSegmentedControl,
|
||||||
|
AtMessage,
|
||||||
} from 'taro-ui';
|
} from 'taro-ui';
|
||||||
import pt from '@/plain-text';
|
import pt from '@/plain-text';
|
||||||
import PageFooter from '@/components/PageFooter/PageFooter';
|
import PageFooter from '@/components/PageFooter/PageFooter';
|
||||||
|
|
@ -139,19 +140,20 @@ export default class RepairPage extends Component<{}, RepairPageState> {
|
||||||
render(): ReactNode {
|
render(): ReactNode {
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
|
<AtMessage />
|
||||||
<AtCard
|
<AtCard
|
||||||
note={pt.get().repairPage.cardText.note}
|
note={pt.get().repairPage.cardText.note}
|
||||||
title={pt.get().repairPage.cardText.title}
|
title={pt.get().repairPage.cardText.title}
|
||||||
thumb={repairLogo}
|
thumb={repairLogo}
|
||||||
>
|
>
|
||||||
<AtForm onSubmit={this.onSubmit.bind(this)}>
|
<AtForm onSubmit={this.onSubmit.bind(this)}>
|
||||||
<AtRadio
|
<AtSegmentedControl
|
||||||
options={[
|
values={[
|
||||||
{ label: pt.get().repairPage.typeText.appliance, value: 0 },
|
pt.get().repairPage.typeText.appliance,
|
||||||
{ label: pt.get().repairPage.typeText.computer, value: 1 },
|
pt.get().repairPage.typeText.computer,
|
||||||
]}
|
]}
|
||||||
value={this.state.type}
|
|
||||||
onClick={this.handleTypeChange.bind(this)}
|
onClick={this.handleTypeChange.bind(this)}
|
||||||
|
current={this.state.type}
|
||||||
/>
|
/>
|
||||||
<AtInput
|
<AtInput
|
||||||
clear
|
clear
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue