7.bc6394b769b3a03a77bd.js 19 KB

1
  1. webpackJsonp([7],{"4CBO":function(a,t,i){var e=i("yGwj"),r=i("LsW0"),d=i("cGqX"),o=i("iLFv");t=e(!0);var n=r(d),l=r(o);t.push([a.i,"\n.el-input-group__append[data-v-4394c808]{border-radius:0 !important\n}\n.avatar-uploader[data-v-4394c808]{border-radius:6px;cursor:pointer;position:relative;overflow:hidden;margin-right:30px;width:270px;height:170px\n}\n.avatar-uploader .el-upload[data-v-4394c808]{width:270px !important;height:170px !important;border-color:#409EFF\n}\n.avatar-uploader .el-upload[data-v-4394c808]:hover{border-color:#409EFF\n}\n.avatar-uploader-icon[data-v-4394c808]{font-size:28px;color:#8c939d;width:270px;height:170px;line-height:178px;text-align:center\n}\n.avatar[data-v-4394c808]{width:270px;height:170px;display:block\n}\n.right-modifyPsw[data-v-4394c808]{padding:20px;background:#fff;-webkit-box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13)\n}\n.right-modifyPsw .right-modifyPsw-title[data-v-4394c808]{padding:10px;border-bottom:1px solid #ccc;margin-bottom:20px\n}\n.right-modifyPsw .individual-steps-wrapper[data-v-4394c808]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center\n}\n.right-modifyPsw .upload-wrapper .idcard-uploader[data-v-4394c808]{width:100%\n}\n.right-modifyPsw .upload-wrapper .idcard-uploader .avatar[data-v-4394c808]{width:100%\n}\n.right-modifyPsw .upload-wrapper .idcard-uploader .el-upload .el-upload--text[data-v-4394c808]{width:100%\n}\n.right-modifyPsw .upload-wrapper .authentication-detail[data-v-4394c808]{padding-left:20px;border-left:1px solid #dcdcdc\n}\n.right-modifyPsw .upload-wrapper .authentication-detail .authentication-detail-title[data-v-4394c808]{font-size:16px;font-family:Source Han Sans CN;font-weight:600;border-bottom:1px dashed #dcdcdc;margin-bottom:10px;padding-bottom:5px\n}\n.right-modifyPsw .upload-wrapper .authentication-detail .idcard-example1[data-v-4394c808]{height:140px;background-image:url("+n+");background-size:100% 100%\n}\n.right-modifyPsw .upload-wrapper .authentication-detail .idcard-example2[data-v-4394c808]{height:140px;background-image:url("+l+');background-size:100% 100%\n}\n.right-modifyPsw .upload-wrapper .authentication-detail-list[data-v-4394c808]{list-style-type:none;padding-left:0;font-size:12px;font-family:Source Han Sans CN;font-weight:400;color:#999\n}\n.right-modifyPsw .upload-wrapper .authentication-detail-list li[data-v-4394c808]:before{content:"\\2022";color:#999;font-size:16px;margin-right:10px\n}\n.right-modifyPsw .upload-wrapper .authentication-detail-list .authentication-detail-list-blue[data-v-4394c808]{color:#148AE0\n}\n.right-modifyPsw .enterprise-brn-wrapper[data-v-4394c808]{margin-top:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center\n}\n.right-modifyPsw .enterprise-brn-wrapper .enterprise-btn[data-v-4394c808]{border:1px solid #0076cb;width:150px;background-color:white;color:#0076cb;padding:10px;margin:0 30px\n}\n.right-modifyPsw .enterprise-brn-wrapper .nextBtn[data-v-4394c808]{background-color:#0076cb;color:white\n}\n',"",{version:3,sources:["IndividualAuth.vue"],names:[],mappings:";AACA,yCAAyC;AACzC;AACA,kCAAkC,iBAAiB,CAAC,cAAc,CAAC,iBAAiB,CAAC,eAAe,CAAC,iBAAiB,CAAC,WAAW,CAAC;AACnI;AACA,6CAA6C,sBAAsB,CAAC,uBAAuB,CAAC;AAC5F;AACA,mDAAmD;AACnD;AACA,uCAAuC,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,YAAY,CAAC,iBAAiB,CAAC;AAC/G;AACA,yBAAyB,WAAW,CAAC,YAAY,CAAC;AAClD;AACA,kCAAkC,YAAY,CAAC,eAAe,CAAC,mDAAmD,CAAC;AACnH;AACA,yDAAyD,YAAY,CAAC,4BAA4B,CAAC;AACnG;AACA,4DAA4D,mBAAmB,CAAC,mBAAmB,CAAC,YAAY,CAAC,uBAAuB,CAAC,oBAAoB,CAAC;AAC9J;AACA,mEAAmE;AACnE;AACA,2EAA2E;AAC3E;AACA,+FAA+F;AAC/F;AACA,yEAAyE,iBAAiB,CAAC;AAC3F;AACA,sGAAsG,cAAc,CAAC,8BAA8B,CAAC,eAAe,CAAC,gCAAgC,CAAC,kBAAkB,CAAC;AACxN;AACA,0FAA0F,YAAY,CAAC,wDAA4D,CAAC;AACpK;AACA,0FAA0F,YAAY,CAAC,wDAA4D,CAAC;AACpK;AACA,8EAA8E,oBAAoB,CAAC,cAAc,CAAC,cAAc,CAAC,8BAA8B,CAAC,eAAe,CAAC;AAChL;AACA,wFAAwF,eAAe,CAAC,UAAU,CAAC,cAAc,CAAC;AAClI;AACA,+GAA+G;AAC/G;AACA,0DAA0D,eAAe,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,YAAY,CAAC,uBAAuB,CAAC,oBAAoB,CAAC;AAC5K;AACA,0EAA0E,wBAAwB,CAAC,WAAW,CAAC,sBAAsB,CAAC,aAAa,CAAC,YAAY,CAAC;AACjK;AACA,mEAAmE,wBAAwB,CAAC;AAC5F",file:"IndividualAuth.vue",sourcesContent:['\n.el-input-group__append[data-v-4394c808]{border-radius:0 !important\n}\n.avatar-uploader[data-v-4394c808]{border-radius:6px;cursor:pointer;position:relative;overflow:hidden;margin-right:30px;width:270px;height:170px\n}\n.avatar-uploader .el-upload[data-v-4394c808]{width:270px !important;height:170px !important;border-color:#409EFF\n}\n.avatar-uploader .el-upload[data-v-4394c808]:hover{border-color:#409EFF\n}\n.avatar-uploader-icon[data-v-4394c808]{font-size:28px;color:#8c939d;width:270px;height:170px;line-height:178px;text-align:center\n}\n.avatar[data-v-4394c808]{width:270px;height:170px;display:block\n}\n.right-modifyPsw[data-v-4394c808]{padding:20px;background:#fff;-webkit-box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13)\n}\n.right-modifyPsw .right-modifyPsw-title[data-v-4394c808]{padding:10px;border-bottom:1px solid #ccc;margin-bottom:20px\n}\n.right-modifyPsw .individual-steps-wrapper[data-v-4394c808]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center\n}\n.right-modifyPsw .upload-wrapper .idcard-uploader[data-v-4394c808]{width:100%\n}\n.right-modifyPsw .upload-wrapper .idcard-uploader .avatar[data-v-4394c808]{width:100%\n}\n.right-modifyPsw .upload-wrapper .idcard-uploader .el-upload .el-upload--text[data-v-4394c808]{width:100%\n}\n.right-modifyPsw .upload-wrapper .authentication-detail[data-v-4394c808]{padding-left:20px;border-left:1px solid #dcdcdc\n}\n.right-modifyPsw .upload-wrapper .authentication-detail .authentication-detail-title[data-v-4394c808]{font-size:16px;font-family:Source Han Sans CN;font-weight:600;border-bottom:1px dashed #dcdcdc;margin-bottom:10px;padding-bottom:5px\n}\n.right-modifyPsw .upload-wrapper .authentication-detail .idcard-example1[data-v-4394c808]{height:140px;background-image:url("../../assets/img/idcard-example1.png");background-size:100% 100%\n}\n.right-modifyPsw .upload-wrapper .authentication-detail .idcard-example2[data-v-4394c808]{height:140px;background-image:url("../../assets/img/idcard-example2.png");background-size:100% 100%\n}\n.right-modifyPsw .upload-wrapper .authentication-detail-list[data-v-4394c808]{list-style-type:none;padding-left:0;font-size:12px;font-family:Source Han Sans CN;font-weight:400;color:#999\n}\n.right-modifyPsw .upload-wrapper .authentication-detail-list li[data-v-4394c808]:before{content:"\\2022";color:#999;font-size:16px;margin-right:10px\n}\n.right-modifyPsw .upload-wrapper .authentication-detail-list .authentication-detail-list-blue[data-v-4394c808]{color:#148AE0\n}\n.right-modifyPsw .enterprise-brn-wrapper[data-v-4394c808]{margin-top:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center\n}\n.right-modifyPsw .enterprise-brn-wrapper .enterprise-btn[data-v-4394c808]{border:1px solid #0076cb;width:150px;background-color:white;color:#0076cb;padding:10px;margin:0 30px\n}\n.right-modifyPsw .enterprise-brn-wrapper .nextBtn[data-v-4394c808]{background-color:#0076cb;color:white\n}\n']}]),a.exports=t},"75Qm":function(a,t,i){var e=i("4CBO");"string"==typeof e&&(e=[[a.i,e,""]]),e.locals&&(a.exports=e.locals);i("rjj0")("96d98b6c",e,!1,{})},QX2f:function(a,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i("b9vf"),r=i("SQ4B"),d=i("qI5z"),o=i("vGYV"),n={name:"IndividualAuth",data:function(){return{loading:!1,active:0,user:{},individualForm:{roleList:[],realName:"",gender:"",idCard:"",idCardPositivePhoto:"",idCardBackPhoto:"",idCardDeadTime:"",address:""},failureReason:"",authType:-1,authDetail:{},authStatus:"",canEdit:!1,rules:{realName:[{required:!0,message:"请输入真实姓名",trigger:"blur"}],idCard:[{required:!0,message:"请输入身份证号码",trigger:"blur"}],address:[{required:!0,message:"请输入家庭或单位地址",trigger:"blur"}],gender:[{required:!0,message:"请选择性别",trigger:"blur"}],roleList:[{type:"array",required:!0,message:"请至少选择一个认证权限",trigger:"change"}],idCardDeadTime:[{required:!0,message:"请选择身份证过期时间",trigger:"change"}]}}},methods:{setUserInfo:function(){this.type=this.$route.query.type,this.user=Object(o.M)("user")&&Object(o.M)("user").userVO},submitIndividualAuth:function(){var a=this;return this.$refs.individualForm.validate(function(a){if(!a)return Object(d.a)("error","信息填写不规范"),!1}),this.individualForm.idCardPositivePhoto?this.individualForm.idCardBackPhoto?(this.showLoading(),void(1==this.$route.query.type?r.a.post("/api/user/"+this.user.id+"/personalAuth",this.individualForm).then(function(t){t&&(Object(d.a)("success","提交成功"),a.$router.push("/personal/authentication"))}).catch(function(t){a.hideLoading(),Object(d.a)("error",t.data)}):r.a.put("/api/user/"+this.user.id+"/personalAuth",this.individualForm).then(function(t){t&&(Object(d.a)("success","修改成功"),a.$router.push("/personal/authentication"))}).catch(function(t){console.log("错误信息"),console.log(t),a.hideLoading(),Object(d.a)("error",t.data)}))):(Object(d.a)("error","身份证反面照片上传不规范"),!1):(Object(d.a)("error","身份证正面照片上传不规范"),!1)},getAuthStatus:function(){var a=this;r.a.get("/api/user/"+this.user.id).then(function(t){t.personalAuthVO?(a.authType=1,a.authStatus=t.personalAuthVO.authStatus,"success"!==a.authStatus.style&&(a.canEdit=!0),a.failureReason=t.personalAuthVO.explain,a.setFormInfo(t.personalAuthVO)):(a.authType=0,a.canEdit=!0)}).catch(function(a){Object(d.a)("error",a.data)})},setFormInfo:function(a){this.individualForm.roleList=a.roleList,this.individualForm.realName=a.realName,this.individualForm.gender=a.gender,this.individualForm.idCard=a.idCard,this.individualForm.address=a.address,this.individualForm.idCardPositivePhoto=a.idCardPositivePhoto,this.individualForm.idCardBackPhoto=a.idCardBackPhoto,this.individualForm.idCardDeadTime=a.idCardDeadTime},beforeFileUpload:function(a){if(a.size>1e7)return Object(d.a)("error","单个文件大小不能超过5M"),!1;var t=a.name,i=t.lastIndexOf(".");if(i<=0)return Object(d.a)("error","只能上传png/jpg/jpeg格式的文件"),!1;var e=t.substr(i);return".jpg"!==e&&".png"!==e&&".jpeg"!==e?(Object(d.a)("error","只能上传png/jpg/jpeg格式的文件"),!1):void 0},uploadFile:function(a){var t=this,i=new FormData;i.append("file",a.file),r.a.upload(e.a.FILE.UPLOAD_IMAGE.replace("{userId}",this.user.id),i,{headers:{"Content-Type":"multipart/form-data"}}).then(function(i){0===a.data.type?t.individualForm.idCardPositivePhoto=i.data:t.individualForm.idCardBackPhoto=i.data,Object(d.a)("success","上传成功")}).catch(function(a){Object(d.a)("error",a.data)})},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1}},mounted:function(){this.setUserInfo(),this.getAuthStatus()}},l=function(){var a=this,t=a.$createElement,i=a._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:a.loading,expression:"loading"}],staticClass:"right-modifyPsw",attrs:{id:"individualAuth"}},[i("div",{staticClass:"right-modifyPsw-title"},[i("span",{staticStyle:{"font-size":"18px","font-weight":"bold","margin-right":"10px"}},[a._v("个人认证")]),a._v(" "),1===a.authType?i("el-tag",{attrs:{type:a.authStatus.style}},[a._v(a._s(a.authStatus.text))]):a._e(),a._v(" "),0===a.authType?i("el-tag",{attrs:{type:"danger"}},[a._v("未认证")]):a._e()],1),a._v(" "),a.failureReason&&""!==a.failureReason?i("el-alert",{attrs:{title:a.failureReason,type:"error"}}):a._e(),a._v(" "),i("el-form",{ref:"individualForm",staticStyle:{width:"70%","margin-top":"10px"},attrs:{model:a.individualForm,rules:a.rules,"label-width":"140px"}},[i("el-form-item",{attrs:{label:"真实姓名",prop:"realName"}},[i("el-input",{attrs:{disabled:!a.canEdit,placeholder:"请输入您的姓名,需与身份证保持一致"},model:{value:a.individualForm.realName,callback:function(t){a.$set(a.individualForm,"realName",t)},expression:"individualForm.realName"}})],1),a._v(" "),i("el-form-item",{attrs:{label:"身份证号码",prop:"idCard"}},[i("el-input",{attrs:{disabled:!a.canEdit,placeholder:"身份证前后不能有空格"},model:{value:a.individualForm.idCard,callback:function(t){a.$set(a.individualForm,"idCard",t)},expression:"individualForm.idCard"}})],1),a._v(" "),i("el-form-item",{attrs:{label:"性别",prop:"gender"}},[i("el-radio-group",{attrs:{disabled:!a.canEdit},model:{value:a.individualForm.gender,callback:function(t){a.$set(a.individualForm,"gender",t)},expression:"individualForm.gender"}},[i("el-radio",{attrs:{label:"男"}}),a._v(" "),i("el-radio",{attrs:{label:"女"}})],1)],1),a._v(" "),i("el-form-item",{attrs:{label:"身份证到期时间",prop:"idCardDeadTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{align:"right",type:"date",placeholder:"请按身份证背面“有效期限”如实填写",disabled:!a.canEdit},model:{value:a.individualForm.idCardDeadTime,callback:function(t){a.$set(a.individualForm,"idCardDeadTime",t)},expression:"individualForm.idCardDeadTime"}})],1),a._v(" "),i("el-form-item",{attrs:{label:"家庭或单位地址",prop:"address"}},[i("el-input",{attrs:{disabled:!a.canEdit},model:{value:a.individualForm.address,callback:function(t){a.$set(a.individualForm,"address",t)},expression:"individualForm.address"}})],1),a._v(" "),i("el-form-item",{attrs:{label:"认证权限",prop:"roleList"}},[i("el-checkbox-group",{attrs:{disabled:!a.canEdit},model:{value:a.individualForm.roleList,callback:function(t){a.$set(a.individualForm,"roleList",t)},expression:"individualForm.roleList"}},[i("el-checkbox",{attrs:{label:1}},[a._v("发包")]),a._v(" "),i("el-checkbox",{attrs:{label:0}},[a._v("接包")])],1)],1)],1),a._v(" "),i("div",{staticClass:"upload-wrapper"},[i("el-row",{staticStyle:{width:"100%"}},[i("el-col",{staticStyle:{"padding-left":"30px"},attrs:{span:9}},[i("div",{staticStyle:{width:"280px"}},[i("el-upload",{staticClass:"avatar-uploader",staticStyle:{border:"lightgrey 1px solid"},attrs:{action:"https://jsonplaceholder.typicode.com/posts/","before-upload":a.beforeFileUpload,"http-request":a.uploadFile,data:{type:0},disabled:!a.canEdit}},[a.individualForm.idCardPositivePhoto?i("img",{staticClass:"avatar",attrs:{src:a.individualForm.idCardPositivePhoto}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon card-uploader-icon"})]),a._v(" "),i("div",{staticStyle:{"text-align":"center"}},[a._v("身份证正面照"),i("span",{staticStyle:{color:"red"}},[a._v("(必填)")])])],1)]),a._v(" "),i("el-col",{attrs:{span:15}},[i("div",{staticClass:"authentication-detail"},[i("div",{staticClass:"authentication-detail-title"},[a._v("证件要求")]),a._v(" "),i("el-row",[i("el-col",{attrs:{span:11}},[i("div",{staticClass:"idcard-example1"})]),a._v(" "),i("el-col",{staticStyle:{"padding-left":"10px"},attrs:{span:13}},[i("ul",{staticClass:"authentication-detail-list"},[i("li",[a._v("请上传本人"),i("span",{staticClass:"authentication-detail-list-blue"},[a._v("手持")]),a._v("身份证正面头部照片和上 半身照片")]),a._v(" "),i("li",[a._v("照片为免冠、未化妆的数码照片原始图片"),i("span",{staticClass:"authentication-detail-list-blue"},[a._v("请勿用任何软件编辑修改")])]),a._v(" "),i("li",[a._v("必须看清证件信息,且证件信息不能被遮挡, 持证人五官清晰可见")]),a._v(" "),i("li",[a._v("仅支持.jpg .png .jpeg的图片格式,图 片大小不超过3M")]),a._v(" "),i("li",[a._v("核实手持证件与原件方向一致,对焦身份证 进行拍照")]),a._v(" "),i("li",[a._v("您提供的照片众测服务平台将予以保护,不 会用于其他用途")])])])],1)],1)])],1),a._v(" "),i("el-row",{staticStyle:{width:"100%"}},[i("el-col",{staticStyle:{"padding-left":"30px"},attrs:{span:9}},[i("div",[i("el-upload",{staticClass:"avatar-uploader",staticStyle:{border:"lightgrey 1px solid"},attrs:{action:"https://jsonplaceholder.typicode.com/posts/","before-upload":a.beforeFileUpload,"http-request":a.uploadFile,data:{type:1},disabled:!a.canEdit}},[a.individualForm.idCardBackPhoto?i("img",{staticClass:"avatar",attrs:{src:a.individualForm.idCardBackPhoto}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon card-uploader-icon"})]),a._v(" "),i("div",{staticStyle:{"text-align":"center"}},[a._v("身份证反面照"),i("span",{staticStyle:{color:"red"}},[a._v("(必填)")])])],1)]),a._v(" "),i("el-col",{attrs:{span:15}},[i("div",{staticClass:"authentication-detail"},[i("div",{staticStyle:{height:"40px",width:"100%"}}),a._v(" "),i("el-row",[i("el-col",{attrs:{span:11}},[i("div",{staticClass:"idcard-example2"})]),a._v(" "),i("el-col",{staticStyle:{"padding-left":"10px"},attrs:{span:13}},[i("ul",{staticClass:"authentication-detail-list"},[i("li",[a._v("必须看清证件信息,且证件信息不能被遮挡")]),a._v(" "),i("li",[a._v("仅支持.jpg .bmp .png .gif的图片格式,图 片大小不超过3M")]),a._v(" "),i("li",[a._v("您提供的照片众测服务平台将予以保护,不 会用于其他用途")])])])],1)],1)])],1)],1),a._v(" "),i("div",{staticClass:"enterprise-brn-wrapper"},[a.canEdit&&0===a.authType?i("el-button",{staticStyle:{cursor:"pointer"},attrs:{type:"primary"},on:{click:a.submitIndividualAuth}},[a._v("提交审核")]):a._e(),a._v(" "),a.canEdit&&0!=a.authType?i("el-button",{staticStyle:{cursor:"pointer"},attrs:{type:"primary"},on:{click:a.submitIndividualAuth}},[a._v("修改审核")]):a._e()],1)],1)};l._withStripped=!0;var s={render:l,staticRenderFns:[]},p=s;var A=!1;var c=i("VU/8")(n,p,!1,function(a){A||(i("75Qm"),i("UM2s"))},"data-v-4394c808",null);c.options.__file="src/pages/UserCenter/IndividualAuth.vue";t.default=c.exports},UM2s:function(a,t,i){var e=i("rs5I");"string"==typeof e&&(e=[[a.i,e,""]]),e.locals&&(a.exports=e.locals);i("rjj0")("87752dd0",e,!1,{})},cGqX:function(a,t,i){a.exports=i.p+"static/img/idcard-example1.1189c74.png"},iLFv:function(a,t,i){a.exports=i.p+"static/img/idcard-example2.c04d8b7.png"},rs5I:function(a,t,i){(t=i("yGwj")(!0)).push([a.i,"\n.el-input-group__append{border-radius:0 !important\n}\n#individualAuth .avatar-uploader .idcard-uploader{width:100%\n}\n#individualAuth .avatar-uploader .idcard-uploader .avatar{width:100%\n}\n#individualAuth .avatar-uploader .idcard-uploader .el-upload .el-upload--text{width:100% !important\n}\n","",{version:3,sources:["IndividualAuth.vue"],names:[],mappings:";AACA,wBAAwB;AACxB;AACA,kDAAkD;AAClD;AACA,0DAA0D;AAC1D;AACA,8EAA8E;AAC9E",file:"IndividualAuth.vue",sourcesContent:["\n.el-input-group__append{border-radius:0 !important\n}\n#individualAuth .avatar-uploader .idcard-uploader{width:100%\n}\n#individualAuth .avatar-uploader .idcard-uploader .avatar{width:100%\n}\n#individualAuth .avatar-uploader .idcard-uploader .el-upload .el-upload--text{width:100% !important\n}\n"]}]),a.exports=t}});