let link = ‘https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx70568d6c7bdeaa58&redirect_uri=‘ + banklink + ‘&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect‘;//测试
let that=this;
that.code_weixin= Util.UrlSearch(‘code‘);
if(that.code_weixin){ //(如果有这个code则执行下面的)
localStorage.setItem(‘code_weixin‘,that.code_weixin); //(储存code)
that.registerForWechatUserByH5({appType:‘H5‘,code:that.code_weixin}); //方法调接口1
axios.post(‘/接口地址/‘,{appType:‘H5‘,code:codeWeixin传参 //直接调用接口2
}).then(()=>{});
}else{
that.weixin(); //(如果没有就执行上面的微信授权方法)
}