(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[18],{"106a":function(t,n,a){"use strict";a.r(n);var i=function(){var t=this,n=t._self._c;return n("div",[n("div",{attrs:{"left-arrow":"",title:"二维码扫描","safe-area-inset-top":""},on:{"click-left":t.onClickLeft}}),n("div",{staticClass:"scroll-container scan-container"},[n("div",{staticClass:"scan-none-1"}),n("div",{staticClass:"scan-box-container"},[n("div",{staticClass:"scan-none-2"}),n("div",{staticClass:"scan-box"},[n("div",{staticClass:"scan-box-area"},[n("div",{staticClass:"top-left"}),n("div",{staticClass:"top-right"}),n("div",{staticClass:"bottom-left"}),n("div",{staticClass:"bottom-right"}),n("div",{staticClass:"light",on:{click:t.onLightTrigger}},[n("i",{class:["iconfont",t.light?"icon-shoudiantong-dakai":"icon-shoudiantong-guanbi"]}),n("span",[t._v("轻触 "+t._s(t.light?"关闭":"打开"))])])])]),n("div",{staticClass:"scan-none-2"})]),t._m(0)])])},s=[function(){var t=this,n=t._self._c;return n("div",{staticClass:"scan-none-1 scan-bottom"},[n("p",[t._v("请将二维码对准至框内，即可自动扫描")])])}],o=a("18d6"),c={name:"Scan",data(){return{baseurl:o["a"].getItem("baseurl"),light:!1}},beforeCreate(){},beforeDestroy(){try{QRScanner.hide((t=>{console.log("[Scan.vue] 关闭扫描"+JSON.stringify(t))})),QRScanner.destroy((function(t){console.log("[Scan.vue] 销毁扫码"+JSON.stringify(t))}))}catch(e){console.log("[Scan.vue]"+JSON.stringify(e))}},mounted(){this.onScan(),console.log(this.$route.path)},methods:{onClickLeft(){this.$router.go(-1)},onScan(){var t=this;try{QRScanner.show((t=>{console.log(Date())})),QRScanner.scan(((n,a)=>{n?alert(JSON.stringify(e)):(navigator.vibrate(1),navigator.notification.beep(1),alert("扫描结果: "+a),console.log(o["a"].getItem("linkchange")),t.$router.push({name:o["a"].getItem("linkchange")}),console.log(Date()))}))}catch(e){console.log("[Scan.vue：onScan] "+JSON.stringify(e))}},onLightTrigger(){try{this.light?QRScanner.disableLight(((t,n)=>{t&&console.log("[Scan.vue] 关闭手电筒状态错误："+JSON.stringify(t)),console.log("[Scan.vue] 关闭手电筒状态："+JSON.stringify(n))})):QRScanner.enableLight(((t,n)=>{t&&console.log("[Scan.vue] 打开手电筒状态错误："+JSON.stringify(t)),console.log("[Scan.vue] 打开手电筒状态："+JSON.stringify(n))}))}catch(e){return void console.log("[Scan.vue] "+JSON.stringify(e))}this.light=!this.light}}},l=c,r=(a("f6e9"),a("42e1")),g=Object(r["a"])(l,i,s,!1,null,"54caf302",null);n["default"]=g.exports},"761b":function(t,n,a){},f6e9:function(t,n,a){"use strict";a("761b")}}]);