(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-scan"],{"12d4":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"user",class:[t.isDark?"dark":"",t.$store.state.AppStyle],style:{"background-color":t.isDark?"#1c1c1c":"#f6f6f6","min-height":t.isDark?"100vh":"auto"}},[a("v-uni-view",{staticClass:"header",style:[{height:t.CustomBar+"px"}]},[a("v-uni-view",{staticClass:"cu-bar",class:t.isDark?"dark":"bg-white",style:{height:t.CustomBar+"px","padding-top":t.StatusBar+"px","background-color":t.isDark?"#1c1c1c":"#ffffff"}},[a("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"cuIcon-back"})],1),a("v-uni-view",{staticClass:"content text-bold",style:[{top:t.StatusBar+"px"}]},[t._v("授权登录")]),a("v-uni-view",{staticClass:"action"})],1)],1),a("v-uni-view",{staticClass:"scan text-center"},[a("v-uni-view",{staticClass:"scan-user"},[a("v-uni-image",{attrs:{src:t.userInfo.avatar,mode:"aspectFill"}}),a("v-uni-view",{staticClass:"scan-user-name"},[t.userInfo.screenName?[t._v(t._s(t.userInfo.screenName))]:[t._v(t._s(t.userInfo.name))]],2),a("v-uni-view",{staticClass:"scan-user-tips text-gray"},[t._v("将使用"+t._s(t.appname)+"授权登录")])],1),a("v-uni-view",{staticClass:"scan-user-btn"},[a("v-uni-view",{staticClass:"cu-btn bg-blue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.scanLogin.apply(void 0,arguments)}}},[t._v("确认登录")]),a("v-uni-view",{staticClass:"text-blue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[t._v("取消")])],1)],1)],1)},s=[]},"4ed7":function(t,e,a){var n=a("df2e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=a("967d").default;s("80db5bde",n,!0,{sourceMap:!1,shadowMode:!1})},"5cda":function(t,e,a){"use strict";a.r(e);var n=a("dfb0"),s=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=s.a},9222:function(t,e,a){"use strict";a.r(e);var n=a("12d4"),s=a("5cda");for(var i in s)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(i);a("bb96");var o=a("828b"),u=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"475a7733",null,!1,n["a"],void 0);e["default"]=u.exports},bb96:function(t,e,a){"use strict";var n=a("4ed7"),s=a.n(n);s.a},df2e:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,"uni-page-body[data-v-475a7733]{background-color:#fff}body.?%PAGE?%[data-v-475a7733]{background-color:#fff}",""]),t.exports=e},dfb0:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(a("c096"));var s=a("739a"),i=n(a("2389")),o={mixins:[i.default],data:function(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar,NavBar:this.StatusBar+this.CustomBar,AppStyle:this.$store.state.AppStyle,userInfo:null,token:"",appname:"",text:""}},onShow:function(){s.localStorage.getItem("userinfo")?(this.userInfo=JSON.parse(s.localStorage.getItem("userinfo")),this.userInfo.style="background-image:url("+this.userInfo.avatar+");",this.group=this.userInfo.group):this.userInfo=null,s.localStorage.getItem("token")?this.token=s.localStorage.getItem("token"):this.token="",this.appname=this.$API.GetAppName()},onLoad:function(t){t.text&&(this.text=t.text)},methods:{back:function(){uni.navigateBack({delta:1})},scanLogin:function(){var t=this;if(""==t.token)return uni.showToast({title:"请先登录",icon:"none"}),!1;t.$Net.request({url:t.$API.setScan(),data:{token:t.token,codeContent:t.text},header:{"Content-Type":"application/x-www-form-urlencoded"},method:"get",dataType:"json",success:function(e){uni.showToast({title:e.data.msg,icon:"none"});setTimeout((function(){t.back()}),1e3)},fail:function(t){uni.showToast({title:"网络开小差了哦",icon:"none"})}})}}};e.default=o}}]);