| | |
| | | // var url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect` |
| | | |
| | | // // 判断用户是否已经授权 |
| | | // if(window.localStorage.edu_ins_client_openId == 'undefined' || !localStorage.edu_ins_client_openId){ |
| | | // if(window.localStorage.axx_ins_client_openId == 'undefined' || !localStorage.axx_ins_client_openId){ |
| | | // window.location.href = url |
| | | // // 在回调页面去获取到授权返回的code,并且传递给后端 |
| | | // } |
| | |
| | | // 拼接微信授权页面链接 |
| | | var url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${this.redirect_uri}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect` |
| | | // 判断用户是否已经授权 |
| | | if(window.localStorage.edu_ins_client_openId == 'undefined' || !localStorage.edu_ins_client_openId){ |
| | | if(window.localStorage.axx_ins_client_openId == 'undefined' || !localStorage.axx_ins_client_openId){ |
| | | window.location.href = url |
| | | // 在回调页面去获取到授权返回的code,并且传递给后端 |
| | | } |