dev_aliyun
杨树明 5 years ago
parent 7c02fbab01
commit 1905e6419a

@ -82,7 +82,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,
contact_name:data.contact_name==null?this.props.current_user.username:data.contact_name,
phones:data.contact_phone,
attachments:data.attachments,
@ -91,6 +91,10 @@ class PackageIndexNEIBannerConcent extends Component {
console.log(error);
})
}else{
this.setState({
contact_name:this.props.current_user.username
})
}
let Url = `/api/v1/project_package_categories.json`;
@ -378,6 +382,7 @@ class PackageIndexNEIBannerConcent extends Component {
return
}
if(contact_name===undefined||contact_name===""||contact_name===null){
this.setState({
contact_nametype:true

Loading…
Cancel
Save