(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b45f675"],{aaf7:function(t,e,i){"use strict";i("ccbc")},ccbc:function(t,e,i){},cf89:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ids-driver-change-shifts",staticStyle:{"text-align":"center"},style:{height:t.height},attrs:{id:"ids-driver-change-shifts"}},[e("canvas",{attrs:{id:"canvasShowQrcode"}}),e("div",{staticClass:"ids-float-bottom-btn"},[e("v-btn",{staticStyle:{width:"50px",height:"50px"},attrs:{color:"rgba(67, 207, 124, 1)",dark:"",icon:"",loading:t.qrcodeLoading},on:{click:t.reload}},[e("v-icon",{staticStyle:{"font-size":"24px"}},[t._v("mdi-refresh")])],1)],1)])},o=[],a=i("d055"),r=i.n(a),c=i("4532"),s={name:"iDS-DriverChangeShifts",components:{QRCode:r.a},data:function(){return{title:"显示二维码",qrcodeLoading:!1,qrcode:null,qrcodeInfo:{},qrcodeValue:"",timer:null}},computed:{height:function(){return"calc(".concat(window.innerHeight,"px - 48px ")+")"}},methods:{showQrcode:function(){var t=this;this.qrcodeLoading=!0,setTimeout((function(){t.qrcodeLoading=!1}),2e3);var e={errorCorrectionLevel:"H",type:"image/jpeg",quality:1,margin:1,height:300,width:300,color:{dark:this.qrcodeColor}},i={carID:this.qrcodeInfo.carID,driverID:this.qrcodeInfo.driverID,time:(new Date).getTime()},n=JSON.stringify(i);r.a.toCanvas(document.getElementById("canvasShowQrcode"),n,e,(function(t){}))},reload:function(){var t=this;this.timer&&clearInterval(this.timer),this.showQrcode(),this.timer=setInterval((function(){t.showQrcode()}),18e4)},changeView:function(){c["a"].vm.setTitle(this.title),c["a"].vm.setBottomNavVisible(!1),c["a"].vm.setBottomBtnVisible(!1),c["a"].vm.setBackDisabled(!1),c["a"].vm.setBackIcon("arrow_back"),c["a"].vm.setContentHeight({value:"calc(".concat(window.innerHeight,"px - 48px ")+")"})}},created:function(){console.log("调试代码"),null!=c["a"].vm.getUserToken()&&null!=c["a"].vm.getUserId()?(this.title=this.$route.params.title,this.qrcodeInfo=this.$route.params.qrcodeInfo,this.changeView()):window.location.href="/"},mounted:function(){this.reload()},beforeDestroy:function(){clearInterval(this.timer)}},d=s,l=(i("aaf7"),i("2877")),h=Object(l["a"])(d,n,o,!1,null,null,null);e["default"]=h.exports}}]);