杨树明 5 years ago
parent 25b313e501
commit e0444d03bf

@ -281,7 +281,7 @@ class PackageIndexNEITaskDetails extends Component {
<div className="fl edu-back-white ">
<a href={`/users/${data&&data.creator.login}`}>
<img alt="头像" className="radius mt10 ml5" height="70" id="nh_user_logo" name="avatar_image"
src={getImageUrl("images/"+data&&data.creator.image_url)} width="70"/>
src={"/images/"+data&&data.creator.image_url} width="70"/>
</a>
<div className=" edu-back-white pagemancenter mt10 ">
{data&&data.creator.name}

@ -117,17 +117,14 @@ class PackageIndexNEIBannerConcent extends Component {
// this.contentMdRef.current.setValue("测试赋值")
}
// componentDidUpdate = (prevProps) => {
// if(prevProps.current_user.username!=this.props.current_user){
// if(this.props.current_user!=undefined){
// console.log(this.props.current_user)
// this.setState({
// contact_name:this.props.current_user.username
// })
// }
//
// }
// }
componentDidUpdate = (prevProps) => {
if(prevProps.current_user.username != this.props.current_user.username){
console.log(this.props.current_user)
this.setState({
contact_name:this.props.current_user.username
})
}
}
//获取验证码;
getverificationcode =()=>{
// if (this.state.logins&&this.state.logins.length === 0) {

Loading…
Cancel
Save