1 line
9.6 KiB
JavaScript
1 line
9.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b515c084"],{"56a8":function(t,e,a){"use strict";a("e2c4")},5727:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"form"},[o("c-title",{attrs:{hide:!1,text:"个人认证"}}),1===t.step?o("div",{staticClass:"agree-box"},[o("img",{staticStyle:{width:"8rem",height:"8rem",margin:"1.5rem 1.5rem 1rem 1.5rem"},attrs:{src:a("6573"),alt:""}}),o("div",{staticClass:"btn",on:{click:function(e){t.step=2}}},[t._v("开始认证")])]):t._e(),2===t.step||3===t.step?o("div",{staticClass:"content"},[o("van-form",{on:{submit:t.onSubmit}},[o("van-field",{attrs:{name:"姓名",label:"姓名",placeholder:"请填写姓名",rules:[{required:!0,message:"请填写姓名"}]},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name","string"===typeof e?e.trim():e)},expression:"form.name"}}),o("van-field",{attrs:{name:"身份证号",label:"身份证号",placeholder:"请填写身份证号",rules:[{required:!0,message:"请填写身份证号"}]},model:{value:t.form.id_no,callback:function(e){t.$set(t.form,"id_no","string"===typeof e?e.trim():e)},expression:"form.id_no"}}),o("van-field",{attrs:{name:"手机号",label:"手机号",placeholder:"请填写手机号",rules:[{required:!0,message:"请填写手机号"}]},model:{value:t.form.tel,callback:function(e){t.$set(t.form,"tel","string"===typeof e?e.trim():e)},expression:"form.tel"}}),o("van-field",{attrs:{name:"radio",label:"认证方式"},scopedSlots:t._u([{key:"input",fn:function(){return[o("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[o("van-radio",{staticStyle:{display:"flex"},attrs:{name:"1"}},[t._v("手机号认证")]),o("van-radio",{staticStyle:{display:"flex"},attrs:{name:"2"}},[t._v("银行卡认证")]),o("van-radio",{staticStyle:{display:"flex","margin-top":"10px"},attrs:{name:"3"}},[t._v("人脸识别认证 ")])],1)]},proxy:!0}],null,!1,252954999)}),3===t.step&&"2"==t.activeName?o("van-field",{attrs:{name:"个人银行卡号",label:"个人银行卡号",placeholder:"请填写个人银行卡号",rules:[{required:!0,message:"请填写个人银行卡号"}]},model:{value:t.bank_no,callback:function(e){t.bank_no="string"===typeof e?e.trim():e},expression:"bank_no"}}):t._e(),3!==t.step||"1"!=t.activeName&&"2"!=t.activeName?t._e():o("van-field",{attrs:{center:"",clearable:"",label:"短信验证码",placeholder:"请输入短信验证码"},model:{value:t.authcode,callback:function(e){t.authcode="string"===typeof e?e.trim():e},expression:"authcode"}},[o("van-button",{directives:[{name:"show",rawName:"v-show",value:this.count<=0,expression:"this.count<= 0"}],attrs:{slot:"button",size:"small",round:"",plain:"",type:"info"},on:{click:t.sureIdentify},slot:"button"},[t._v(" 获取验证码 ")]),o("van-button",{directives:[{name:"show",rawName:"v-show",value:this.count>0,expression:"this.count> 0"}],attrs:{slot:"button",size:"small",round:"",plain:"",type:"info",disabled:""},slot:"button"},[t._v(" "+t._s(t.count)+"秒后重新获取 ")])],1),3===t.step&&"3"==t.activeName?o("van-field",{attrs:{name:"radio",label:"识别方式"},scopedSlots:t._u([{key:"input",fn:function(){return[o("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.form.face_auth_mode,callback:function(e){t.$set(t.form,"face_auth_mode",e)},expression:"form.face_auth_mode"}},[o("van-radio",{staticStyle:{display:"flex"},attrs:{name:"1"}},[t._v("支付宝人脸识别")]),o("van-radio",{staticStyle:{display:"flex","margin-top":"10px"},attrs:{name:"2"}},[t._v("腾讯云人脸识别")])],1)]},proxy:!0}],null,!1,3051465729)}):t._e()],1),2===t.step?o("div",{staticClass:"btn",on:{click:t.toStep}},[t._v("进行认证")]):t._e(),3===t.step?o("div",{staticClass:"btn",on:{click:t.sendCode}},[t._v("立即认证")]):t._e()],1):t._e(),o("van-popup",{staticStyle:{width:"100%",height:"100%"},attrs:{overlay:!1,position:"right"},model:{value:t.protocolShow,callback:function(e){t.protocolShow=e},expression:"protocolShow"}},[o("div",{staticClass:"protocolcontent"},[o("van-nav-bar",{staticStyle:{position:"sticky",top:"0"},attrs:{title:"实名认证服务协议","left-text":"返回","right-text":"","left-arrow":""},on:{"click-left":function(e){t.protocolShow=!1}}}),o("div",{staticStyle:{padding:"10px"},domProps:{innerHTML:t._s(t.agreement.auth_agreement_desc)}})],1)])],1)},n=[],i=(a("e7e5"),a("d399")),s=(a("b0c0"),a("14d9"),a("6968")),r={data:function(){return{activeName:"",step:1,checkboxGroup:[],protocolShow:!1,agreement:{},form:{name:"",id_no:"",tel:"",face_auth_mode:""},authcode:"",bank_no:"",flow_id:"",count:"",timer:null}},activated:function(){this.step=1,this.checkboxGroup=[],this.getPersonData(),this.clear()},methods:{clear:function(){this.form={name:"",id_no:"",tel:"",face_auth_mode:""},this.authcode="",this.bank_no="",this.flow_id="",this.count=0,this.timer&&clearInterval(this.timer)},toStep:function(){this.form.name?this.form.id_no?this.form.tel?this.activeName?this.step=3:Object(i["a"])("请先选择认证方式"):Object(i["a"])("请先填写手机号"):Object(i["a"])("请先填写身份证号"):Object(i["a"])("请先填写姓名")},onSubmit:function(){},checkPersonData:function(){var t=this;$http.get("plugin.shop-esign.frontend.person.check-auth-center-status",{name:this.form.name,idNo:this.form.id_no,tel:this.form.tel},"...").then((function(e){1===e.result&&(t.person=e.data,"99"==t.person.status_code?t.$dialog.alert({message:"您在认证中心已经完成认证,无需重复认证"}).then((function(){t.$router.push(t.fun.getUrl("identifyResultPlu",{show:"person"}))})).catch((function(){})):t.step=3)}),(function(t){}))},getMemberData:function(){var t=this;$http.post("plugin.yun-sign.frontend.h5.person.get-person-auth-info",{},"...").then((function(e){1===e.result?(t.form.name=e.data.name,t.form.tel=e.data.tel):t.$dialog.alert({message:e.msg})}),(function(t){}))},getPersonData:function(){var t=this;$http.get("plugin.shop-esign.frontend.person.check-person-approve",{},"...").then((function(e){1===e.result?(t.person=e.data,"99"==t.person.status_code&&t.$router.push(t.fun.getUrl("identifyResultPlu",{show:"person"}))):t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))},getAgreement:function(){var t=this;$http.post("plugin.yun-sign.frontend.person.get-agreement").then((function(e){1===e.result?t.agreement=e.data:t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))},sureIdentify:function(){var t=this;if(2!=this.activeName||this.bank_no){var e="",a={},o=60;1==this.activeName?(e="plugin.shop-esign.frontend.person.auth-tel-v2",a=this.form):(e="plugin.shop-esign.frontend.person.auth-bank-card-v2",this.form.bank_no=this.bank_no,a=this.form),$http.post(e,a,"...").then((function(e){1===e.result?(Object(i["a"])("已发送"),t.flow_id=e.data.flow_id,t.timer||(t.count=o,t.timer=setInterval((function(){t.count>0&&t.count<=o?t.count--:(clearInterval(t.timer),t.timer=null)}),1e3))):t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))}else Object(i["a"])("请先填写银行卡")},sendCode:function(){var t=this;if(2!=this.activeName||this.bank_no)if(3==this.activeName||this.flow_id)if(3==this.activeName||this.authcode)if(3!=this.activeName||this.form.face_auth_mode){var e="",a={};1==this.activeName?(e="plugin.shop-esign.frontend.person.check-tel-sms-code",a={flow_id:this.flow_id,authcode:this.authcode}):2==this.activeName?(e="plugin.shop-esign.frontend.person.check-bank-sms-code",this.form.bank_no=this.bank_no,a={flow_id:this.flow_id,authcode:this.authcode}):(e="plugin.shop-esign.frontend.person.auth-face",a={name:this.form.name,id_no:this.form.id_no,tel:this.form.tel,face_auth_mode:this.form.face_auth_mode,callback_url:""}),$http.post(e,a,"...").then((function(e){if(1===e.result){if(3==t.activeName)return void(window.location.href=e.data.auth_url);t.$dialog.alert({message:e.msg}),1==e.data.auth_company?t.$router.push(t.fun.getUrl("identifyResultPlu",{show:"person"},{auth_company:1})):t.$router.push(t.fun.getUrl("identifyResultPlu",{show:"person"}))}else t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))}else Object(i["a"])("请先选择识别方式");else Object(i["a"])("请先填写验证码");else Object(i["a"])("请先获取验证码");else Object(i["a"])("请先填写银行卡")}},components:{cTitle:s["a"]}},l=r,c=(a("56a8"),a("2877")),u=Object(c["a"])(l,o,n,!1,null,"8667762c",null);e["default"]=u.exports},"5a0d":function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,".form[data-v-8667762c]{background:#fff;height:100vh}.content[data-v-8667762c]{font-weight:700}.btn[data-v-8667762c]{margin:40px auto 20px auto;color:#fff;width:18.75rem;height:2.25rem;line-height:2.25rem;background-image:-webkit-gradient(linear,left bottom,left top,from(#377aff),to(#679aff));background-image:-webkit-linear-gradient(bottom,#377aff,#679aff);background-image:linear-gradient(0deg,#377aff,#679aff);border-radius:20px}.blue-txt[data-v-8667762c]{text-align:center;color:#377aff}.link[data-v-8667762c]{color:#4784ff}.disabled[data-v-8667762c]{background-image:-webkit-gradient(linear,left bottom,left top,from(#d2d2d2),to(hsla(0,0%,82.4%,.64)))!important;background-image:-webkit-linear-gradient(bottom,#d2d2d2,hsla(0,0%,82.4%,.64))!important;background-image:linear-gradient(0deg,#d2d2d2,hsla(0,0%,82.4%,.64))!important}",""]),t.exports=e},6573:function(t,e,a){t.exports=a.p+"static/app/img/yq_sign_renzheng@2x.e5bb1269.png"},e2c4:function(t,e,a){var o=a("5a0d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=a("499e").default;n("45128110",o,!0,{sourceMap:!1,shadowMode:!1})}}]); |