(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-618a0a70"],{"0043":function(e,t,i){"use strict";i("bdfc")},"00b4":function(e,t,i){"use strict";i("ac1f");var n=i("23e7"),c=i("da84"),r=i("c65b"),a=i("e330"),o=i("1626"),s=i("861d"),A=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),g=c.Error,f=a(/./.test);n({target:"RegExp",proto:!0,forced:!A},{test:function(e){var t=this.exec;if(!o(t))return f(this,e);var i=r(t,this,e);if(null!==i&&!s(i))throw new g("RegExp exec method returned something other than an Object or null");return!!i}})},"6d97":function(e,t,i){"use strict";i.r(t);var n=i("f2bf"),c=i("eadd"),r=i.n(c),a=i("cce5"),o=i.n(a),s=function(e){return Object(n["C"])("data-v-08130549"),e=e(),Object(n["A"])(),e},A={class:"CompanyRegistered"},g=s((function(){return Object(n["i"])("div",{class:"flowbox"},[Object(n["i"])("div",{class:"flowcon"},[Object(n["i"])("img",{src:r.a,class:"circle2"}),Object(n["i"])("i",{class:"lines2"}),Object(n["i"])("img",{src:r.a,class:"circle2"}),Object(n["i"])("i",{class:"lines2"}),Object(n["i"])("img",{src:o.a,class:"circle1"})]),Object(n["i"])("div",{class:"flowpox"},[Object(n["i"])("div",{style:{color:"#478ff3"}},"上传身份信息"),Object(n["i"])("div",{style:{"margin-left":"24px",color:"#478ff3"}},"上传企业信息"),Object(n["i"])("div",{style:{"margin-left":"50px"}},"完成")])],-1)})),f={class:"fabox"},u={class:"upphoto"},l=s((function(){return Object(n["i"])("h1",{class:"bigtitle"},"上传营业执照",-1)})),d=s((function(){return Object(n["i"])("h2",{class:"stitle"},"完成认证需要核实营业执照信息,请拍摄企业的营业执照",-1)})),m={class:"photobox"},B=["src"],C=Object(n["j"])("完成认证");function h(e,t,i,c,r,a){var o=Object(n["G"])("van-nav-bar"),s=Object(n["G"])("van-field"),h=Object(n["G"])("van-cell-group"),p=Object(n["G"])("van-uploader"),w=Object(n["G"])("van-button");return Object(n["z"])(),Object(n["h"])("div",A,[Object(n["k"])(o,{title:"企业认证","left-arrow":"",onClickLeft:a.onClickLeft},null,8,["onClickLeft"]),g,Object(n["i"])("div",f,[Object(n["k"])(h,{inset:"",style:{border:"1px solid #ccc"}},{default:Object(n["O"])((function(){return[Object(n["k"])(s,{modelValue:r.form.company_name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return r.form.company_name=e}),label:"企业名称",placeholder:"请输入企业名称"},null,8,["modelValue"]),Object(n["k"])(s,{modelValue:r.form.company_sn,"onUpdate:modelValue":t[1]||(t[1]=function(e){return r.form.company_sn=e}),label:"社会信用代码",placeholder:"请输入社会信用代码"},null,8,["modelValue"])]})),_:1})]),Object(n["i"])("div",u,[l,d,Object(n["i"])("div",m,[Object(n["k"])(p,{"after-read":a.afterRead},{default:Object(n["O"])((function(){return[Object(n["i"])("img",{src:null==r.form.company_img?"img/zhizao.png":a.setImg(r.form.company_img),style:{width:"300px",height:"194px"}},null,8,B)]})),_:1},8,["after-read"])])]),Object(n["i"])("div",{class:"nextbtn",onClick:t[2]||(t[2]=function(){return a.nextClick&&a.nextClick.apply(a,arguments)})},[Object(n["k"])(w,{type:"primary",block:"",round:"",size:"large",color:"#2f58e4"},{default:Object(n["O"])((function(){return[C]})),_:1})])])}i("e17f");var p=i("2241"),w=(i("ac1f"),i("00b4"),i("e9c4"),i("c1fb")),Q=i("c1df"),O=i.n(Q),R={name:"Companytwo",data:function(){return{loading:!1,finished:!1,refreshing:!1,form:{name:"",idcard:"",phone:"",idcard_front_img:null,idcard_back_img:null,company_name:"",company_sn:"",company_img:null}}},mounted:function(){var e=localStorage.getItem("data");null!=e&&(this.form=JSON.parse(e))},methods:{nextClick:function(){var e=this,t=/^[\u4e00-\u9fa5]{2,60}$/;null==this.form.company_name||this.form.company_name.length<2||!t.test(this.form.company_name)?p["a"].alert({message:"企业名称输入错误"}):0!=this.Tyshyxdm(this.form.company_sn)?null!=this.form.company_img?(localStorage.setItem("data",JSON.stringify(this.form)),this.form["org_id"]=Object(w["b"])("org_id"),Object(w["e"])("app/user/auth",this.form).then((function(t){Object(w["f"])(t.result),e.$router.push({path:"/companyfinish"})}))):p["a"].alert({message:"请上传营业执照文件"}):p["a"].alert({message:"统一社会信用代码错误"})},afterRead:function(e){console.log(e);var t=this;Object(w["e"])("app/user/upload",{file:e.content}).then((function(e){t.form.company_img=e.result}))},getTime:function(e){return O()(1e3*e).format("YYYY-MM-DD HH:mm:ss")},setImg:function(e){return null==e||""==e?"./img/logo.png":w["a"]+"/"+e},onClickLeft:function(){return history.back()},Tyshyxdm:function(e){return!(null==e||e.length<5)&&(this.firstarray=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],this.firstkeys=[3,7,9,10,5,8,4,2],this.secondarray=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","T","U","W","X","Y"],this.secondkeys=[1,3,9,27,19,26,16,17,20,29,25,13,8,24,10,30,28],this.verify=function(e){var t=e.toUpperCase();if(18!=t.length)return!1;var i=/^\w\w\d{6}\w{9}\w$/;if(!i.test(t))return!1;if(i=/^[1,5,9,Y]\w\d{6}\w{9}\w$/,!i.test(t))return!1;if(i=/^(11|12|13|19|51|52|53|59|91|92|93|Y1)\d{6}\w{9}\w$/,!i.test(t))return!1;if(i=/^(11|12|13|19|51|52|53|59|91|92|93|Y1)\d{6}\w{9}\w$/,!i.test(t))return!1;var n,c=this.calc(t.substr(8),this.firstarray,this.firstkeys,11);if(c<10&&(n=c),10==c?n="X":11==c&&(n="0"),n!=t.substr(16,1))return!1;var r=this.calc(t,this.secondarray,this.secondkeys,31),a=this.secondarray[r];if(!a||a!=t.substr(17,1))return!1;var o=t.substr(0,16)+n+a;return t==o},this.calc=function(e,t,i,n){for(var c=0,r=0;r