cherry-pick develop 个人中心第一版

This commit is contained in:
caishi 2021-05-28 16:19:40 +08:00 committed by caishi
parent f25db9ccf1
commit 7d0abfb764
1 changed files with 10 additions and 17 deletions

View File

@ -123,6 +123,8 @@ class Infos extends Component {
});
const { current_user } = this.props;
const { username } = this.props.match.params;
const { pathname } = this.props.location;
const { notice } = this.state;
let url = `/users/${username || (current_user && current_user.login)}.json`;
axios.get(url).then((result) => {
@ -201,25 +203,16 @@ class Infos extends Component {
<div className="new-content-flex">
<div className="list-left" style={{border:"none"}}>
<div className="bgcF">
<div className="list-l-Menu text-center" style={{padding:"20px 25px"}}>
<span className="headimg">
<img src={getImageUrl(`/${user && user.image_url}`)} alt=""/>
<span>
{
user && user.gender===1?
<i className="iconfont icon-nan1"></i>
:
<i className="iconfont icon-nv1"></i>
}
</span>
</span>
<div className="text-center mt15 font-24 task-hide" title={user && user.username}>
<div className="list-l-Menu text-center pd20">
<Avatar size={110} src={getImageUrl(`/${user && user.image_url}`)} />
{user && user.user_identity && (
<div className="mt-n15 position-relative">
<Tag color="#FF6E21" style={{marginRight:"0px"}}>{user && user.user_identity}</Tag>
</div>
)}
<div className="text-center mt15 font-16 fwb">
{user && user.username}
</div>
<div className="userDescription">
{user && user.description}
</div>
<div>
{/* {user && current_user && user.login === current_user.login && (
<div className="user-info-star-button ">