(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-openid"],{"6a54":function(t,e,n){"use strict";n.r(e);var i=n("e108"),a=n("a764");for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"5174f6ec",null,!1,i["a"],void 0);e["default"]=r.exports},8135:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c975");var a=i(n("c7eb")),u=i(n("1da1")),o=i(n("ade3")),r=n("3b4e"),s={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(){var t;return t={state:"",code:"",show:!1},(0,o.default)(t,"show",!1),(0,o.default)(t,"content","授权登录中..."),t},methods:{goWxAuth:function(){var t=(0,u.default)((0,a.default)().mark((function t(){var e,n,i;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={code:this.code,state:this.state,platform:"wechat",base:1},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:clearTimeout(this.si),this.$u.vuex("vuex_openid",n.data.openid),i=this.vuex_lasturl||"/pages/index/index",this.$u.vuex("vuex_lasturl",""),uni.reLaunch({url:i+(i.indexOf("?")>-1?"&":"?")+"from=openid"});case 12:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),confirm:function(){window.history.go(-2)}}};e.default=s},a764:function(t,e,n){"use strict";n.r(e);var i=n("8135"),a=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=a.a},e108:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return i}));var i={faNavbar:n("e0bc").default,uModal:n("0eaf").default,uLoading:n("b7cf").default},a=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)},u=[]}}]);