bztang-admin/addons/yun_shop/static/app/js/chunk-08dc878c.83e79e8f.js

1 line
8.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08dc878c"],{3726:function(t,e,o){var a=o("b59a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=o("499e").default;n("599a2768",a,!0,{sourceMap:!1,shadowMode:!1})},6573:function(t,e,o){t.exports=o.p+"static/app/img/yq_sign_renzheng@2x.e5bb1269.png"},b59a:function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,".form[data-v-60cbcb10]{background:#fff;height:100vh}.content[data-v-60cbcb10]{font-weight:700}.btn[data-v-60cbcb10]{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-60cbcb10]{text-align:center;color:#377aff}.link[data-v-60cbcb10]{color:#4784ff}.disabled[data-v-60cbcb10]{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},b81e:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form"},[1===t.step?a("div",{staticClass:"agree-box"},[a("img",{staticStyle:{width:"8rem",height:"8rem",margin:"1.5rem 1.5rem 1rem 1.5rem"},attrs:{src:o("6573"),alt:""}}),a("div",{staticStyle:{padding:"10px"},domProps:{innerHTML:t._s(t.agreement.auth_notice_desc)}}),a("div",{staticStyle:{display:"inline-block","margin-top":"1rem"}},[a("van-checkbox-group",{staticStyle:{display:"flex","font-size":"12px"},attrs:{direction:"horizontal"},model:{value:t.checkboxGroup,callback:function(e){t.checkboxGroup=e},expression:"checkboxGroup"}},[a("van-checkbox",{attrs:{name:"1"}},[t._v("我已阅读并同意")]),a("span",{staticClass:"link",on:{click:function(e){t.protocolShow=!0}}},[t._v("《实名认证服务协议》")])],1)],1),a("div",{staticClass:"btn",class:[t.checkboxGroup.length>=1?"":"disabled"],on:{click:t.getMemberData}},[t._v("开始认证")])]):t._e(),2===t.step||3===t.step?a("div",{staticClass:"content"},[a("van-form",{on:{submit:t.onSubmit}},[a("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"}}),a("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"}}),a("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"}})],1),a("div",{staticClass:"btn",on:{click:t.toStep}},[t._v("立即认证")])],1):t._e(),a("van-popup",{staticStyle:{width:"100%",height:"100%"},attrs:{overlay:!1,position:"right"},model:{value:t.protocolShow,callback:function(e){t.protocolShow=e},expression:"protocolShow"}},[a("div",{staticClass:"protocolcontent"},[a("van-nav-bar",{staticStyle:{position:"sticky",top:"0"},attrs:{title:"实名认证服务协议","left-text":"返回","right-text":"","left-arrow":""},on:{"click-left":function(e){t.protocolShow=!1}}}),a("div",{staticStyle:{padding:"10px"},domProps:{innerHTML:t._s(t.agreement.auth_agreement_desc)}})],1)])],1)},n=[],i=(o("e7e5"),o("d399")),r=(o("b0c0"),{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.getAgreement(),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.newLockUrl():Object(i["a"])("请先填写手机号"):Object(i["a"])("请先填写身份证号"):Object(i["a"])("请先填写姓名")},newLockUrl:function(){$http.get("plugin.yun-contract-lock.frontend.person.get-auth-page",{name:this.form.name,id_no:this.form.id_no,tel:this.form.tel,callback_page:this.fun.getSiteRoot()+"/addons/yun_shop/?menu#/signIndex?i="+this.fun.getKeyByI()},"loading").then((function(t){1===t.result?window.location.href=t.data.auth_url:Object(i["a"])(t.msg)})).catch((function(t){}))},onSubmit:function(){},getMemberData:function(){var t=this;$http.post("plugin.yun-contract-lock.frontend.person.get-person-auth-info",{},"...").then((function(e){t.step=2,1===e.result?(t.form.name=e.data.name,t.form.tel=e.data.tel):t.$dialog.alert({message:e.msg})}),(function(t){}))},checkPersonData:function(){var t=this;$http.get("plugin.yun-contract-lock.frontend.person.check-person-approve-by-idNo",{name:this.form.name,idNo:this.form.id_no,tel:this.form.tel},"...").then((function(e){1===e.result&&(t.person=e.data,99===e.data.status_code?t.$dialog.alert({message:"您在认证中心已经完成认证,无需重复认证"}).then((function(){t.$router.push(t.fun.getUrl("identifyResultLock",{show:"person"}))})).catch((function(){})):t.step=3)}),(function(t){}))},getPersonData:function(){var t=this;$http.get("plugin.yun-contract-lock.frontend.person.check-person-approve",{},"...").then((function(e){1===e.result&&(t.person=e.data,"SUCCESS"==t.person.status&&t.$router.push(t.fun.getUrl("identifyResultLock",{show:"person"})))}),(function(t){}))},getAgreement:function(){var t=this;$http.post("plugin.yun-contract-lock.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="",o={},a=60;1==this.activeName?(e="plugin.yun-contract-lock.frontend.person.auth-tel-v2",o=this.form):2==this.activeName&&(e="plugin.yun-contract-lock.frontend.person.auth-bank-card-v2",this.form.bank_no=this.bank_no,o=this.form),$http.post(e,o,"...").then((function(e){1===e.result?(Object(i["a"])("已发送"),t.flow_id=e.data.data.flowId,t.timer||(t.count=a,t.timer=setInterval((function(){t.count>0&&t.count<=a?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="",o={};1==this.activeName?(e="plugin.yun-contract-lock.frontend.person.check-tel-sms-code",o={flow_id:this.flow_id,authcode:this.authcode}):2==this.activeName?(e="plugin.yun-contract-lock.frontend.person.check-bank-sms-code",this.form.bank_no=this.bank_no,o={flow_id:this.flow_id,authcode:this.authcode}):(e="plugin.yun-contract-lock.frontend.person.auth-face-v2",o={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,o,"...").then((function(e){1===e.result?3==t.activeName?window.location.href=e.data.data.authUrl:(t.$dialog.alert({message:e.msg}),t.$router.push(t.fun.getUrl("identifyResultLock",{show:"person"}))):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"])("请先填写银行卡")}}}),s=r,c=(o("eed2"),o("2877")),l=Object(c["a"])(s,a,n,!1,null,"60cbcb10",null);e["default"]=l.exports},eed2:function(t,e,o){"use strict";o("3726")}}]);