courseware
杨树明 5 years ago
parent 7789f2810f
commit 87348d785d

@ -10,7 +10,7 @@ class AccountImg extends Component {
const picUrl = getImageUrl("images/"+this.props.src)
return (
<div className="headphoto mt14">
<ChangeHeaderPicModal
<ChangeHeaderPicModal
{...this.props} ref="picModal" imageSrc={picUrl} userLogin={this.props.current_user ? this.props.current_user.login : '' }></ChangeHeaderPicModal>
<style>{`
/*
@ -48,9 +48,20 @@ class AccountImg extends Component {
.headphoto:hover .headphoto-black {
display: block;
}
.newheadphotoblack{
position: absolute;
top: 49px;
left: 4px;
text-align: center;
color: #fff;
width: 107px;
height: 23px;
line-height:23px;
background: rgba(76,172,255,0.7);
}
`}</style>
<img alt="头像" id="user_avatar_show" nhname="avatar_image" src={`${picUrl}`}></img>
<p className="headphoto-black" onClick={this.editImg} >修改头像</p>
<p className="newheadphotoblack" onClick={this.editImg} >修改头像</p>
</div>
);
}

Loading…
Cancel
Save