diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index 6ba58b5..381055b 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -236,8 +236,13 @@ const getCode2 = () => { }; const wxAuthGetCode = () => { - var appId = "wx35766a64d73d08a9"; - var REDIRECT_URI = 'https://test.szxgl.cn/zszq-celebration/activity/index.html'; + + // var appId = "wx35766a64d73d08a9"; + var appId = "wx41d80a1bb01f658d"; + + + + var REDIRECT_URI = window.location.href; window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+ appId +'&redirect_uri='+ REDIRECT_URI +'&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect'; // service