From b3579ded32ab8ec62f7b8762f11d39fba29d0cb6 Mon Sep 17 00:00:00 2001 From: Pan Date: Sun, 21 May 2017 17:37:21 +0800 Subject: [PATCH] use mock url --- src/views/login/socialsignin.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/login/socialsignin.vue b/src/views/login/socialsignin.vue index c70f3460..1bdf9c8d 100644 --- a/src/views/login/socialsignin.vue +++ b/src/views/login/socialsignin.vue @@ -20,14 +20,14 @@ wechatHandleClick(thirdpart) { this.$store.commit('SET_AUTH_TYPE', thirdpart); const appid = 'xxxxx'; - const redirect_uri = encodeURIComponent('http://wallstreetcn.com/auth/redirect?redirect=' + window.location.origin + '/authredirect'); + const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/authredirect'); const url = 'https://open.weixin.qq.com/connect/qrconnect?appid=' + appid + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_login#wechat_redirect'; openWindow(url, thirdpart, 540, 540); }, tencentHandleClick(thirdpart) { this.$store.commit('SET_AUTH_TYPE', thirdpart); const client_id = 'xxxxx'; - const redirect_uri = encodeURIComponent('http://wallstreetcn.com/auth/redirect?redirect=' + window.location.origin + '/authredirect'); + const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/authredirect'); const url = 'https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=' + client_id + '&redirect_uri=' + redirect_uri; openWindow(url, thirdpart, 540, 540); }