(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1435b8be"],{"3f14":function(s,t,e){"use strict";e("5cc4")},"5cc4":function(s,t,e){},c0ae:function(s,t,e){"use strict";e.r(t);var c=function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div",{staticClass:"result"},[e("div",[e("a-icon",{class:[s.isSuccess?"success":"error","icon"],attrs:{type:s.isSuccess?"check-circle":"close-circle"}})],1),e("div",{staticClass:"title"},[s._v("第三方登录结果: ")]),e("div",{staticClass:"description"},[s._v(s._s(s.isSuccess?"成功":"失败"))]),e("div",{staticClass:"content"},[s._v(s._s(s.qcLoginMessage))]),e("div",{staticClass:"action"},[e("a-button",{staticStyle:{"margin-left":"8px"},attrs:{size:"large"},on:{click:s.goHomeHandle}},[s._v("\n      去登录并绑定\n    ")])],1)])},i=[],o=e("ca00"),n=e("0fea"),a=e("9fb0"),r={data:function(){return{qcLoginMessage:"",isSuccess:!0,thirdUserUuid:""}},mounted:function(){var s=this.$route.query;this.thirdLoginCallBack(s)},methods:{thirdLoginCallBack:function(s){var t=s.type,e=void 0===t?"dingtalk":t,c=s.code,i=s.state,r=this;Object(n["c"])("/system/thirdLogin/".concat(e,"/callback?code=").concat(c,"&state=").concat(i)).then((function(s){if(s)if(r.qcLoginMessage=s.message,s.result&&200===s.code){if(r.isSuccess=!0,r.thirdUserUuid=s.result.thirdUserUuid,r.$ls.set("THIRD_USER_UUID",s.result.thirdUserUuid),s.result.token){var t=s.result,e=s.result.userInfo;localStorage.setItem("t_token",t.token),r.$ls.set(a["a"],t.token),r.$ls.set(a["q"],e.elsAccount),r.$ls.set(a["s"],e.subAccount),r.$ls.set(a["r"],e),r.$store.commit("SET_TOKEN",t.token),r.$store.commit("SET_INFO",e),r.$store.commit("SET_NAME",{elsAccount:e.elsAccount,subAccount:e.subAccount,realname:e.realname,welcome:Object(o["r"])()}),r.$store.commit("SET_AVATAR",e.avatar),r.loginSuccess()}}else r.isSuccess=!1}))},loginSuccess:function(){this.$router.push({name:"dashboard"}),this.$notification.success({message:"欢迎",description:"".concat(Object(o["o"])(),"，欢迎回来")})},goHomeHandle:function(){this.$router.push({path:"/user/login"})}}},u=r,l=(e("3f14"),e("0b56")),d=Object(l["a"])(u,c,i,!1,null,"eb74d632",null);t["default"]=d.exports}}]);