|
@@ -163,51 +163,54 @@ export default class FormAddress extends Component {
|
|
|
//const { getFieldProps } = this.props.form;
|
|
//const { getFieldProps } = this.props.form;
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
- <form>
|
|
|
|
|
- <List renderHeader={''} >
|
|
|
|
|
- <InputItem
|
|
|
|
|
- placeholder="姓名"
|
|
|
|
|
- value={this.state.name}
|
|
|
|
|
- onChange={(e)=>{this.nameChange(e)}}
|
|
|
|
|
- >收货人</InputItem>
|
|
|
|
|
- <InputItem
|
|
|
|
|
- type="phone"
|
|
|
|
|
- placeholder="手机号码"
|
|
|
|
|
- value={this.state.phone}
|
|
|
|
|
- onChange={(e)=>{this.phoneChange(e)}}
|
|
|
|
|
- >手机号码</InputItem>
|
|
|
|
|
-
|
|
|
|
|
- <div className='pickerWrap' style={this.state.areaShow ? {}:{display:""}}>
|
|
|
|
|
- <List style={{ backgroundColor: 'white' }} className="picker-list">
|
|
|
|
|
- <Picker extra={this.state.province+this.state.city+this.state.area}
|
|
|
|
|
- data={district}
|
|
|
|
|
- title="Areas"
|
|
|
|
|
- onOk={e => console.log('ok', e)}
|
|
|
|
|
- onDismiss={e => this.areaChange(e)}
|
|
|
|
|
- onPickerChange={e=> this.areaChange(e)}
|
|
|
|
|
- indicatorStyle={{position:"absolute",bottom:"0",left:"0"}}
|
|
|
|
|
- >
|
|
|
|
|
- <List.Item arrow="horizontal">点击选择地区</List.Item>
|
|
|
|
|
- </Picker>
|
|
|
|
|
- </List>
|
|
|
|
|
- </div>
|
|
|
|
|
- <InputItem
|
|
|
|
|
- placeholder="详细地址"
|
|
|
|
|
- value={this.state.detail}
|
|
|
|
|
- onChange={(e)=>{this.detailChange(e)}}
|
|
|
|
|
- >详细地址</InputItem>
|
|
|
|
|
- <InputItem
|
|
|
|
|
- type="number"
|
|
|
|
|
- placeholder="邮编"
|
|
|
|
|
- value={this.state.code}
|
|
|
|
|
- maxLength={6}
|
|
|
|
|
- onChange={(e)=>{this.codeChange(e)}}
|
|
|
|
|
- >邮编</InputItem>
|
|
|
|
|
|
|
+ <div style={{marginTop:"50px"}}>
|
|
|
|
|
+ <List renderHeader={''} >
|
|
|
|
|
+ <InputItem
|
|
|
|
|
+ placeholder="姓名"
|
|
|
|
|
+ value={this.state.name}
|
|
|
|
|
+ onChange={(e)=>{this.nameChange(e)}}
|
|
|
|
|
+ >收货人</InputItem>
|
|
|
|
|
+ <div style={{marginTop:"15px"}}></div>
|
|
|
|
|
+ <InputItem
|
|
|
|
|
+ type="phone"
|
|
|
|
|
+ placeholder="手机号码"
|
|
|
|
|
+ value={this.state.phone}
|
|
|
|
|
+ onChange={(e)=>{this.phoneChange(e)}}
|
|
|
|
|
+ >手机号码</InputItem>
|
|
|
|
|
+ <div style={{marginTop:"15px"}}></div>
|
|
|
|
|
+
|
|
|
|
|
+ <div className='pickerWrap' style={this.state.areaShow ? {}:{display:""}}>
|
|
|
|
|
+ <List style={{ backgroundColor: 'white' }} className="picker-list">
|
|
|
|
|
+ <Picker extra={this.state.province+this.state.city+this.state.area}
|
|
|
|
|
+ data={district}
|
|
|
|
|
+ title="Areas"
|
|
|
|
|
+ onOk={e => console.log('ok', e)}
|
|
|
|
|
+ onDismiss={e => this.areaChange(e)}
|
|
|
|
|
+ onPickerChange={e=> this.areaChange(e)}
|
|
|
|
|
+ indicatorStyle={{position:"absolute",bottom:"0",left:"0"}}
|
|
|
|
|
+ >
|
|
|
|
|
+ <List.Item arrow="horizontal">点击选择地区</List.Item>
|
|
|
|
|
+ </Picker>
|
|
|
</List>
|
|
</List>
|
|
|
- <Button type="primary" onClick={this.submit}>提交</Button><WhiteSpace />
|
|
|
|
|
- </form>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style={{marginTop:"15px"}}></div>
|
|
|
|
|
+ <InputItem
|
|
|
|
|
+ placeholder="详细地址"
|
|
|
|
|
+ value={this.state.detail}
|
|
|
|
|
+ onChange={(e)=>{this.detailChange(e)}}
|
|
|
|
|
+ >详细地址</InputItem>
|
|
|
|
|
+ <div style={{marginTop:"15px"}}></div>
|
|
|
|
|
+ <InputItem
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ placeholder="邮编"
|
|
|
|
|
+ value={this.state.code}
|
|
|
|
|
+ maxLength={6}
|
|
|
|
|
+ onChange={(e)=>{this.codeChange(e)}}
|
|
|
|
|
+ >邮编</InputItem>
|
|
|
|
|
+ </List>
|
|
|
|
|
+
|
|
|
|
|
+ <div style={{width:'100%',display:'flex',justifyContent:'center'}}><div style={{width:'256px'}}><Button type="primary" onClick={this.submit}>提交</Button></div></div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|