problem_set
杨树明 5 years ago
parent 794febaff9
commit 2eda621b44

@ -266,6 +266,9 @@ class CoursesNew extends Component {
})
}
}).catch((error) => {
this.setState({
bottonloading:false
})
console.log(error)
})
}else{
@ -339,6 +342,9 @@ class CoursesNew extends Component {
})
}
}).catch((error) => {
this.setState({
bottonloading:false
})
console.log(error)
})
}else{

@ -135,7 +135,7 @@ class AccountPage extends Component {
<Route exact path="/account"
render={
(props) => (<AccountBasic {...this.props} {...props} {...this.state} {...common} />)
(props) => (<AccountBasic getBasicInfo={()=>this.getBasicInfo()} {...this.props} {...props} {...this.state} {...common} />)
}
></Route>

@ -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>

Loading…
Cancel
Save