This commit is contained in:
tcubic 2022-08-08 18:23:34 +08:00
parent ac50f32e06
commit 12e413771a

View File

@ -187,7 +187,6 @@ onBeforeMount(() => {
wxAuthGetCode();
}
//
// if(h5plugin.getQueryString("openid")){
// console.log("openid");
@ -236,14 +235,12 @@ const getCode2 = () => {
};
const wxAuthGetCode = () => {
// var appId = "wx35766a64d73d08a9";
var appId = "wx41d80a1bb01f658d";
var url = URLEncode(window.location.href);
var url = urlEncode(window.location.href);
window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx35766a64d73d08a9&redirect_uri={{url}}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect`
window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${url}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
};