1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e4b077a"],{"2c87":function(e,t){e.exports="data:image/png;base64,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"},"2d68":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".agreement-box img{max-width:100%}.el-upload-list__item{padding:0!important}.el-input__icon.el-icon-caret-top{color:#b8b8b8}.my-swipe{background:#fff}.avatar{width:100%;height:100%}.el-input__inner{border:.0625rem solid #b8b8b8;font-size:12px}.el-select{display:block;margin-bottom:.5rem;width:100%;height:2rem;border-radius:.3125rem;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none}a{text-decoration:none;color:#222}input{border-width:0}.supplier .banner img{width:100%}.main .btn{width:100%;background:#f55955;color:#fff;height:3rem;padding:0 .3125rem;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;font-size:16px;line-height:3rem}.supplier .success{height:12.5rem;padding-top:4.0625rem;background:#fff}.supplier .success .ico{height:4.0625rem;width:4.0625rem;margin:auto;border:.1875rem solid #32cd32;border-radius:4rem;color:#32cd32;font-size:36px;text-align:center;line-height:4rem}.supplier .success .text{height:2rem;margin-top:1.875rem;color:#666;line-height:1.6rem;text-align:center}.supplier .success a .sub{height:2rem;width:80%;background:#f55955;margin:1.25rem auto;border-radius:2rem;color:#fff;line-height:2rem;text-align:center;font-size:14px;margin-bottom:1.25rem}.supplier .success a .sub:focus{background:#d8403c}.supplier .success .avatar-uploader .el-upload{border:.0625rem dashed #d9d9d9;border-radius:.375rem;cursor:pointer;position:relative;overflow:hidden}.supplier .success .avatar-uploader .el-upload:hover{border-color:#409eff}.supplier .success .avatar-uploader-icon{font-size:28px;color:#8c939d;width:11.125rem;height:11.125rem;line-height:11.125rem;text-align:center}.supplier .success .avatar{width:11.125rem;height:11.125rem;display:block}.supplier .success .el-upload-list__item .is-success{width:80%;height:6.25rem}.imgflex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#worker_apply .main .store_apply .yd-cell-item .yd-cell-left{width:6rem}#worker_apply .main .store_apply .yd-cell-item .yd-cell-left span{font-weight:700;color:#333}#worker_apply .main .store_apply .yd-cell-item .yd-cell-left em{color:#f86e6e;font-size:18px}#worker_apply .main .store_apply .yd-cell-item .yd-cell-right{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}#worker_apply .main .store_apply .yd-cell-item .yd-cell-right input{text-align:left;color:#333}#worker_apply .main .store_apply .yd-cell-item .yd-cell-right .addressDiv{width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:18px}#worker_apply .main .store_apply .yd-cell-item:not(:last-child):after{width:94%}#worker_apply .main .store_apply .otherTitle{border:none}#worker_apply .main .store_apply .otherTitle .yd-cell-left{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#worker_apply .main .store_apply .otherTitle .yd-cell-left span{color:#f86e6e;font-weight:700;line-height:.875rem;font-size:.875rem;border-left:.2rem solid #f86e6e;padding-left:.5rem}#worker_apply .main .store_apply .otherTitle .yd-cell-right{width:auto;-webkit-box-flex:0;-webkit-flex:0;-ms-flex:0;flex:0}#worker_apply .main .store_apply .otherTitle .yd-cell-right span{width:1.25rem;height:1.25rem;border:1px solid #f86e6e;border-radius:100%;text-align:center}#worker_apply .main .store_apply .otherTitle .yd-cell-right span i{color:#f86e6e}#worker_apply .main .store_apply .otherTitle:after{width:0}#worker_apply .main .agreement_box{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.625rem .625rem 0}#worker_apply .main .header_class{height:3rem;line-height:3rem;font-weight:700}#worker_apply .main .store_apply{background:#fff;margin-bottom:0}#worker_apply .main .top-info .van-cell{height:50px;padding:0 12px}#worker_apply .main .top-info .van-cell .van-cell__title{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;width:6rem;color:#555;text-align:left;font-weight:700}#worker_apply .main .top-info .van-cell .van-cell__title em{color:#f86e6e;font-size:18px}#worker_apply .main .top-info .van-cell .top-title{display:inline-block;color:#f86e6e;font-weight:700;line-height:.875rem;font-size:.875rem;border-left:.2rem solid #f86e6e;padding-left:.5rem}#worker_apply .main .top-info .van-cell input{width:100%;height:100%;color:#333}#worker_apply .main .top-info .van-cell ::v-deep input::-webkit-input-placeholder{color:#555}#worker_apply .main .top-info .van-cell ::v-deep input::-moz-placeholder{color:#555}#worker_apply .main .top-info .van-cell ::v-deep input:-ms-input-placeholder{color:#555}#worker_apply .main .top-info .van-cell ::v-deep input::-ms-input-placeholder{color:#555}#worker_apply .main .top-info .van-cell ::v-deep input::placeholder{color:#555}#worker_apply .main .bottom-info .van-cell__title{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;width:6rem;color:#555;text-align:left;font-weight:700}#worker_apply .main .bottom-info .van-cell__title em{color:#f86e6e;font-size:18px}#worker_apply .main .bottom-info .van-cell__title .top-title{display:inline-block;color:#f86e6e;font-weight:700;line-height:.875rem;font-size:.875rem;border-left:.2rem solid #f86e6e;padding-left:.5rem}.addressDiv{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:18px}",""]),e.exports=t},"9bb7":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"worker_apply"}},[i("div",{staticClass:"supplier"},[i("c-title",{attrs:{hide:!1,text:e.diyName+"申请"}}),i("van-swipe",{staticClass:"my-swipe",attrs:{"indicator-color":"white"}},e._l(e.bannerImg,(function(t,a){return i("van-swipe-item",{key:a},[i("img",{staticStyle:{width:"100%","max-height":"50vh"},attrs:{src:t.slide},on:{click:function(i){return i.stopPropagation(),e.gotoLink(t.link)}}})])})),1),0==e.apply_id?i("div",{staticClass:"main"},[i("van-cell-group",{staticClass:"store_apply top-info",attrs:{border:!1}},[i("van-cell",{staticClass:"otherTitle",attrs:{border:!1,center:""}},[i("span",{staticClass:"top-title",attrs:{slot:"title"},slot:"title"},[e._v("申请信息")])]),i("van-cell",{staticClass:"otherTitle",attrs:{border:!1,center:""}},[i("span",{attrs:{slot:"title"},slot:"title"},[e._v("姓名 "),i("em",[e._v("*")])]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.apply.name,expression:"apply.name"}],attrs:{slot:"default",type:"text",placeholder:"请输入姓名"},domProps:{value:e.apply.name},on:{input:function(t){t.target.composing||e.$set(e.apply,"name",t.target.value)}},slot:"default"})]),i("van-cell",{staticClass:"otherTitle",attrs:{border:!1,center:""}},[i("span",{attrs:{slot:"title"},slot:"title"},[e._v("手机号 "),i("em",[e._v("*")])]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.apply.mobile,expression:"apply.mobile"}],attrs:{slot:"default",type:"number",placeholder:"请输入联系电话"},domProps:{value:e.apply.mobile},on:{input:function(t){t.target.composing||e.$set(e.apply,"mobile",t.target.value)}},slot:"default"})]),i("van-cell",{staticClass:"otherTitle",attrs:{border:!1,center:""},scopedSlots:e._u([{key:"right-icon",fn:function(){return[i("van-icon",{staticClass:"search-icon",attrs:{name:"arrow"}})]},proxy:!0}],null,!1,1504804235)},[i("span",{attrs:{slot:"title"},slot:"title"},[e._v("所在区域 "),i("em",[e._v("*")])]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.addressName,expression:"addressName"}],attrs:{slot:"default",type:"text",readonly:"",placeholder:"请选择所在区域"},domProps:{value:e.addressName},on:{click:function(t){t.stopPropagation(),e.addressShow=!0},input:function(t){t.target.composing||(e.addressName=t.target.value)}},slot:"default"})]),e.strShow?i("van-cell",{staticClass:"otherTitle",attrs:{border:!1,center:""},scopedSlots:e._u([{key:"right-icon",fn:function(){return[i("van-icon",{staticClass:"search-icon",attrs:{name:"arrow"}})]},proxy:!0}],null,!1,1504804235)},[i("span",{attrs:{slot:"title"},slot:"title"},[e._v("街道 "),i("em",[e._v("*")])]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.street,expression:"street"}],attrs:{slot:"default",type:"text",readonly:"",placeholder:"请选择街道"},domProps:{value:e.street},on:{click:function(t){t.stopPropagation(),e.streetShow=!0},input:function(t){t.target.composing||(e.street=t.target.value)}},slot:"default"})]):e._e(),i("van-cell",{staticClass:"otherTitle",attrs:{border:!1,center:""}},[i("span",{attrs:{slot:"title"},slot:"title"},[e._v("身份证号 "),i("em",[e._v("*")])]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.apply.id_card_number,expression:"apply.id_card_number"}],attrs:{slot:"default",type:"number",placeholder:"请输入身份证号"},domProps:{value:e.apply.id_card_number},on:{input:function(t){t.target.composing||e.$set(e.apply,"id_card_number",t.target.value)}},slot:"default"})]),i("van-cell",{attrs:{border:!1}},[i("span",{staticClass:"blod-text",attrs:{slot:"title"},slot:"title"},[e._v("地理位置"),i("em",[e._v("*")])]),i("span",{staticStyle:{display:"flex","justify-content":"flex-end","align-items":"center"},attrs:{slot:"default"},slot:"default"},[i("div",{staticClass:"addressDiv",staticStyle:{"text-align":"right"}},[e._v(e._s(e.addressInfo))]),i("i",{staticClass:"iconfont icon-dingwei",staticStyle:{color:"#f86e6e","padding-right":"0.25rem"}}),i("div",{on:{click:function(t){return t.stopPropagation(),e.clickLocation.apply(null,arguments)}}},[e._v(e._s(e.addressInfo?"切换":"自动定位"))])])]),i("div",{staticStyle:{padding:"0 12px","text-align":"left"}},[i("p",{staticClass:"header_class"},[e._v("身份证人像面 "),i("em",{staticStyle:{color:"#f86e6e"}},[e._v("*")])]),i("div",{staticClass:"otherphoto",staticStyle:{"padding-bottom":"0.625rem"}},[i("div",{staticClass:"imgflex",on:{click:function(t){return e.selectIndex(6)}}},[i("van-uploader",{staticStyle:{width:"100%"},attrs:{"after-read":e.onRead}},[i("div",{staticStyle:{padding:"0.25rem 1rem",width:"100%",height:"11rem"}},[i("img",{staticClass:"avatar",staticStyle:{width:"100%"},attrs:{src:e.apply.id_card_image_back?e.apply.id_card_image_back:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bg_idcard_up@2x.png"}})])])],1)]),i("p",{staticClass:"header_class"},[e._v("身份证国徽面 "),i("em",{staticStyle:{color:"#f86e6e"}},[e._v("*")])]),i("div",{staticClass:"otherphoto",staticStyle:{"padding-bottom":"0.625rem"}},[i("div",{staticClass:"imgflex",on:{click:function(t){return e.selectIndex(5)}}},[i("van-uploader",{staticStyle:{width:"100%"},attrs:{"after-read":e.onRead}},[i("div",{staticStyle:{padding:"0.25rem 1rem",width:"100%",height:"11rem"}},[i("img",{staticClass:"avatar",staticStyle:{width:"100%"},attrs:{src:e.apply.id_card_image_front?e.apply.id_card_image_front:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bg_idcard_down@2x.png"}})])])],1)]),i("p",{staticClass:"header_class"},[e._v("其他图片")]),i("yz_uploader",{model:{value:e.fileList1,callback:function(t){e.fileList1=t},expression:"fileList1"}})],1)],1),i("van-cell-group",{staticClass:"store_apply bottom-info",attrs:{border:!1}},[i("van-cell",{staticClass:"otherTitle",attrs:{border:!1,center:""}},[i("span",{staticClass:"top-title",attrs:{slot:"title"},slot:"title"},[e._v("备注信息")])]),i("van-cell",{staticClass:"otherTitle",staticStyle:{"padding-bottom":"0.625rem"},attrs:{border:!1,center:""}},[i("van-field",{staticStyle:{"background-color":"#f8f8f8","border-radius":"0.469rem",padding:"10px"},attrs:{rows:"3",autosize:"",type:"textarea",maxlength:"100",placeholder:"填写备注信息","show-word-limit":""},model:{value:e.apply.user_comment,callback:function(t){e.$set(e.apply,"user_comment",t)},expression:"apply.user_comment"}})],1)],1),i("div",{staticClass:"agreement_box"},[i("van-checkbox",{attrs:{"checked-color":"#f15353"},model:{value:e.agreementChoose,callback:function(t){e.agreementChoose=t},expression:"agreementChoose"}}),e._v(" "),i("i",{staticStyle:{color:"#ff5959","padding-left":"0.5rem"},on:{click:function(t){e.agreementShow=!0}}},[e._v("注册协议")])],1),i("div",{staticStyle:{clear:"both","margin-top":"0.9375rem"}}),i("input",{staticClass:"btn",attrs:{type:"submit",value:"提交"},on:{click:e.setApplyData}})],1):e._e(),0!=e.apply_id?i("div",{staticClass:"success"},[e._m(0),i("div",{staticClass:"text"},[e._v("已提交申请,等待审核通过...")]),i("a",{on:{click:function(t){return e.cancelApply()}}},[i("div",{staticClass:"sub"},[e._v("取消申请")])])]):e._e()],1),i("yd-cityselect",{attrs:{callback:e.addressCallback,items:e.area},model:{value:e.addressShow,callback:function(t){e.addressShow=t},expression:"addressShow"}}),i("van-popup",{style:{height:"100%",width:"100%"},attrs:{position:"right"},model:{value:e.streetShow,callback:function(t){e.streetShow=t},expression:"streetShow"}},[i("van-nav-bar",{attrs:{title:"选择街道"},scopedSlots:e._u([{key:"left",fn:function(){return[i("span",[i("van-icon",{attrs:{name:"arrow-left",size:"18",color:"#333"},nativeOn:{click:function(t){e.streetShow=!1}}})],1)]},proxy:!0}])}),i("div",{staticStyle:{clear:"both","margin-top":"2.5rem"}}),e._l(e.districtVal,(function(t,a){return i("van-cell",{key:a,attrs:{border:!1,center:"","is-link":"","title-style":"text-align:left"},nativeOn:{click:function(i){return e.streetConfirm(t)}}},[i("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.areaname))])])}))],2),i("van-popup",{style:{height:"50%",width:"18rem"},attrs:{closeable:"",round:""},model:{value:e.agreementShow,callback:function(t){e.agreementShow=t},expression:"agreementShow"}},[i("h2",{staticStyle:{height:"3rem","line-height":"3rem","font-size":"1rem"}},[e._v("注册协议")]),i("div",{staticClass:"agreement-box",staticStyle:{"text-align":"left","font-size":"0.875rem","line-height":"1.25rem",padding:"0.875rem"},domProps:{innerHTML:e._s(e.o2o_info)}})]),i("location",{on:{confirm:e.confirmLocation},model:{value:e.showLocation,callback:function(t){e.showLocation=t},expression:"showLocation"}})],1)},o=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ico"},[i("i",{staticClass:"fa fa-check"})])}],l=(i("e7e5"),i("d399")),r=(i("b0c0"),i("14d9"),i("d3b7"),i("25f0"),i("e9c4"),i("ac1f"),i("00b4"),i("67a0")),s=i("46ef"),n=document.createElement("canvas"),p=n.getContext("2d"),c={data:function(){return{apply_id:0,signature:"",apply:{other_image:[],name:"",mobile:"",province_id:"",city_id:"",district_id:"",street_id:"",address:"",id_card_image_front:"",id_card_image_back:"",user_comment:""},imageUrl:"",uploadUrl:"",agreement:"",categoryShow:!1,addressShow:!1,streetShow:!1,addressName:"",categoryName:"",area:district,province:"",city:"",district:"",addressInfo:"定位中...",street:"",strShow:!1,districtVal:[],agreementChoose:!1,agreementShow:!1,photosize:5242880,status:"",cservice:"",selectImgIndex:null,bannerImg:"",msgText:"",diyName:"",showLocation:!1,fileList1:[]}},activated:function(){var e=this;this.init(),this.getData(),this.fun.getLocation().then((function(t){e.addressInfo=t.title;var i=e.fun.bd_encrypt(t.point.lng,t.point.lat);e.apply.lng=i.lng,e.apply.lat=i.lat})).catch((function(e){}))},mounted:function(){},methods:{init:function(){this.status=!1,this.apply_id=0,this.apply.name="",this.apply.mobile="",this.apply.lng="",this.apply.lat="",this.apply.province_id="",this.apply.city_id="",this.apply.district_id="",this.apply.street_id="",this.apply.id_card_image_front="",this.apply.id_card_image_back="",this.apply.user_comment="",this.agreementChoose=!1,this.selectImgIndex=null,this.otherImg=[],this.imageUrl="",this.uploadUrl=this.fun.getRealUrl("upload.uploadPic",{}),this.msgText=""},getData:function(){var e=this;$http.get("plugin.live-install.frontend.worker-apply.getWorkerApply",{},"加载中...").then((function(t){1===t.result?(e.diyName=t.data.another_name.worker_name,e.fun.setWXTitle(e.diyName+"申请"),e.apply_id=t.data.apply_data.apply_id,e.o2o_info=t.data.apply_text,e.bannerImg=t.data.slide_list):Object(l["a"])(t.msg)}),(function(e){}))},gotoLink:function(e){e&&(window.location.href=e)},clickLocation:function(){this.showLocation=!0},confirmLocation:function(e){this.apply.lng=e.point.lng,this.apply.lat=e.point.lat,this.apply.address=e.point.address,this.addressInfo=e.title},setApplyData:function(){if(this.fun.isTextEmpty(this.apply.name))Object(l["a"])("请填写真实姓名");else if(this.fun.isTextEmpty(this.apply.mobile))Object(l["a"])("请填写手机号码");else if(this.fun.isMoblie(this.apply.mobile))Object(l["a"])("请输入正确的手机号");else if(this.fun.isTextEmpty(this.apply.province_id)||this.fun.isTextEmpty(this.apply.city_id)||this.fun.isTextEmpty(this.apply.district_id))Object(l["a"])("请选择省市区");else if(this.fun.isTextEmpty(this.apply.street_id))Object(l["a"])("请在后台系统-交易设置-开启街道地址");else if(this.fun.isTextEmpty(this.apply.id_card_number))Object(l["a"])("请填写身份证号");else if(this.fun.isTextEmpty(this.apply.id_card_image_front))Object(l["a"])("请上传身份证正面");else if(this.fun.isTextEmpty(this.apply.id_card_image_back))Object(l["a"])("请上传身份证背面");else if(this.fun.isTextEmpty(this.apply.lng)||this.fun.isTextEmpty(this.apply.lat))Object(l["a"])("经纬度为空,请定位位置");else if(this.agreementChoose){var e=this;this.apply.other_image=this.fileList1;var t=this.apply,i="plugin.live-install.frontend.worker-apply.addApply";$http.post(i,t,"提交中").then((function(t){1===t.result?(Object(l["a"])(t.msg),e.getData()):Object(l["a"])(t.msg)}),(function(e){}))}else Object(l["a"])("请同意注册协议")},goToIndex:function(){this.$router.push(this.fun.getUrl("home"))},cancelApply:function(){var e=this;$http.get("plugin.live-install.frontend.worker-apply.cancelApply",{apply_id:this.apply_id},"..").then((function(t){1==t.result?(Object(l["a"])(t.msg),e.goToIndex()):Object(l["a"])(t.msg)})).catch((function(e){}))},getLocation:function(){var e=this,t=new AMap.Map("iCenter");function i(t){var i=t.position.toString().split(",");e.point={lat:i[1],lng:i[0]},e.addressInfo=t.formattedAddress,e.apply.address=t.formattedAddress,e.title=t.formattedAddress,e.city=e.fun.isTextEmpty(t.addressComponent.city)?t.addressComponent.province:t.addressComponent.city;var a=e.fun.bd_encrypt(e.point.lng,e.point.lat);e.apply.lng=a.lng,e.apply.lat=a.lat;var o={address:t.formattedAddress,city:e.city,title:t.formattedAddress,point:e.point};e.$store.commit("updateLocation",o),e.$store.commit("setLocation",o),window.localStorage.setItem("myLocation",JSON.stringify(o))}function a(e){}t.plugin("AMap.Geolocation",(function(){var e=new AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4,maximumAge:0,convert:!0,showButton:!0,buttonPosition:"LB",buttonOffset:new AMap.Pixel(10,20),showMarker:!0,showCircle:!0,panToLocation:!0,zoomToAccuracy:!0});t.addControl(e),e.getCurrentPosition(),AMap.event.addListener(e,"complete",i),AMap.event.addListener(e,"error",a)}))},showCategory:function(){this.categoryShow=!0},addressCallback:function(e){this.addressName=e.itemName1+" "+e.itemName2+" "+e.itemName3,this.provice=e.itemName1,this.city=e.itemName2,this.district=e.itemName3,this.apply.province_id=e.itemValue1,this.apply.city_id=e.itemValue2,this.apply.district_id=e.itemValue3,this.getStreet(e.itemValue3)},streetConfirm:function(e){this.street=e.areaname,this.apply.street_id=e.id,this.streetShow=!1},getStreet:function(e){var t=this;$http.get("member.memberAddress.street",{district_id:e}).then((function(e){1===e.result&&!t.fun.isTextEmpty(e.data)&&e.data.length>0?(t.districtVal=e.data,t.strShow=!0):t.strShow=!1})).catch((function(e){}))},getImgUpload:function(){var e=this;$http.get("plugin.store-cashier.frontend.store.store.upload",{}).then((function(t){1===t.result&&(e.storeImg=resposne.data.img)})).catch((function(e){}))},showAgreement:function(){this.agreementShow=!0},hideAgreement:function(){this.agreementShow=!1},onComplete:function(e){this.apply.lng=e.position.getLng(),this.apply.lat=e.position.getLat()},onError:function(e){Object(l["a"])(e.message)},imgPreview:function(e,t){var i=this;if(e&&window.FileReader&&/^image/.test(e.type)){var a=new FileReader;a.readAsDataURL(e),a.onloadend=function(){var a=this.result,o=new Image;o.src=a,o.onload=function(){var a=this.width,l=this.height,r=400,s=400,c=a,d=l;(a>r||l>s)&&(a/l>r/s?(c=r,d=Math.round(r*(l/a))):(d=s,c=Math.round(s*(a/l)))),n.width=c,n.height=d,p.clearRect(0,0,c,d),p.drawImage(o,0,0,c,d),n.toBlob((function(e){1===t?i.onRead(e,!0):i.onRead_1(e,!0)}),e.type||"image/png")}}}},selectIndex:function(e){this.selectImgIndex=e},onRead:function(e,t){l["a"].loading({message:"上传中",forbidClick:!0});var i=new FormData;!0===t?i.append("file",e):i.append("file",e.file);var a=this;axios.post(this.uploadUrl,i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var t=e.data;if(1===t.result)switch(l["a"].clear(),a.selectImgIndex){case 5:a.apply.id_card_image_front=t.data.img_url;break;case 6:a.apply.id_card_image_back=t.data.img_url;break;default:return}else Object(l["a"])(t.msg),l["a"].clear()})).catch((function(e){l["a"].clear()}))},onphotosize:function(e){this.imgPreview(e.file,1)},onphotosize2:function(e){this.imgPreview(e.file,2)}},components:{location:r["a"],yz_uploader:s["a"]}},d=c,m=d,h=(i("c8a35"),i("2877")),f=Object(h["a"])(m,a,o,!1,null,null,null);t["default"]=f.exports},bb36:function(e,t,i){var a=i("2d68");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=i("499e").default;o("56bfaf14",a,!0,{sourceMap:!1,shadowMode:!1})},c8a35:function(e,t,i){"use strict";i("bb36")}}]); |