issues25489
杨树明 5 years ago
parent 0c77bf300c
commit 10dc5db970

@ -12,7 +12,6 @@ class AccountSecure extends Component {
super(props) super(props)
this.state = { this.state = {
Modalstype:false, Modalstype:false,
isphone:false,
list:[{ list:[{
en_type: "wechat", en_type: "wechat",
id: null, id: null,
@ -40,14 +39,9 @@ class AccountSecure extends Component {
return flag; return flag;
} }
componentDidMount() { componentDidMount() {
let flag = this.IsPC(); //true为PC端false为手机端
let {basicInfo}=this.props; let {basicInfo}=this.props;
let {list}=this.state; let {list}=this.state;
this.setState({
isphone: flag
})
let newlist=list; let newlist=list;
if(basicInfo===undefined||JSON.stringify(basicInfo) == "{}"||basicInfo&&basicInfo.open_users.length===0){ if(basicInfo===undefined||JSON.stringify(basicInfo) == "{}"||basicInfo&&basicInfo.open_users.length===0){
}else{ }else{
@ -124,7 +118,7 @@ class AccountSecure extends Component {
) )
} }
render() { render() {
let {basicInfo}=this.props; let flag = this.IsPC(); //true为PC端false为手机端
let {list}=this.state; let {list}=this.state;
return ( return (
<div> <div>
@ -233,7 +227,7 @@ class AccountSecure extends Component {
} }
>{item.id===null?"绑定":"解绑"}</WordsBtn>:<WordsBtn style={ item.id===null?"blue":"colorgrey9"} className={item.id===null?"borderBottom":""} >{item.id===null?"绑定":"解绑"}</WordsBtn>:<WordsBtn style={ item.id===null?"blue":"colorgrey9"} className={item.id===null?"borderBottom":""}
onClick={ onClick={
item.id===null?this.state.isphone===true?() => this.openphoneqqlogin():() => this.openqqlogin():() => this.undologin("qq",item.id) item.id===null?flag===true?() => this.openphoneqqlogin():() => this.openqqlogin():() => this.undologin("qq",item.id)
} }
>{item.id===null?"绑定":"解绑"}</WordsBtn>} >{item.id===null?"绑定":"解绑"}</WordsBtn>}
</div> </div>

Loading…
Cancel
Save