|
|
@ -15,6 +15,8 @@ import "../../courses/css/members.css"
|
|
|
|
import "../../courses/css/Courses.css"
|
|
|
|
import "../../courses/css/Courses.css"
|
|
|
|
import update from 'immutability-helper'
|
|
|
|
import update from 'immutability-helper'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import Trialapplication from '../../login/Trialapplication'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const $ = window.$;
|
|
|
|
const $ = window.$;
|
|
|
|
class Infos extends Component{
|
|
|
|
class Infos extends Component{
|
|
|
@ -26,7 +28,8 @@ class Infos extends Component{
|
|
|
|
is_edit:false,
|
|
|
|
is_edit:false,
|
|
|
|
sign:undefined,
|
|
|
|
sign:undefined,
|
|
|
|
type:0,
|
|
|
|
type:0,
|
|
|
|
login:undefined
|
|
|
|
login:undefined,
|
|
|
|
|
|
|
|
isRenders:false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentDidMount =()=>{
|
|
|
|
componentDidMount =()=>{
|
|
|
@ -44,6 +47,14 @@ class Infos extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 试用申请
|
|
|
|
|
|
|
|
trialapplications =()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
isRenders: true,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//获取个人主页信息
|
|
|
|
//获取个人主页信息
|
|
|
|
getInfo = (user_login) =>{
|
|
|
|
getInfo = (user_login) =>{
|
|
|
|
let url =`/users/${user_login}/homepage_info.json`;
|
|
|
|
let url =`/users/${user_login}/homepage_info.json`;
|
|
|
@ -155,12 +166,16 @@ class Infos extends Component{
|
|
|
|
type,
|
|
|
|
type,
|
|
|
|
followed,
|
|
|
|
followed,
|
|
|
|
id,
|
|
|
|
id,
|
|
|
|
login
|
|
|
|
login,
|
|
|
|
|
|
|
|
isRenders
|
|
|
|
}=this.state;
|
|
|
|
}=this.state;
|
|
|
|
let {username}= this.props.match.params;
|
|
|
|
let {username}= this.props.match.params;
|
|
|
|
let {isAdmin}=this.props.isAdmin();
|
|
|
|
let {isAdmin}=this.props.isAdmin();
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div className="newMain">
|
|
|
|
<div className="newMain">
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
isRenders && <Trialapplication {...this.state} />
|
|
|
|
|
|
|
|
}
|
|
|
|
<div className="user-main-half">
|
|
|
|
<div className="user-main-half">
|
|
|
|
<div className="user-headImg"></div>
|
|
|
|
<div className="user-headImg"></div>
|
|
|
|
<div className="user-headCon">
|
|
|
|
<div className="user-headCon">
|
|
|
@ -251,7 +266,7 @@ class Infos extends Component{
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<a herf="javascript:void(0);" onClick={this.signFor} id="attendance" className="user_default_btn user_orange_btn fl mb15">签到</a>
|
|
|
|
<a herf="javascript:void(0);" onClick={this.signFor} id="attendance" className="user_default_btn user_orange_btn fl mb15">签到</a>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<a herf="javascript:void(0);" onClick="user_apply_trail();" id="authentication_apply" className="user_default_btn user_private_btn fl ml15">试用申请</a>
|
|
|
|
<a herf="javascript:void(0);" onClick={this.trialapplications} id="authentication_apply" className="user_default_btn user_private_btn fl ml15">试用申请</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
|