|
@@ -45,7 +45,7 @@ export default class BindMenu extends Component {
|
|
|
})
|
|
})
|
|
|
window.location.href =
|
|
window.location.href =
|
|
|
'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
|
|
'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
|
|
|
- this.paramId + '&redirect_uri=https%3a%2f%2ftmobile.ubtob.com%2fschool%2fuser%2fuserLogin&response_type=code&scope=snsapi_userinfo&state=' +
|
|
|
|
|
|
|
+ this.paramId + '&redirect_uri=https%3a%2f%2fschool-api.ubtob.com%2fwxSchool%2fuser%2fuserLogin&response_type=code&scope=snsapi_userinfo&state=' +
|
|
|
this.paramId + '&connect_redirect=1#wechat_redirect'
|
|
this.paramId + '&connect_redirect=1#wechat_redirect'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -75,7 +75,7 @@ export default class BindMenu extends Component {
|
|
|
|
|
|
|
|
obtainBindStatus = () => {
|
|
obtainBindStatus = () => {
|
|
|
fetchGet(API.USER_ISBINDING, {
|
|
fetchGet(API.USER_ISBINDING, {
|
|
|
- openid: 'fanglonghai',
|
|
|
|
|
|
|
+ openid: this.openid,
|
|
|
schoolId: 1
|
|
schoolId: 1
|
|
|
}).then(response => {
|
|
}).then(response => {
|
|
|
if (response.data) {
|
|
if (response.data) {
|