|
|
|
@ -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 {
|
|
|
|
|
<div className="project-package-item project-package-items height185">
|
|
|
|
|
<div className="item-image">
|
|
|
|
|
<div className="fl edu-back-white ">
|
|
|
|
|
<img alt="头像" className="radius mt10 ml5" height="70" id="nh_user_logo" name="avatar_image"
|
|
|
|
|
src={data&&data.creator.avatar_url}
|
|
|
|
|
width="70"/>
|
|
|
|
|
<a href={`/users/${data&&data.creator.login}`}>
|
|
|
|
|
<img alt="头像" className="radius mt10 ml5" height="70" id="nh_user_logo" name="avatar_image"
|
|
|
|
|
src={data&&data.creator.avatar_url} width="70"/>
|
|
|
|
|
</a>
|
|
|
|
|
<div className=" edu-back-white ml28 mt10 ">
|
|
|
|
|
{data&&data.creator.name}
|
|
|
|
|
</div>
|
|
|
|
@ -383,7 +385,7 @@ class PackageIndexNEITaskDetails extends Component {
|
|
|
|
|
{data&&data.bidding_users.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="ysldivhomediv1 homehove">
|
|
|
|
|
<img className="div1img" src={item.avatar_url}/>
|
|
|
|
|
<a href={`/users/${item.login}`}><img className="div1img" src={item.avatar_url}/></a>
|
|
|
|
|
<div className="textall mt10" title={item.name}> <p className="ptext">{item.name}</p></div>
|
|
|
|
|
{this.props.current_user.login!=item.login?<a className="ContacttheTAs fl none" href={`/users/${item.login}/private_messages`}>
|
|
|
|
|
<img alt="头像" className="mr5" src={require('./newstwo.png')}/>联系TA
|
|
|
|
@ -428,7 +430,7 @@ class PackageIndexNEITaskDetails extends Component {
|
|
|
|
|
return(
|
|
|
|
|
<div className="ysldivhomediv1" onClick={()=>this.Clickteacher2(item.id)}>
|
|
|
|
|
{item.bool===true?<img src={gouxuan} className="yslgouxuanimg"/>:<img src={weigouxuan} className="yslgouxuanimg"/>}
|
|
|
|
|
<img className="div1img" src={item.avatar_url}/>
|
|
|
|
|
<a href={`/users/${item.login}`}><img className="div1img" src={item.avatar_url}/></a>
|
|
|
|
|
<span className={item.bool===true?"textall mt10 color-blue":"textall mt10"} title={item.name}> <p className="ptext">{item.name}</p></span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|