(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/index"],{"094e":function(e,n,t){},1799:function(e,n,t){"use strict";(function(e){t("6cdc");o(t("66fd"));var n=o(t("efcf"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},"3d33":function(e,n,t){"use strict";t.r(n);var o=t("81f7"),c=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=c.a},"5c69":function(e,n,t){"use strict";var o=t("094e"),c=t.n(o);c.a},"81f7":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("3786"),c=a(t("2792"));function a(e){return e&&e.__esModule?e:{default:e}}var i={data:function(){return{agreement:!1,wxCode:""}},onLoad:function(n){var t=this;e.login({success:function(e){t.wxCode=e.code}})},methods:{back:function(){e.navigateBack({delta:0})},goto:function(e){this.globalNavigateTo("agreement",{type:e})},login:function(){var n=this;this.agreement?e.getUserProfile({desc:"用于完善会员资料",success:function(e){n.$store.dispatch("setUser",e.userInfo),n.flashToken(e)}}):e.showToast({title:"请先阅读并勾选协议",icon:"none"})},flashToken:function(e){var n=this;(0,o._login)({code:this.wxCode}).then((function(t){var a=t.data,i=a.openid,u=a.session_key;n.$store.dispatch("setSession",u);var r={session:u,iv:e.iv,encryptedData:e.encryptedData,openid:i,code:n.globalApp.code};(0,o._auth)(r).then((function(e){n.$store.dispatch("setToken",e.data.token).then((function(e){c.default.initSocket(),n.globalReLaunch("index")}))}))}))},getUserProfile:function(e){console.log(e)},getAgreement:function(){}}};n.default=i}).call(this,t("543d")["default"])},c7f4:function(e,n,t){"use strict";var o,c=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.agreement=!e.agreement})},a=[];t.d(n,"b",(function(){return c})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}))},efcf:function(e,n,t){"use strict";t.r(n);var o=t("c7f4"),c=t("3d33");for(var a in c)"default"!==a&&function(e){t.d(n,e,(function(){return c[e]}))}(a);t("5c69");var i,u=t("f0c5"),r=Object(u["a"])(c["default"],o["b"],o["c"],!1,null,"0ab5c533",null,!1,o["a"],i);n["default"]=r.exports}},[["1799","common/runtime","common/vendor"]]]);