beautify member page layout
This commit is contained in:
@@ -24,7 +24,7 @@ class CardContent {
|
|||||||
|
|
||||||
function memberPageCard(c: CardContent): JSX.Element {
|
function memberPageCard(c: CardContent): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<View style={{ marginTop: '20rpx' }}>
|
<View style={{ marginTop: '20rpx', marginBottom: '40rpx' }}>
|
||||||
<AtCard note={c.note} extra={c.extra} title={c.title}>
|
<AtCard note={c.note} extra={c.extra} title={c.title}>
|
||||||
{c.content()}
|
{c.content()}
|
||||||
</AtCard>
|
</AtCard>
|
||||||
@@ -124,6 +124,7 @@ export default class MemberPage extends Component<{}, MemberPageState> {
|
|||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
<MemberTitleCard />
|
<MemberTitleCard />
|
||||||
|
<View style={{ width: '94%', marginLeft: '3%' }}>
|
||||||
<View style={{ marginTop: '60rpx' }}>
|
<View style={{ marginTop: '60rpx' }}>
|
||||||
{memberPageCard(this.state.dutyInfoCard)}
|
{memberPageCard(this.state.dutyInfoCard)}
|
||||||
{memberPageCard(this.state.tipsInfoCard)}
|
{memberPageCard(this.state.tipsInfoCard)}
|
||||||
@@ -135,6 +136,7 @@ export default class MemberPage extends Component<{}, MemberPageState> {
|
|||||||
<AtList>{fixListRenderer}</AtList>
|
<AtList>{fixListRenderer}</AtList>
|
||||||
<PageFooter />
|
<PageFooter />
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ export default class InformPage extends Component {
|
|||||||
this.setState({
|
this.setState({
|
||||||
isDisable: true,
|
isDisable: true,
|
||||||
});
|
});
|
||||||
console.log(this.state.name, this.state.phone);
|
|
||||||
if (this.state.name == '' || this.state.phone == '') {
|
if (this.state.name == '' || this.state.phone == '') {
|
||||||
Taro.atMessage({
|
Taro.atMessage({
|
||||||
message: pt.get().button.submitText.blank,
|
message: pt.get().button.submitText.blank,
|
||||||
|
|||||||
Reference in New Issue
Block a user