(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59a91e61"],{"820a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ids-register-way-choose",staticStyle:{background:"#ffffff"},style:{height:e.height}},[t("div",{staticStyle:{width:"90%","margin-left":"5%"},style:{height:e.height}},[t("v-layout",{staticStyle:{height:"80%"},attrs:{"align-center":""}},[t("v-flex",{attrs:{xs12:"",sm12:"","text-xs-center":""}},[t("div",{staticStyle:{width:"100%"}},[t("v-btn",{staticClass:"btn-choose-register-way",staticStyle:{color:"white"},attrs:{large:"",color:"red darken-1"},on:{click:function(t){return e.go2Register()}}},[t("v-icon",{staticStyle:{"margin-right":"6px"},attrs:{"x-large":"",dark:""}},[e._v("mdi-map-marker")]),e._v("普通注册")],1)],1),t("div",{staticStyle:{width:"100%"}},[t("v-btn",{staticClass:"btn-choose-register-way",staticStyle:{color:"white"},attrs:{large:"",color:"amber darken-3"},on:{click:function(t){return e.onScanQRCode()}}},[t("v-icon",{staticStyle:{"margin-right":"6px"},attrs:{"x-large":"",dark:""}},[e._v("mdi-line-scan")]),e._v("扫码注册")],1)],1)])],1)],1),t("div",{staticStyle:{"text-align":"center",position:"absolute",width:"100%",bottom:"0px"}},[t("div",{staticClass:"licence-wrap"},[t("v-checkbox",{attrs:{color:"#e66159"},model:{value:e.__isAgreeLicence,callback:function(t){e.__isAgreeLicence=t},expression:"__isAgreeLicence"}}),t("span",{staticClass:"licence-text"},[e._v("我已阅读并同意")]),t("span",{staticClass:"licence-link",on:{click:function(t){return e.showLicence()}}},[e._v("《软件许可与服务协议》")]),t("span",{staticClass:"licence-text"},[e._v("和")]),t("span",{staticClass:"licence-link",on:{click:function(t){return e.showPrivacy()}}},[e._v("《隐私政策》")])],1),e._m(0)]),e.isShowQRCodeScanner?t("iDSCompQRCodeScanner",{attrs:{isShowDialog:e.isShowQRCodeScanner,isShowAlbum:!1},on:{onClose:e.onQRCodeScannerClose,onFinish:e.onQRCodeScannerFinish}}):e._e()],1)},c=[function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"text-align":"center","margin-bottom":"10px"}},[t("span",{staticStyle:{width:"100%","font-size":"12px",color:"rgba(166, 166, 166, 1)"}},[e._v("服务热线：400-1515-532")])])}],o=n("3d20"),s=n.n(o),r=n("7e35"),a=n("4532"),l=(n("25b1"),n("e62d0")),h=n("cdb4"),u={name:"iDS-RegisterWayChoose",data:function(){return{isAgreeLicence:!1,isShowQRCodeScanner:!1}},components:{iDSCompQRCodeScanner:l["a"]},computed:{height:function(){return"calc(".concat(window.innerHeight,"px - 48px ")+")"},__isAgreeLicence:{get:function(){return this.isAgreeLicence},set:function(e){this.isAgreeLicence=e,r["a"].set("isAgreeLicence",this.isAgreeLicence)}}},methods:{go2Register:function(){this.isAgreeLicence?this.$router.push({name:"rolechoose"}):a["a"].vm.setSnackBar({value:{color:"error",text:"请阅读并同意服务协议和隐私政策",visible:!0}})},onScanQRCode:function(){var e=this;e.isAgreeLicence?"Android"==a["a"].vm.getPlatform()?h["a"].checkCameraPermission().then((function(){console.log("相机权限获取成功"),e.onQRCodeScannerOpen()}),(function(e){console.log("相机权限获取失败")})):("iOS"==a["a"].vm.getPlatform()||"browser"==a["a"].vm.getPlatform())&&e.onQRCodeScannerOpen():a["a"].vm.setSnackBar({value:{color:"error",text:"请阅读并同意服务协议和隐私政策",visible:!0}})},onQRCodeScannerOpen:function(){this.isShowQRCodeScanner=!0},onQRCodeScannerClose:function(){this.isShowQRCodeScanner=!1},onQRCodeScannerFinish:function(e,t){this.isShowQRCodeScanner=!1;var n=JSON.parse(e);n.tid&&n.roleId?this.$router.push({name:"userregisterforqrscan",params:{tid:n.tid,roleId:n.roleId}}):s.a.fire({text:"请扫描有效二维码",title:"扫码注册失败",type:"error",showConfirmButton:!1,timer:2300})},changeView:function(){a["a"].vm.setTitle("请选择注册方式"),a["a"].vm.setBottomNavVisible(!1),a["a"].vm.setBackIcon("arrow_back"),a["a"].vm.setBackDisabled(!1)},showLicence:function(){this.$router.push({name:"licence"})},showPrivacy:function(){this.$router.push({name:"privacy"})}},created:function(){this.isAgreeLicence="false"!==(r["a"].get("isAgreeLicence")||"false")},mounted:function(){this.changeView()}},d=u,g=(n("f97f"),n("2877")),f=Object(g["a"])(d,i,c,!1,null,null,null);t["default"]=f.exports},c63e:function(e,t,n){},f97f:function(e,t,n){"use strict";n("c63e")}}]);