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

@ -12,7 +12,6 @@ class AccountSecure extends Component {
super(props)
this.state = {
Modalstype:false,
isphone:false,
list:[{
en_type: "wechat",
id: null,
@ -40,14 +39,9 @@ class AccountSecure extends Component {
return flag;
}
componentDidMount() {
let flag = this.IsPC(); //true为PC端false为手机端
let {basicInfo}=this.props;
let {list}=this.state;
this.setState({
isphone: flag
})
let newlist=list;
if(basicInfo===undefined||JSON.stringify(basicInfo) == "{}"||basicInfo&&basicInfo.open_users.length===0){
}else{
@ -124,7 +118,7 @@ class AccountSecure extends Component {
)
}
render() {
let {basicInfo}=this.props;
let flag = this.IsPC(); //true为PC端false为手机端
let {list}=this.state;
return (
<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":""}
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>}
</div>

Loading…
Cancel
Save