Bladeren bron

no message

linwenxin 1 jaar geleden
bovenliggende
commit
693dbc5fad
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      src/App.vue

+ 3 - 0
src/App.vue

@@ -33,14 +33,17 @@ function getQueryVariable(variable) {
         // 微信鉴权登入
         var isAuthorization = getQueryVariable('isAuthorization');
         if (isAuthorization) {
+          alert(1)
           var url = 'https://jiasm.zfire.top/recycleh5/#/pages/login/indexs';
           const href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd935838591c00e16&redirect_uri=${url}&response_type=code&scope=snsapi_userinfo#wechat_redirect`;
           window.location.href = href;
         } else {
           var code = getQueryVariable('code');
           if (code) {
+            alert(code)
             uni.setStorageSync('code', code);
           } else if (!uni.getStorageSync('code')) {
+            alert("重定向")
             const url = location.href;
             const href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd935838591c00e16&redirect_uri=${url}&response_type=code&scope=snsapi_userinfo#wechat_redirect`;
             window.location.href = href;