import{_ as e,q as a,e as s,w as l,au as n,ag as t,f as i}from"./index-4c745ab9.js";import{an as c,$ as d,l as r,o as u,a as o,f as m,u as v,g as _,t as p,e as f,j as g,C as b,w as x,F as N,y as U}from"./vendor-edc0678f.js";import{S as h}from"./success-6f358333.js";const k={key:0,class:"content"},y={class:"tip advanced_txt"},C={key:0,class:"tip_info"},V={class:"form"},I={class:"formInput"},j={class:"label"},w=["placeholder"],P={class:"formInput"},R={class:"label"},A=["placeholder"],B={key:1,class:"success"},S={key:2,class:"success"},q={key:3},z={class:"fromContent"},E=e({__name:"certification-primary",setup(e){var E;const{_toast:F}=a(),O=s();O.getUserInfo();const{userInfo:T}=c(O),$=d({userName:"",number:""}),D={iconRight:[{iconName:"kefu",clickTo:"event_serviceChange"}]},G=r(null==(E=T.value.detail)?void 0:E.auditStatusPrimary),H=()=>{if(""==$.userName)return void F("advanced_please_name");if(""==$.number)return void F("advanced_please_cardName");let e="realName=".concat($.userName,"&idCard=").concat($.number,"&flag=1");n(e).then(e=>{"200"==e.code?(F("advanced_please_wait"),G.value="3",O.getUserInfo()):(U(e.msg),G.value="2")})},J=()=>{G.value="0"};return(e,a)=>{var s,n;const c=t;return u(),o(N,null,[m(l,{currentName:v(i)("sidebar_primary"),cuttentRight:D},null,8,["currentName"]),"0"==v(G)||null==v(G)?(u(),o("div",k,[_("div",y,p(v(i)("advanced_txt",["aams"])),1),["coinsexpto"].includes(e._getConfig("_APP_ENV"))?(u(),o("div",C,p(v(i)("basic_certification_info")),1)):f("",!0),_("div",V,[_("div",I,[_("div",j,p(v(i)("advanced_name"))+"：",1),g(_("input",{placeholder:v(i)("login_please"),"onUpdate:modelValue":a[0]||(a[0]=e=>$.userName=e),class:"form-input"},null,8,w),[[b,$.userName]])]),_("div",P,[_("div",R,p(v(i)("advanced_license_number"))+"：",1),g(_("input",{placeholder:v(i)("login_please"),"onUpdate:modelValue":a[1]||(a[1]=e=>$.number=e),class:"form-input"},null,8,A),[[b,$.number]])])]),_("div",{class:"btnBox",onClick:H},[m(c,{btnValue:v(i)("advanced_submit")},null,8,["btnValue"])])])):f("",!0),"3"==v(G)?(u(),o("div",B,[m(h,{text:v(i)("under_review"),imgUrl:"defi/zhong.png",color:"#333"},null,8,["text","imgUrl"])])):f("",!0),"2"==v(G)?(u(),o("div",S,[m(h,{text:v(i)("Audit_failure"),imgUrl:"defi/failed.png",color:"#333"},{btn:x(()=>[_("div",{class:"btnBox",onClick:J},[m(c,{btnValue:v(i)("Resubmit")},null,8,["btnValue"])])]),_:1},8,["text","imgUrl"])])):f("",!0),"1"==v(G)?(u(),o("div",q,[_("div",z,[_("div",null,p(v(i)("advanced_name"))+"："+p(null==(s=v(T).detail)?void 0:s.realName),1),_("div",null,p(v(i)("advanced_license_number"))+"："+p(null==(n=v(T).detail)?void 0:n.idCard),1)]),m(h,{text:v(i)("advanced_success"),imgUrl:"defi/success.png",color:"#333"},null,8,["text","imgUrl"])])):f("",!0)],64)}}},[["__scopeId","data-v-cd55e066"]]);export{E as default};
