You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.2 KiB
1 lines
2.2 KiB
import{l as e,B as l,j as a,o as s,b as u,c as t,w as n,a as d,m as r,f as m,v as o,F as c,D as i,K as f,g as _,L as p,i as b}from"./index.22b081e2.js";import{v as N}from"./user.b3821dab.js";import{_ as v}from"./plugin-vue_export-helper.21dcd24c.js";var x=v({props:["issm"],setup(s){let u=e(0),t=l({name:"",idNumber:""});return"true"==s.issm?(u.value=1,t.name=a("users").realName,t.idNumber=a("users").idNumber):"false"==s.issm&&(u.value=0),{state:u,user:t,queren:function(){""==t.name&&i({title:"姓名不能为空",icon:"none"}),/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(t.idNumber)?N({name:t.name,card:t.idNumber}).then((e=>{console.log(e),200==e.code?(i({title:"实名认证成功",icon:"success"}),f("users",e.data),u.value=1):i({title:e.msg,duration:2e3,icon:"none"})})):i({title:"身份证有误",icon:"none"})}}}},[["render",function(e,l,a,i,f,N){const v=_,x=p,V=b;return s(),u(c,null,[0==i.state?(s(),t(v,{key:0,class:"smrz"},{default:n((()=>[d(v,{class:"shurukuan"},{default:n((()=>[d(v,null,{default:n((()=>[d(v,null,{default:n((()=>[r("名字")])),_:1}),d(x,{placeholder:"请输入真实姓名",modelValue:i.user.name,"onUpdate:modelValue":l[0]||(l[0]=e=>i.user.name=e)},null,8,["modelValue"])])),_:1}),d(v,null,{default:n((()=>[d(v,null,{default:n((()=>[r("身份证号")])),_:1}),d(x,{placeholder:"请输入身份证号",modelValue:i.user.idNumber,"onUpdate:modelValue":l[1]||(l[1]=e=>i.user.idNumber=e)},null,8,["modelValue"])])),_:1})])),_:1}),d(v,{onClick:i.queren,class:"queren"},{default:n((()=>[r(" 完成 ")])),_:1},8,["onClick"])])),_:1})):m("",!0),1==i.state?(s(),t(v,{key:1,class:"smrzwc"},{default:n((()=>[d(v,{class:"smrzwc_top"},{default:n((()=>[d(V,{src:"/assets/ysm.b03db2b6.png"}),d(v,null,{default:n((()=>[r("已实名认证")])),_:1})])),_:1}),d(v,{class:"smrzwc_xx"},{default:n((()=>[d(v,null,{default:n((()=>[d(v,null,{default:n((()=>[r("姓名")])),_:1}),d(v,null,{default:n((()=>[r(o(i.user.name),1)])),_:1})])),_:1}),d(v,null,{default:n((()=>[d(v,null,{default:n((()=>[r("身份证号")])),_:1}),d(v,null,{default:n((()=>[r(o(i.user.idNumber),1)])),_:1})])),_:1})])),_:1})])),_:1})):m("",!0)],64)}],["__scopeId","data-v-9741fa8a"]]);export{x as default};
|
|
|