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

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

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

@ -48,7 +48,8 @@ class AccountSecure extends Component {
axios.delete(url).then((result)=>{ axios.delete(url).then((result)=>{
if(result.data.status===0){ if(result.data.status===0){
this.props.showNotification('解绑成功'); this.props.showNotification('解绑成功');
this.props.history.push(`/account/binding`) this.Cancelundologins()
this.props.getBasicInfo()
} }
}).catch((error)=>{ }).catch((error)=>{
console.log(error) console.log(error)
@ -158,7 +159,7 @@ class AccountSecure extends Component {
</div> </div>
<div className="description lineheight60"> <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>
<div className="status pt19"> <div className="status pt19">
@ -166,7 +167,7 @@ class AccountSecure extends Component {
onClick={ 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 ?() => 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>
</div> </div>

Loading…
Cancel
Save