require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/scan_login/index"],{2616:function(n,e,t){"use strict";var c=t("8ab7"),o=t.n(c);o.a},"610a":function(n,e,t){"use strict";t.r(e);var c=t("9b6c"),o=t("c7b3");for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);t("2616");var a=t("828b"),u=Object(a["a"])(o["default"],c["b"],c["c"],!1,null,null,null,!1,c["a"],void 0);e["default"]=u.exports},"70a0":function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=t("92f9"),o=t("dace"),i={name:"scan_login",data:function(){return{code:"",userInfo:{}}},onLoad:function(n){this.code=n.key,this.codeStauts(),this.getUserInfo()},methods:{codeStauts:function(){var n=this;(0,o.codeStauts)({code:this.code}).then((function(n){})).catch((function(e){n.openModel(e)}))},scanLogin:function(){var e=this;this.code?(0,o.kefuScanLogin)({code:this.code}).then((function(e){n.showToast({title:e.msg,icon:"success"}),setTimeout((function(n){WeixinJSBridge.call("closeWindow")}),2e3)})).catch((function(n){e.openModel(n)})):this.openModel("没有登录的code，请重新扫码")},openModel:function(e){n.showModal({title:"提示",content:e,success:function(n){n.confirm?WeixinJSBridge.call("closeWindow"):n.cancel}})},closePage:function(){WeixinJSBridge.call("closeWindow")},getUserInfo:function(){var n=this;(0,c.getUserInfo)().then((function(e){n.userInfo=e.data}))}}};e.default=i}).call(this,t("df3c")["default"])},"8ab7":function(n,e,t){},"9b6c":function(n,e,t){"use strict";t.d(e,"b",(function(){return c})),t.d(e,"c",(function(){return o})),t.d(e,"a",(function(){}));var c=function(){var n=this.$createElement;this._self._c},o=[]},c7b3:function(n,e,t){"use strict";t.r(e);var c=t("70a0"),o=t.n(c);for(var i in c)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return c[n]}))}(i);e["default"]=o.a},e755:function(n,e,t){"use strict";(function(n,e){var c=t("47a9");t("f076");c(t("3240"));var o=c(t("610a"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])}},[["e755","common/runtime","common/vendor"]]]);