(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-357611f0"],{"33a3":function(t,e,n){},"9b56":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ids-add-way-choose",staticStyle:{background:"#ffffff"},style:{height:t.height}},[e("div",{staticStyle:{width:"90%","margin-left":"5%"},style:{height:t.height}},[e("v-layout",{staticStyle:{height:"80%"},attrs:{"align-center":""}},[e("v-flex",{attrs:{xs12:"",sm12:"","text-xs-center":""}},[e("div",{staticStyle:{width:"100%"}},[e("v-btn",{staticClass:"btn-choose-add-way",staticStyle:{color:"white"},attrs:{large:"",color:"red darken-1"},on:{click:function(e){return t.go2Register()}}},[e("v-icon",{staticStyle:{"margin-right":"6px"},attrs:{"x-large":"",dark:""}},[t._v("mdi-map-marker")]),t._v("选址加入")],1)],1),e("div",{staticStyle:{width:"100%"}},[e("v-btn",{staticClass:"btn-choose-add-way",staticStyle:{color:"white"},attrs:{large:"",color:"amber darken-3"},on:{click:function(e){return t.onScanQRCode()}}},[e("v-icon",{staticStyle:{"margin-right":"6px"},attrs:{"x-large":"",dark:""}},[t._v("mdi-line-scan")]),t._v("扫码加入")],1)],1)])],1)],1),t.isShowQRCodeScanner?e("iDSCompQRCodeScanner",{attrs:{isShowDialog:t.isShowQRCodeScanner,isShowAlbum:!1},on:{onClose:t.onQRCodeScannerClose,onFinish:t.onQRCodeScannerFinish}}):t._e()],1)},i=[],a=n("3d20"),r=n.n(a),c=(n("7e35"),n("4532")),s=(n("25b1"),n("e62d0")),d=n("cdb4"),l=n("aed0"),h=n("45da"),u=(n("3bef"),{name:"iDS-RegisterWayChoose",data:function(){return{isShowQRCodeScanner:!1}},components:{iDSCompQRCodeScanner:s["a"]},computed:{height:function(){return"calc(".concat(window.innerHeight,"px - 48px ")+")"}},methods:{go2Register:function(){this.$router.push({name:"rolechoose"})},onLogout:function(){l["a"].startFuncList(c["a"],this,h["a"].common.logout)},mSetParams:function(t){return t},mGetResult:function(t){return t},onScanQRCode:function(){var t=this;"Android"==c["a"].vm.getPlatform()?d["a"].checkCameraPermission().then((function(){console.log("相机权限获取成功"),t.onQRCodeScannerOpen()}),(function(t){console.log("相机权限获取失败")})):("iOS"==c["a"].vm.getPlatform()||"browser"==c["a"].vm.getPlatform())&&t.onQRCodeScannerOpen()},onQRCodeScannerOpen:function(){this.isShowQRCodeScanner=!0},onQRCodeScannerClose:function(){this.isShowQRCodeScanner=!1},onQRCodeScannerFinish:function(t,e){var n=this,o=JSON.parse(t);o.tid&&o.roleId?c["a"].vm.JoinByQr({authorization:{Authorization:"Bearer "+c["a"].vm.getUserToken()},vm:c["a"].vm,data:{newTid:o.tid,roleId:o.roleId,remark:"手机扫码加入新租户"}}).then((function(t){n.isShowQRCodeScanner=!1,!1===t.needAudit?r.a.fire({text:"已加入目标搅拌站",title:"加入成功",type:"success",showConfirmButton:!1,timer:2300}).then((function(){n.onLogout()})):r.a.fire({text:"已申请加入目标搅拌站，请等待审核",title:"申请提交成功",type:"success",showConfirmButton:!1,timer:2300}).then((function(){n.onLogout()}))})).catch((function(t){n.isShowQRCodeScanner=!1,console.log(t)})):r.a.fire({text:"请扫描有效二维码",title:"扫码注册失败",type:"error",showConfirmButton:!1,timer:2300})},changeView:function(){c["a"].vm.setTitle("请选择加入方式"),c["a"].vm.setBottomNavVisible(!1),c["a"].vm.setBackIcon("arrow_back"),c["a"].vm.setBackDisabled(!1)}},created:function(){},mounted:function(){this.changeView()}}),m=u,f=(n("a3a0"),n("2877")),S=Object(f["a"])(m,o,i,!1,null,null,null);e["default"]=S.exports},a3a0:function(t,e,n){"use strict";n("33a3")}}]);