(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-auth"],{1090:function(t,e,n){"use strict";n.r(e);var i=n("b7dc"),u=n("5d39");for(var a in u)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(a);var r=n("f0c5"),o=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,"989f07d6",null,!1,i["a"],void 0);e["default"]=o.exports},"34d8":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=i(n("c7eb")),a=i(n("1da1")),r=n("3b4e"),o={mixins:[r.loginfunc],onLoad:function(){var t=this;this.state=this.$util.getQueryString("state"),this.code=this.$util.getQueryString("code"),this.state&&this.code?this.goWxAuth():this.content="授权登录失败！",this.si=setTimeout((function(){t.show=!0}),1e3)},data:function(){return{state:"",code:"",show:!1,si:null,content:"授权登录中..."}},methods:{goWxAuth:function(){var t=(0,a.default)((0,u.default)().mark((function t(){var e,n;return(0,u.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={code:this.code,state:this.state,platform:"wechat"},t.next=3,this.$api.goAuthCallback(e);case 3:if(n=t.sent,n){t.next=7;break}return this.content="授权登录失败！",t.abrupt("return");case 7:if(!n.data.user){t.next=13;break}return clearTimeout(this.si),this.$u.vuex("vuex_token",n.data.user.token),this.$u.vuex("vuex_openid",n.data.openid),this.success(),t.abrupt("return");case 13:this.$u.vuex("vuex_third",n.data.third),this.$u.route("/pages/login/register?bind=bind");case 15:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),confirm:function(){window.history.go(-2)}}};e.default=o},"5d39":function(t,e,n){"use strict";n.r(e);var i=n("34d8"),u=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=u.a},b7dc:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={faNavbar:n("e0bc").default,uModal:n("0eaf").default,uLoading:n("b7cf").default},u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("fa-navbar",{attrs:{title:"授权登录"}}),n("u-modal",{attrs:{title:"",content:t.content,"confirm-text":"返回"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[n("v-uni-view",{staticClass:"slot-content u-text-center u-m-b-30"},[n("u-loading",{attrs:{mode:"flower",size:"100"}}),n("v-uni-view",{staticClass:"u-p-20"},[t._v(t._s(t.content))])],1)],1)],1)},a=[]}}]);