|
|
@@ -47,12 +47,10 @@ class BindMenu extends Component {
|
|
|
this.setState({
|
|
|
errorMsg: ''
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- window.location.href =
|
|
|
- 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
|
|
|
- this.paramId + '&redirect_uri=https%3a%2f%2fschool-api.ubtob.com%2fapi%2fschool%2fwxSchool%2fuser%2fuserLogin&response_type=code&scope=snsapi_userinfo&state=' +
|
|
|
- this.paramId + '&connect_redirect=1#wechat_redirect'
|
|
|
- }, 200)
|
|
|
+ window.location.href =
|
|
|
+ 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
|
|
|
+ this.paramId + '&redirect_uri=https%3a%2f%2fschool-api.ubtob.com%2fapi%2fschool%2fwxSchool%2fuser%2fuserLogin&response_type=code&scope=snsapi_userinfo&state=' +
|
|
|
+ this.paramId + '&connect_redirect=1#wechat_redirect'
|
|
|
}
|
|
|
|
|
|
} else if (this.paramType === 'open') {
|
|
|
@@ -149,6 +147,8 @@ class BindMenu extends Component {
|
|
|
this.setState({
|
|
|
bindStatus: 2
|
|
|
})
|
|
|
+
|
|
|
+ this.props.history.push('/homePage')
|
|
|
} else {
|
|
|
this.setState({
|
|
|
bindStatus: 1
|
|
|
@@ -169,7 +169,9 @@ class BindMenu extends Component {
|
|
|
|
|
|
getRedirectMain = () => {
|
|
|
return (
|
|
|
- <Redirect to='/homePage'></Redirect>
|
|
|
+ <div>
|
|
|
+ {/*<Redirect to='/homePage'></Redirect>*/}
|
|
|
+ </div>
|
|
|
)
|
|
|
}
|
|
|
|