1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
webpackJsonp([54],{"HM/2":function(n,t,e){(n.exports=e("uszS")(!1)).push([n.i,"\n.social-signup-container[data-v-56665f1f]{margin:20px 0\n}\n.social-signup-container .sign-btn[data-v-56665f1f]{display:inline-block;cursor:pointer\n}\n.social-signup-container .icon[data-v-56665f1f]{color:#fff;font-size:30px;margin-top:6px\n}\n.social-signup-container .wx-svg-container[data-v-56665f1f],.social-signup-container .qq-svg-container[data-v-56665f1f]{display:inline-block;width:40px;height:40px;line-height:40px;text-align:center;padding-top:1px;border-radius:4px;margin-bottom:20px;margin-right:5px\n}\n.social-signup-container .wx-svg-container[data-v-56665f1f]{background-color:#8dc349\n}\n.social-signup-container .qq-svg-container[data-v-56665f1f]{background-color:#6ba2d6;margin-left:50px\n}",""])},bJBu:function(n,t,e){var i=e("HM/2");"string"==typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);e("Xatw")("1e4da8c0",i,!0)},dZXH:function(n,t,e){"use strict";function i(n,t,e,i){var o=void 0!==window.screenLeft?window.screenLeft:screen.left,c=void 0!==window.screenTop?window.screenTop:screen.top,a=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-e/2+o,s=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-i/2+c,r=window.open(n,t,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width="+e+", height="+i+", top="+s+", left="+a);window.focus&&r.focus()}Object.defineProperty(t,"__esModule",{value:!0});var o={name:"social-signin",methods:{wechatHandleClick:function(n){this.$store.commit("SET_AUTH_TYPE",n);i("https://open.weixin.qq.com/connect/qrconnect?appid=xxxxx&redirect_uri="+encodeURIComponent("xxx/redirect?redirect="+window.location.origin+"/authredirect")+"&response_type=code&scope=snsapi_login#wechat_redirect",n,540,540)},tencentHandleClick:function(n){this.$store.commit("SET_AUTH_TYPE",n);i("https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=xxxxx&redirect_uri="+encodeURIComponent("xxx/redirect?redirect="+window.location.origin+"/authredirect"),n,540,540)}}},c={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"social-signup-container"},[e("div",{staticClass:"sign-btn",on:{click:function(t){n.wechatHandleClick("wechat")}}},[e("span",{staticClass:"wx-svg-container"},[e("svg-icon",{staticClass:"icon",attrs:{"icon-class":"wechat"}})],1),n._v(" 微信\n ")]),n._v(" "),e("div",{staticClass:"sign-btn",on:{click:function(t){n.tencentHandleClick("tencent")}}},[e("span",{staticClass:"qq-svg-container"},[e("svg-icon",{staticClass:"icon",attrs:{"icon-class":"qq"}})],1),n._v(" QQ\n ")])])},staticRenderFns:[]};var a=e("rCDr")(o,c,!1,function(n){e("bJBu")},"data-v-56665f1f",null);t.default=a.exports}}); |