dev_aliyun
杨树明 5 years ago
parent 0d48fc638a
commit 19db3bbe17

@ -66,6 +66,13 @@ class PackageIndexNEIBannerConcent extends Component {
categories:[]
}
}
componentDidUpdate = (prevProps) => {
if(prevProps.current_user.username!=this.props.current_user.username){
this.setState({
contact_name:this.props.current_user.username
})
}
}
componentDidMount() {
@ -82,7 +89,7 @@ class PackageIndexNEIBannerConcent extends Component {
deadline_at:moment(data.deadline_at),
min_price:data.min_price,
max_price:data.max_price,
contact_name:data.contact_name==null?this.props.current_user.username:data.contact_name,
contact_name:data.contact_name==null||data.contact_name==undefined?this.props.current_user.username:data.contact_name,
phones:data.contact_phone,
attachments:data.attachments,

Loading…
Cancel
Save