(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-scan_login-index"],{"1e0f":function(n,a,e){"use strict";(function(n){e("6a54"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t=e("daab"),i=e("f030"),o={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,i.codeStauts)({code:this.code}).then((function(n){})).catch((function(a){n.openModel(a)}))},scanLogin:function(){var n=this;this.code?(0,i.kefuScanLogin)({code:this.code}).then((function(n){uni.showToast({title:n.msg,icon:"success"}),setTimeout((function(n){WeixinJSBridge.call("closeWindow")}),2e3)})).catch((function(a){n.openModel(a)})):this.openModel(this.$t("没有登录的code，请重新扫码"))},openModel:function(n){uni.showModal({title:this.$t("提示"),content:n,success:function(n){n.confirm?WeixinJSBridge.call("closeWindow"):n.cancel&&this.$t("用户点击取消")}})},closePage:function(){WeixinJSBridge.call("closeWindow")},getUserInfo:function(){var n=this;(0,t.getUserInfo)().then((function(a){n.userInfo=a.data}))}}};a.default=o}).call(this,e("ba7c")["default"])},"2bf0":function(n,a,e){"use strict";e.d(a,"b",(function(){return t})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){}));var t=function(){var n=this,a=n.$createElement,e=n._self._c||a;return e("v-uni-view",{staticClass:"scan_login"},[e("v-uni-view",{staticClass:"head"},[e("v-uni-image",{attrs:{src:n.userInfo.avatar,mode:""}}),e("v-uni-view",{staticClass:"big"},[n._v(n._s(n.userInfo.nickname))]),e("v-uni-view",{staticClass:"small"},[n._v(n._s(n.$t("点击授权登录您的客服工作台")))]),e("v-uni-view",{staticClass:"sub_btn btn",on:{click:function(a){arguments[0]=a=n.$handleEvent(a),n.scanLogin.apply(void 0,arguments)}}},[n._v(n._s(n.$t("授权登录")))]),e("v-uni-view",{staticClass:"out btn",on:{click:function(a){arguments[0]=a=n.$handleEvent(a),n.closePage.apply(void 0,arguments)}}},[n._v(n._s(n.$t("取消")))])],1)],1)},i=[]},"2e63":function(n,a,e){"use strict";e.r(a);var t=e("1e0f"),i=e.n(t);for(var o in t)["default"].indexOf(o)<0&&function(n){e.d(a,n,(function(){return t[n]}))}(o);a["default"]=i.a},"79ee":function(n,a,e){"use strict";var t=e("a4ea"),i=e.n(t);i.a},a4ea:function(n,a,e){var t=e("e358");t.__esModule&&(t=t.default),"string"===typeof t&&(t=[[n.i,t,""]]),t.locals&&(n.exports=t.locals);var i=e("967d").default;i("4cc7124e",t,!0,{sourceMap:!1,shadowMode:!1})},c9765:function(n,a,e){"use strict";e.r(a);var t=e("2bf0"),i=e("2e63");for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(a,n,(function(){return i[n]}))}(o);e("79ee");var c=e("828b"),s=Object(c["a"])(i["default"],t["b"],t["c"],!1,null,"522a6d7a",null,!1,t["a"],void 0);a["default"]=s.exports},e358:function(n,a,e){var t=e("c86c");a=t(!1),a.push([n.i,"uni-page-body[data-v-522a6d7a]{height:100%;background:#fff}body.?%PAGE?%[data-v-522a6d7a]{background:#fff}.scan_login .head[data-v-522a6d7a]{display:flex;flex-direction:column;align-items:center;padding-top:%?96?%}.scan_login .head uni-image[data-v-522a6d7a]{width:%?178?%;height:%?178?%;border-radius:50%}.scan_login .head .big[data-v-522a6d7a]{margin:%?20?% 0 %?10?%;font-size:%?32?%;color:#282828}.scan_login .head .small[data-v-522a6d7a]{color:#9f9f9f;font-size:%?28?%}.scan_login .head .btn[data-v-522a6d7a]{display:flex;align-items:center;justify-content:center;width:%?594?%;height:%?86?%;margin:%?28?% auto 0;font-size:%?30?%;color:#fff;border-radius:%?43?%;background:linear-gradient(90deg,#3875ea,#1890fc)}.scan_login .head .btn.out[data-v-522a6d7a]{border:1px solid #3875ea;background:none;color:#3875ea}.scan_login .head .btn.sub_btn[data-v-522a6d7a]{margin-top:%?96?%}",""]),n.exports=a}}]);