dev_aliyun
杨树明 6 years ago
parent ea5cee0c03
commit 1e6b1d669d

@ -81,10 +81,15 @@ class PackageIndexNEIBannerConcent extends Component {
let Url = `/api/v1/project_package_categories.json`; let Url = `/api/v1/project_package_categories.json`;
axios.get(Url).then((response) => { axios.get(Url).then((response) => {
console.log(response) // console.log(response)
this.setState({ if(response.data.status===-1){
categories:response.data.categories
}) }else{
this.setState({
categories:response.data.categories
})
}
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
}) })
@ -546,17 +551,19 @@ class PackageIndexNEIBannerConcent extends Component {
onChangemin_prices=(e)=>{ onChangemin_prices=(e)=>{
this.props.setcheckout()
this.setState({ this.setState({
min_price:e.target.value min_price:e.target.value
}) })
this.setcheckout()
} }
onChangemax_prices=(e)=>{ onChangemax_prices=(e)=>{
this.props.setcheckout()
this.setState({ this.setState({
max_price:e.target.value max_price:e.target.value
}) })
this.setcheckout()
} }
onChangeContact_name=(e)=>{ onChangeContact_name=(e)=>{
@ -741,10 +748,10 @@ class PackageIndexNEIBannerConcent extends Component {
<span className="shaiTitle fl mt5 ml10">竞标截止</span> <span className="shaiTitle fl mt5 ml10">竞标截止</span>
<DatePicker <DatePicker
showToday={false} showToday={false}
showTime showTime={{ format: 'HH:mm' }}
locale={locale} locale={locale}
style={{"width": "260px"}} style={{"width": "260px"}}
format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm"
placeholder="请选择任务的竞标截止日期" placeholder="请选择任务的竞标截止日期"
className={"fafas"} className={"fafas"}
value={this.state.deadline_at} value={this.state.deadline_at}

Loading…
Cancel
Save