diff --git a/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js b/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js index b4970651..9f148521 100644 --- a/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js +++ b/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js @@ -48,20 +48,20 @@ class PackageIndexNEITaskDetails extends Component { } componentDidMount() { + this.getdatas() + } - let url =`/api/v1/project_packages/${this.props.match.params.id}.json`; - axios.get(url).then((response) => { - this.setState({ + getdatas=()=>{ + let url =`/api/v1/project_packages/${this.props.match.params.id}.json`; + axios.get(url).then((response) => { + this.setState({ data:response.data }) - }).catch((error) => { - console.log(error); - - }) - - } - + }).catch((error) => { + console.log(error); + }) + } setbiddingman=()=>{ this.setState({ @@ -212,6 +212,7 @@ class PackageIndexNEITaskDetails extends Component { axios.post(url).then((response) => { if(response.data.status===0){ this.props.showSnackbar("报名成功"); + this.getdatas() } }).catch((error) => { console.log(error) @@ -268,9 +269,10 @@ class PackageIndexNEITaskDetails extends Component {
- + + +
{data&&data.creator.name}
@@ -383,7 +385,7 @@ class PackageIndexNEITaskDetails extends Component { {data&&data.bidding_users.map((item,key)=>{ return(
- +

{item.name}

{this.props.current_user.login!=item.login? 头像联系TA @@ -428,7 +430,7 @@ class PackageIndexNEITaskDetails extends Component { return(
this.Clickteacher2(item.id)}> {item.bool===true?:} - +

{item.name}

) diff --git a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js index fbbc6899..1f0ab6b7 100644 --- a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js +++ b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js @@ -209,7 +209,7 @@ class PackageIndexNEIBannerConcent extends Component { let {min_price,max_price}=this.state; - if(min_price===undefined||max_price===undefined){ + if(min_price===undefined){ this.setState({ min_pricetype:true }) @@ -231,19 +231,19 @@ class PackageIndexNEIBannerConcent extends Component { }) } - if(parseInt(max_price)===undefined||parseInt(max_price)===null||parseInt(max_price)===""){ - - this.setState({ - min_pricetype:true - }) - - }else{ - this.setState({ - min_pricetype:false - }) - } - - if(parseInt(min_price)<=0||parseInt(max_price)<=0){ + // if(parseInt(max_price)===undefined||parseInt(max_price)===null||parseInt(max_price)===""){ + // + // this.setState({ + // min_pricetype:true + // }) + // + // }else{ + // this.setState({ + // min_pricetype:false + // }) + // } + + if(parseInt(min_price)<=0){ this.setState({ smallstype:true }) @@ -317,7 +317,7 @@ class PackageIndexNEIBannerConcent extends Component { return } - if(min_price===undefined||max_price===undefined){ + if(min_price===undefined){ this.setState({ min_pricetype:true }) @@ -334,14 +334,14 @@ class PackageIndexNEIBannerConcent extends Component { return } - if(parseInt(max_price)===undefined||parseInt(max_price)===null||parseInt(max_price)===""){ - this.setState({ - min_pricetype:true - }) - return - } + // if(parseInt(max_price)===undefined||parseInt(max_price)===null||parseInt(max_price)===""){ + // this.setState({ + // min_pricetype:true + // }) + // return + // } - if(parseInt(min_price)<=0||parseInt(max_price)<=0){ + if(parseInt(min_price)<=0){ this.setState({ smallstype:true }) diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index d9765ef5..fd689b81 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -358,6 +358,7 @@ class NewHeader extends Component {
  • 我的实训
  • 我的实践课程
  • 我的项目
  • +
  • 我的众包
  • 账号管理
  • 退出