chunk-2d26d73c.2f0de858.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d26d73c"],{"0faa":function(e,t,a){"use strict";a("c301")},ac27:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"real",attrs:{"element-loading-text":"Loading","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"}},[0==e.realStatus?a("el-form",{ref:"realForm",staticClass:"real-form",attrs:{"label-width":"120px",model:e.realForm,rules:e.realRules,"hide-required-asterisk":""}},[a("el-row",[a("el-col",{attrs:{sm:12,lg:9,xl:6}},[a("el-form-item",{attrs:{prop:"type",label:"证件类型:"}},[a("el-select",{staticStyle:{width:"250px"},attrs:{size:"small",placeholder:"请选择"},model:{value:e.realForm.type,callback:function(t){e.$set(e.realForm,"type",t)},expression:"realForm.type"}},e._l(e.typeList,(function(e){return a("el-option",{key:e.code,attrs:{value:e.code,label:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{sm:12,lg:15,xl:18}},[a("el-form-item",{attrs:{prop:"mobile",label:"手机号码:"}},[a("el-input",{ref:"mobile",staticStyle:{width:"220px"},attrs:{type:"text",size:"small",name:"mobile",placeholder:"请输入手机号码",disabled:!0},model:{value:e.realForm.mobile,callback:function(t){e.$set(e.realForm,"mobile",t)},expression:"realForm.mobile"}}),e._v(" "),e.realForm.mobile?e._e():a("el-button",{staticClass:"code",attrs:{type:"danger",size:"small",disabled:e.countDown>0,plain:""},nativeOn:{click:function(t){return t.preventDefault(),e.getCode(t)}}},[e._v(e._s(e.countDown>0?e.countDown+"s":"获取验证码"))])],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{sm:12,lg:9,xl:6}},[a("el-form-item",{attrs:{prop:"idNo",label:"证件号码:"}},[a("el-input",{ref:"idNo",staticStyle:{width:"250px"},attrs:{type:"text",size:"small",name:"idNo",placeholder:"请输入证件号码"},model:{value:e.realForm.idNo,callback:function(t){e.$set(e.realForm,"idNo",t)},expression:"realForm.idNo"}})],1)],1),e._v(" "),a("el-col",{attrs:{sm:12,lg:15,xl:18}},[e.realForm.mobile?e._e():a("el-form-item",{attrs:{prop:"code",label:"验证码:"}},[a("el-input",{ref:"code",staticStyle:{width:"220px"},attrs:{type:"text",size:"small",name:"code",placeholder:"请输入验证码"},model:{value:e.realForm.code,callback:function(t){e.$set(e.realForm,"code",t)},expression:"realForm.code"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{sm:12,lg:9,xl:6}},[a("el-form-item",{attrs:{prop:"name",label:"1"==e.realForm.type?"企业名称:":"姓名:"}},[a("el-input",{ref:"name",staticStyle:{width:"250px"},attrs:{type:"text",size:"small",name:"name",placeholder:"1"==e.realForm.type?"企业名称":"请输入姓名"},model:{value:e.realForm.name,callback:function(t){e.$set(e.realForm,"name",t)},expression:"realForm.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12,lg:15,xl:18}},["1"==e.realForm.type?a("el-form-item",{attrs:{prop:"userName",label:"管理员姓名:"}},[a("el-input",{ref:"userName",staticStyle:{width:"250px"},attrs:{type:"text",size:"small",name:"userName",placeholder:"管理员姓名"},model:{value:e.realForm.userName,callback:function(t){e.$set(e.realForm,"userName",t)},expression:"realForm.userName"}})],1):e._e()],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{sm:12,lg:9,xl:6}},["1"==e.realForm.type?a("el-form-item",{attrs:{prop:"imageUrl",label:"营业执照:"}},[e.realForm.imageUrl?a("div",{staticClass:"image"},[a("el-image",{staticClass:"img",attrs:{fit:"contain",src:e.realForm.imageUrl,"preview-src-list":[e.realForm.imageUrl]}}),e._v(" "),a("div",{staticClass:"operation"},[a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return e.fileRemove("image")}}})])],1):a("el-upload",{ref:"upload",staticClass:"image",attrs:{action:"string",accept:"image/jpeg, image/png, image/jpg",multiple:!1,limit:1,"before-upload":e.onBeforeUploadImage,"http-request":e.UploadImage,"on-remove":e.fileRemove("image"),"show-file-list":!1}},[a("i",{staticClass:"el-icon-circle-plus upload-icon"}),e._v(" "),a("p",[e._v("上传营业执照")])])],1):e._e()],1),e._v(" "),a("el-col",{attrs:{sm:12,lg:15,xl:18}},["1"==e.realForm.type?a("el-form-item",{attrs:{label:"其他:"}},[a("div",{staticClass:"upimg"},[e.realForm.upImg1?a("div",{staticClass:"image"},[a("el-image",{staticClass:"img",attrs:{fit:"contain",src:e.realForm.upImg1,"preview-src-list":[e.realForm.upImg1]}}),e._v(" "),a("div",{staticClass:"operation"},[a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return e.fileRemove("img1")}}})])],1):a("el-upload",{ref:"upload1",staticClass:"image",attrs:{action:"string",accept:"image/jpeg, image/png, image/jpg",multiple:!1,limit:1,"before-upload":e.onBeforeUploadImage,"http-request":e.UploadImage1,"on-remove":e.fileRemove("img1"),"show-file-list":!1}},[a("i",{staticClass:"el-icon-circle-plus upload-icon"}),e._v(" "),a("p",[e._v("上传其他材料")])]),e._v(" "),e.realForm.upImg2?a("div",{staticClass:"image"},[a("el-image",{staticClass:"img",attrs:{fit:"contain",src:e.realForm.upImg2,"preview-src-list":[e.realForm.upImg2]}}),e._v(" "),a("div",{staticClass:"operation"},[a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return e.fileRemove("img2")}}})])],1):a("el-upload",{ref:"upload2",staticClass:"image",attrs:{action:"string",accept:"image/jpeg, image/png, image/jpg",multiple:!1,limit:1,"before-upload":e.onBeforeUploadImage,"http-request":e.UploadImage2,"on-remove":e.fileRemove("img2"),"show-file-list":!1}},[a("i",{staticClass:"el-icon-circle-plus upload-icon"}),e._v(" "),a("p",[e._v("上传其他材料")])]),e._v(" "),e.realForm.upImg3?a("div",{staticClass:"image"},[a("el-image",{staticClass:"img",attrs:{fit:"contain",src:e.realForm.upImg3,"preview-src-list":[e.realForm.upImg3]}}),e._v(" "),a("div",{staticClass:"operation"},[a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return e.fileRemove("img3")}}})])],1):a("el-upload",{ref:"upload3",staticClass:"image",attrs:{action:"string",accept:"image/jpeg, image/png, image/jpg",multiple:!1,limit:1,"before-upload":e.onBeforeUploadImage,"http-request":e.UploadImage3,"on-remove":e.fileRemove("img3"),"show-file-list":!1}},[a("i",{staticClass:"el-icon-circle-plus upload-icon"}),e._v(" "),a("p",[e._v("上传其他材料")])])],1)]):e._e()],1)],1),e._v(" "),a("el-form-item",[a("el-button",{staticClass:"next-btn",attrs:{type:"danger",size:"small"},nativeOn:{click:function(t){return t.preventDefault(),e.Next(t)}}},[e._v("确认")])],1)],1):e._e(),e._v(" "),0!=e.realStatus?a("div",{staticClass:"real-content"},[2==e.realStatus?a("div",{staticClass:"status"},[a("i",{staticClass:"el-icon-circle-check success"}),e._v(" "),a("span",[e._v("恭喜您,认证成功!")])]):e._e(),e._v(" "),3==e.realStatus?a("div",{staticClass:"status"},[a("i",{staticClass:"el-icon-warning fail"}),e._v(" "),a("span",[e._v("认证失败,请重新认证")])]):e._e(),e._v(" "),1==e.realStatus?a("div",{staticClass:"status"},[a("i",{staticClass:"el-icon-time wait"}),e._v(" "),a("span",[e._v("认证中,请耐心等待...")])]):e._e(),e._v(" "),a("div",{staticClass:"real-result",style:{width:"1"==e.realForm.type?"490px":"265px"}},[a("div",{staticClass:"result-item"},[a("div",{staticClass:"lable"},[e._v("证件类型:")]),e._v(" "),a("div",{staticClass:"item"},[e._v("\n "+e._s("1"==e.realForm.type?"统一社会代码":"身份证")+"\n ")])]),e._v(" "),a("div",{staticClass:"result-item"},[a("div",{staticClass:"lable"},[e._v("证件号码:")]),e._v(" "),a("div",{class:["item",3==e.realStatus?"fail":""]},[e._v("\n "+e._s(e.realForm.idNo)+"\n ")]),e._v(" "),3==e.realStatus?a("span",[e._v("×")]):e._e()]),e._v(" "),a("div",{staticClass:"result-item"},[a("div",{staticClass:"lable"},[e._v("\n "+e._s("1"==e.realForm.type?"企业名称:":"姓名:")+"\n ")]),e._v(" "),a("div",{staticClass:"item"},[e._v(e._s(e.realForm.name))])]),e._v(" "),"1"==e.realForm.type?a("div",{staticClass:"result-item"},[a("div",{staticClass:"lable"},[e._v("\n 管理员姓名:\n ")]),e._v(" "),a("div",{staticClass:"item"},[e._v(e._s(e.realForm.userName))])]):e._e(),e._v(" "),"1"==e.realForm.type?a("div",{staticClass:"result-item"},[a("div",{staticClass:"lable"},[e._v("营业执照:")]),e._v(" "),a("div",{staticClass:"item"},[a("el-image",{staticClass:"img",attrs:{fit:"contain",src:e.realForm.imageUrl,"preview-src-list":[e.realForm.imageUrl]}})],1)]):e._e(),e._v(" "),"1"==e.realForm.type?a("div",{staticClass:"result-item"},[a("div",{staticClass:"lable"},[e._v("其他材料:")]),e._v(" "),a("div",{staticClass:"item"},[a("el-image",{staticClass:"img",attrs:{fit:"contain",src:e.realForm.upImg1,"preview-src-list":[e.realForm.upImg1]}})],1),e._v(" "),a("div",{staticClass:"item"},[a("el-image",{staticClass:"img",attrs:{fit:"contain",src:e.realForm.upImg2,"preview-src-list":[e.realForm.upImg2]}})],1),e._v(" "),a("div",{staticClass:"item"},[a("el-image",{staticClass:"img",attrs:{fit:"contain",src:e.realForm.upImg3,"preview-src-list":[e.realForm.upImg3]}})],1)]):e._e(),e._v(" "),3==e.realStatus?a("div",{staticClass:"btn"},[a("el-button",{staticClass:"next-btn",attrs:{type:"danger",size:"small"},nativeOn:{click:function(t){return t.preventDefault(),e.Next(t)}}},[e._v("重新认证")])],1):e._e()])]):e._e()],1)},i=[],r=(a("7f7f"),a("b775")),s={name:"Real",data:function(){var e=function(e,t,a){t?a():a(new Error("请输入姓名或企业名称"))},t=function(e,t,a){t?a():a(new Error("请选择证件类型"))},a=function(e,t,a){t?a():a(new Error("请输入证件号码"))},l=function(e,t,a){t?a():a(new Error("请上传营业执照"))},i=function(e,t,a){t?a():a(new Error("请输入管理员姓名"))};return{mobileFlog:"",loading:!1,countDown:"00",realStatus:this.$store.getters.realStatus||0,typeList:[{code:"0",name:"身份证"},{code:"1",name:"统一社会代码"}],userType:"",realForm:{name:"",userName:"",type:"",idNo:"",mobile:"",code:"",imageUrl:"",upImg1:"",upImg2:"",upImg3:""},realRules:{name:[{required:!0,trigger:"blur",validator:e}],type:[{required:!0,trigger:"blur",validator:t}],idNo:[{required:!0,trigger:"blur",validator:a}],imageUrl:[{required:!0,trigger:"blur",validator:l}],userName:[{required:!0,trigger:"blur",validator:i}]},fileId:"",fileId1:"",fileId2:"",fileId3:""}},computed:{},created:function(){this.checkReal(),"0"!==this.$store.getters.userType?this.realForm.type="1":this.realForm.type="0"},methods:{checkReal:function(){var e=this,t={transCode:"B00001"};Object(r["c"])(t).then((function(t){e.realStatus=t.authenticationState,0!=t.authenticationState&&(e.$store.dispatch("user/changeState",{key:"userType",value:t.userType}),e.$store.dispatch("user/changeState",{key:"realStatus",value:t.authenticationState}),e.realForm.name=t.certName?t.certName:t.userName,e.userType=t.userType,e.realForm.idNo=t.certNo,e.realForm.userName=t.adminName,e.fileId=t.fileId,e.realForm.imageUrl=t.fileId?Object(r["b"])(t.fileId):"",e.realForm.upImg1=t.fileId1?Object(r["b"])(t.fileId1):"",e.realForm.upImg2=t.fileId2?Object(r["b"])(t.fileId2):"",e.realForm.upImg3=t.fileId3?Object(r["b"])(t.fileId3):""),e.realForm.mobile=t.mobileNo})).catch((function(e){}))},onBeforeUploadImage:function(e){var t="image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type;return t||this.$message.error("上传文件只能是图片格式!"),t},theLast:function(){var e=this;this.countDown=60;var t=setInterval((function(){e.countDown>0?(e.countDown--,e.countDown<10&&(e.countDown="0"+e.countDown)):clearInterval(t)}),1e3)},getCode:function(){var e=this;if(this.mobileFlog=1,this.countDown>0)return this.$message.error("请不要频繁点击!");if(!this.realForm.mobile)return this.$message.error("请输入手机号码!");var t={transCode:"A00001",mailOrPhone:this.realForm.mobile,type:"4",channel:"1"};Object(r["c"])(t).then((function(t){e.$message.success("验证码已发送至手机号码: ".concat(e.realForm.mobile," ,请注意查收!")),e.theLast()})).catch((function(e){}))},UploadImage:function(e){var t=this;this.realForm.imageUrl=URL.createObjectURL(e.file),this.$refs.upload.clearFiles();var a=new FormData;a.append("transCode","B00021"),a.append("file",e.file),Object(r["d"])(a).then((function(e){t.fileId=e.fileId})).catch((function(e){}))},UploadImage1:function(e){var t=this;this.realForm.upImg1=URL.createObjectURL(e.file),this.$refs.upload1.clearFiles();var a=new FormData;a.append("transCode","B00021"),a.append("file",e.file),Object(r["d"])(a).then((function(e){t.fileId1=e.fileId})).catch((function(e){}))},UploadImage2:function(e){var t=this;this.realForm.upImg2=URL.createObjectURL(e.file),this.$refs.upload2.clearFiles();var a=new FormData;a.append("transCode","B00021"),a.append("file",e.file),Object(r["d"])(a).then((function(e){t.fileId2=e.fileId})).catch((function(e){}))},UploadImage3:function(e){var t=this;this.realForm.upImg3=URL.createObjectURL(e.file),this.$refs.upload3.clearFiles();var a=new FormData;a.append("transCode","B00021"),a.append("file",e.file),Object(r["d"])(a).then((function(e){t.fileId3=e.fileId})).catch((function(e){}))},fileRemove:function(e){switch(e){case"image":this.realForm.imageUrl="";break;case"img1":this.realForm.upImg1="";break;case"img2":this.realForm.upImg2="";break;case"img3":this.realForm.upImg3="";break;default:}},Next:function(){var e=this;0==this.realStatus?this.$refs.realForm.validate((function(t){if(!t)return!1;e.loading=!0;var a={transCode:"B00020",certName:e.realForm.name,certNo:e.realForm.idNo,type:e.realForm.type,mobnub:e.realForm.mobile,verificationCode:1==e.mobileFlog?e.realForm.code:"",adminName:"1"==e.realForm.type?e.realForm.userName:"",fileId:"1"==e.realForm.type?e.fileId:"",fileId1:"1"==e.realForm.type?e.fileId1:"",fileId2:"1"==e.realForm.type?e.fileId2:"",fileId3:"1"==e.realForm.type?e.fileId3:""};Object(r["c"])(a).then((function(t){e.realStatus=t.authenticationState,e.loading=!1})).catch((function(t){e.loading=!1}))})):this.realStatus=0}}},o=s,c=(a("ba8ec"),a("0faa"),a("2877")),n=Object(c["a"])(o,l,i,!1,null,"7c937890",null);t["default"]=n.exports},ba8ec:function(e,t,a){"use strict";a("e2ee")},c301:function(e,t,a){e.exports={color_0:"#000",color_1:"#111",color_2:"#222",color_3:"#333",color_4:"#444",color_5:"#555",color_6:"#666",color_7:"#777",color_8:"#888",color_9:"#999",color_a:"#aaa",color_b:"#bbb",color_c:"#ccc",color_d:"#ddd",color_e:"#eee",color_f2:"#f2f2f2",color_f5:"#f5f5f5",color_fa:"#fafafa",color_fc:"#fcfcfc",color_f:"#fff",color_on:"#F66420",pad:"20px"}},e2ee:function(e,t,a){}}]);