Commit 5cf84fea authored by Pan's avatar Pan

use mock id

parent 06e50a88
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
methods: { methods: {
wechatHandleClick(thirdpart) { wechatHandleClick(thirdpart) {
this.$store.commit('SET_AUTH_TYPE', thirdpart); this.$store.commit('SET_AUTH_TYPE', thirdpart);
const appid = 'wxff5aaaad72308d46'; const appid = 'xxxxx';
const redirect_uri = encodeURIComponent('http://wallstreetcn.com/auth/redirect?redirect=' + window.location.origin + '/authredirect'); const redirect_uri = encodeURIComponent('http://wallstreetcn.com/auth/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'; 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); openWindow(url, thirdpart, 540, 540);
}, },
tencentHandleClick(thirdpart) { tencentHandleClick(thirdpart) {
this.$store.commit('SET_AUTH_TYPE', thirdpart); this.$store.commit('SET_AUTH_TYPE', thirdpart);
const client_id = '101150108'; const client_id = 'xxxxx';
const redirect_uri = encodeURIComponent('http://wallstreetcn.com/auth/redirect?redirect=' + window.location.origin + '/authredirect'); const redirect_uri = encodeURIComponent('http://wallstreetcn.com/auth/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; 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); openWindow(url, thirdpart, 540, 540);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment