|
|
|
@ -48,7 +48,8 @@ class AccountSecure extends Component {
|
|
|
|
|
axios.delete(url).then((result)=>{
|
|
|
|
|
if(result.data.status===0){
|
|
|
|
|
this.props.showNotification('解绑成功');
|
|
|
|
|
this.props.history.push(`/account/binding`)
|
|
|
|
|
this.Cancelundologins()
|
|
|
|
|
this.props.getBasicInfo()
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
console.log(error)
|
|
|
|
@ -158,7 +159,7 @@ class AccountSecure extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="description lineheight60">
|
|
|
|
|
{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users.length===0?"":<span className={"color-grey-9"}>{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users[0].nickname}</span>}
|
|
|
|
|
{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users.length===0?"":<span className={"color-grey-9 ml80"}>{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users[0].nickname}</span>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="status pt19">
|
|
|
|
@ -166,7 +167,7 @@ class AccountSecure extends Component {
|
|
|
|
|
onClick={
|
|
|
|
|
basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users.length===0 ?() => this.showModal("wechat"):() => this.undologin("wechat",basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users[0].id)
|
|
|
|
|
}
|
|
|
|
|
>{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users.length===0 ?"立即绑定":"解绑"}</WordsBtn>
|
|
|
|
|
>{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users.length===0 ?"绑定":"解绑"}</WordsBtn>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|