webpackjsonp([89],{"013j":function(e,n,t){(e.exports=t("utlt")(!1)).push([e.i,"",""])},"2zzx":function(e,n,t){"use strict";object.defineproperty(n,"__esmodule",{value:!0});var o=l(t("4yfn")),r=l(t("2zc1")),i=l(t("q8n/")),a=t("9rma");function l(e){return e&&e.__esmodule?e:{default:e}}n.default={layout:"default",mounted:function(){this.login()},methods:(0,o.default)({},(0,a.mapactions)({logintoken:"login/logintoken",getmemdetailinfo:"login/getmemdetailinfo",loginusrsession:"loginusrsession",dowxapplogin:"login/dowxapplogin",doqqlogin:"login/doqqlogin"}),{login:function(){var e=location.search;e=e.split("&")[0];var n=this.$route.query.code||e.split("=")[1];this.$route.query.iswx?this.dowxlogin(n):this.dologin(n)},dowxlogin:function(e){var n=this;this.dowxapplogin(e).then(function(e){var t=e,o={p0:e.openid,p1:"weixin",p2:e.authtoken};return n.logintoken(o).then(function(e){var n={openid:e.openid,encrypttoken:e.encrypttoken};return r.default.local.set("logininfo",n),i.default.jsoncall({fn:"mallsale.carthandler.updatememcartforuserlogin",param:[]}),t})}).then(function(e){return n.getmemdetailinfo()}).then(function(e){return n.loginusrsession({openid:e.target.openid,islogend:!0,regnode:!0,memdata:e.target,userattrid:e.userattrid})}).then(function(e){var t=r.default.local.get("redirecturl");t?(n.$router.push({path:t}),r.default.local.remove("redirecturl")):n.$router.push({path:"/"})}).catch(function(e){e&&n.$message.error(e)})},dologin:function(e){var n=this;this.doqqlogin(e).then(function(e){var t=e,o={p0:e.openid,p1:"qq",p2:e.authtoken};return n.logintoken(o).then(function(e){var n={openid:e.openid,encrypttoken:e.encrypttoken};return r.default.local.set("logininfo",n),i.default.jsoncall({fn:"mallsale.carthandler.updatememcartforuserlogin",param:[]}),t}).then(function(e){return n.getmemdetailinfo()}).then(function(e){return n.loginusrsession({openid:e.target.openid,islogend:!0,regnode:!0,memdata:e.target,userattrid:e.userattrid})}).then(function(e){var t=r.default.local.get("redirecturl");t?(n.$router.push({path:t}),r.default.local.remove("redirecturl")):n.$router.push({path:"/"})}).catch(function(e){e&&n.$message.error(e)})})}})}},"4lju":function(e,n,t){"use strict";object.defineproperty(n,"__esmodule",{value:!0});var o=t("2zzx"),r=t.n(o);for(var i in o)"default"!==i&&function(e){t.d(n,e,function(){return o[e]})}(i);var a=t("8boh"),l=!1;var u=function(e){l||t("ixg4")},s=t("x4nt")(r.a,a.a,!1,u,null,null);s.options.__file="pages/login/landing.vue",n.default=s.exports},"8boh":function(e,n,t){"use strict";var o=function(){var e=this.$createelement;return(this._self._c||e)("div")};o._withstripped=!0;var r={render:o,staticrenderfns:[]};n.a=r},ixg4:function(e,n,t){var o=t("013j");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);t("fiqi")("3258916b",o,!1,{sourcemap:!1})}});