diff --git a/App.vue b/App.vue index 0199ef7..08204dc 100644 --- a/App.vue +++ b/App.vue @@ -8,7 +8,7 @@ console.log('App Show') }, onHide: function() { - console.log('App Hide1') + console.log('App Hide') } } diff --git a/store/modules/user.js b/store/modules/user.js index 6cf07a5..e2ebb27 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -43,8 +43,8 @@ export default { if(state.toPath == '/pages/login/login') return; // 登录 const appid = 'wxaf37fcd750cb3329' - const redirect_uri = encodeURIComponent('https://tourist.sz-trip.com' + state.toPath) - const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${state.toPath}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`; + const redirect_uri = encodeURIComponent('https://tourist.sz-trip.com/pages/login/login') + const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${state.toPath}&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect`; window.location.href = url // uni.navigateTo({ // url: '/pages/login/login' diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 1406270..cafd49c 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@