Commit 7a7f40969d6fafad3823604ca3f0f99037e0e020

Authored by 陈威
2 parents e31a4061 e4cedd9f
Exists in dev

Merge remote-tracking branch 'origin/dev' into dev

Showing 1 changed file with 11 additions and 13 deletions   Show diff stats
frontend/app-user/pages/jump/weChatOffAcc.vue
... ... @@ -81,20 +81,18 @@
81 81 console.log("this.scope", scope);
82 82 this.code = this.getParameters('code');
83 83 console.log("this.code", this.code);
84   - let jumpToUri =
85   - `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.$config.appid}&redirect_uri=${encodeURIComponent(local)}&response_type=code&scope=${scope}&state=hotent#wechat_redirect`
86   - console.log("jumpToUri", jumpToUri);
87   - // var redirect_uri = decodeURIComponent(this.getParameters("redirect"));
88   - // console.log("redirect_uri", redirect_uri);
89   - // if (redirect_uri) {} else {
  84 +
  85 + // 本地调试可用 设置好地址后无需重定向
  86 + // let jumpToUri =
  87 + // `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.$config.appid}&redirect_uri=${encodeURIComponent(local)}&response_type=code&scope=${scope}&state=hotent#wechat_redirect`
  88 + // console.log("jumpToUri", jumpToUri);
  89 + // if (this.code == null || this.code === "") {
  90 + // window.location.href = jumpToUri;
  91 + // } else {
  92 + // this.getOpenId(this.code);
90 93 // }
91   - if (this.code == null || this.code === "") {
92   - window.location.href = jumpToUri;
93   - } else {
94   - this.getOpenId(this.code);
95   - }
96   - console.log("this.code", this.code);
97   - // this.getOpenId(this.code);
  94 +
  95 + this.getOpenId(this.code);
98 96 console.log("================================");
99 97 },
100 98 getOpenId(code) {
... ...