1import{E as $}from"./el-input.85420717.js";import{E as _,r as E,a as X,b as D}from"./rules.7a26ba98.js";/* empty css */import{u as j,r as n,l as v,o as z,v as W,a as q,c as J,b as m,d as C,e as o,j as k,m as c,f as R,g as a,t as K,h as V,p as f,D as L,E as Q}from"./entry.3bd9ad54.js";import{u as Y}from"./vue.f36acd1f.d8d2fcf1.js";import{_ as Z,a as P,b as A}from"./lgyzm.e57dac78.js";import{g as ee}from"./home.d42e8e18.js";import{c as O,a as oe,R as te}from"./validate.488c796b.js";import"./_baseSet.d8ab108b.js";import"./index.c798353e.js";const se={class:"lo_con"},le=o("img",{src:Z,alt:""},null,-1),ne=o("div",{class:"txt"},[o("div",{class:"h f_50"},"Welcome to XCMG Hanyun"),o("div",{class:"p f_18"},"XCMG Hanyun provides technical empowerment, marketing support and business support to many partners to help them accelerate the development of applications and services on the Hanyun platform.")],-1),ae={class:"con"},re=o("div",{class:"tit f_30"},"Register XCMG Hanyun",-1),ie={class:"tab f_16"},ce={class:"cons"},de={key:0,class:"con1"},ue={class:"item"},pe=o("div",{class:"tit f_16"},[o("img",{src:P,alt:""}),f(" Mobile phones ")],-1),me={class:"input f_16"},_e={class:"item"},he=o("div",{class:"tit f_16"},[o("img",{src:A,alt:""}),f(" Captcha ")],-1),ve={class:"input f_16 input1"},fe={key:0,class:"con1"},ge={class:"item"},we=o("div",{class:"tit f_16"},[o("img",{src:P,alt:""}),f(" Mobile phones ")],-1),Ce={class:"input f_16"},ye={class:"item"},be=o("div",{class:"tit f_16"},[o("img",{src:A,alt:""}),f(" Cryptographic ")],-1),Ee={class:"input f_16"},ke=o("div",{class:"tips f_16"},[o("div",null,[f("Already have an account? "),o("a",{href:"/en/login",target:"_blank"},"Sign in now")])],-1),Ge={__name:"register",setup(Re){j();let p,H=n(null);n(null);let d=n("Get CAPTCHA");n("Get CAPTCHA"),n(1),n("Register Hanun");const g=n("code"),F=s=>{g.value=s,clearInterval(p),H.value=null,d.value="Get CAPTCHA",T(),s=="password"&&(t=v({phoneOrEmail:null,password:"",confirmPassword:"",code:null})),N.value=1};n("emailCode");const w=n(null),M=n(123);n(123);let t=v({phoneOrEmail:"",password:null,code:null,uuid:null});const N=n(1),y=s=>{s&&s.validate((e,l)=>{e?te({phoneNumber:t.phoneOrEmail,code:t.code,uuid:t.uuid}).then(u=>{u.code==200?S(u.msg):_({message:u.msg,type:"error",offset:200})}):_({message:"Registration failed, please check if the account or verification code is correct!!!!",type:"error",offset:200})})},S=s=>{_({message:"Successful registration, login soon!",type:"success",offset:200}),L.setCache("hytoken",s)},T=()=>{t=v({phoneOrEmail:null,password:null,code:null,uuid:null})};n(null),v({userName:null,phoneNumber:null,phoneCode:null,email:null,password:null,confirmPassword:null,way:1}),n(null),n(null);const h=n(!1),G=()=>{const s=Q();window.initAlicom4({captchaId:s.public.captcha.captchaId,language:s.public.captcha.language,product:"bind"},function(e){window.captchaObj=e,e.onReady(()=>console.log("")).onSuccess(()=>{const l=e.getValidate();l&&(t.lot_number=l.lot_number,t.captcha_output=l.captcha_output,t.gen_time=l.gen_time,t.pass_token=l.pass_token,t.phoneOrEmail&&O(t.phoneOrEmail)&&(console.log("éªè¯ç æåï¼å¼å§åééªè¯ç "),x(t.phoneOrEmail)))}).onError(l=>console.error("éªè¯ç é误:",l))})},I=s=>{var e;if(console.log(1),!O(s)){_.warning("Please enter the correct mobile phone number");return}h.value||(e=window.captchaObj)==null||e.showCaptcha()},x=s=>{clearInterval(p),h.value=!0,oe({phoneNumber:s,captcha_output:t.captcha_output,lot_number:t.lot_number,gen_time:t.gen_time,pass_token:t.pass_token,typeId:1}).then(e=>{if(e.code!==200){_.error(e.msg),clearInterval(p),d.value="Resend";return}console.log("res",e),M.value=e==null?void 0:e.code,loginForm.uuid=e==null?void 0:e.uuid;let l=60;d.value=l+"s",p=setInterval(()=>{l>0?(l--,d.value=l+"s"):(d.value="Resend",clearInterval(p))},1e3)}).catch(e=>{console.log(e,"err"),_.error(e.msg),clearInterval(p),d.value="Resend"}).finally(()=>{h.value=!1})};n(!1),z(()=>{B(),G()}),v([]),W(function(){clearInterval(p)});const i=n({}),B=()=>{ee({route:"/en/register"}).then(s=>{i.value=s.data}),Y({title:()=>{var s;return((s=i==null?void 0:i.value)==null?void 0:s.title)||"å¾å·¥æ±äº"},meta:[{name:"keywords",content:()=>{var s;return((s=i==null?void 0:i.value)==null?void 0:s.keyword)||"å¾å·¥æ±äº"}},{name:"description",content:()=>{var s;return((s=i==null?void 0:i.value)==null?void 0:s.description)||"å¾å·¥æ±äº"}}]})};return(s,e)=>{const l=$,u=X,b=D,U=q("smooth-scrollbar");return C(),J(U,null,{default:m(()=>[o("div",se,[le,ne,o("div",ae,[re,o("div",ie,[o("div",{class:k(["item",g.value=="code"?"on":""]),onClick:e[0]||(e[0]=r=>F("code"))}," Mobile Registration ",2)]),o("div",ce,[c(b,{ref_key:"registerFormRef",ref:w,model:a(t),rules:a(E)},{default:m(()=>[g.value=="code"?(C(),R("div",de,[o("div",ue,[pe,o("div",me,[c(u,{prop:"phoneOrEmail"},{default:m(()=>[c(l,{placeholder:"Please enter your registered mobile phone",id:"phoneOrEmail",modelValue:a(t).phoneOrEmail,"onUpdate:modelValue":e[1]||(e[1]=r=>a(t).phoneOrEmail=r)},null,8,["modelValue"])]),_:1})])]),o("div",_e,[he,o("div",ve,[c(u,{prop:"code"},{default:m(()=>[c(l,{placeholder:"Please enter the verification code you received",id:"code",modelValue:a(t).code,"onUpdate:modelValue":e[2]||(e[2]=r=>a(t).code=r)},null,8,["modelValue"])]),_:1}),o("div",{class:k(["btn",(a(d)=="Get CAPTCHA"||a(d)=="Resend")&&!h.value?"":"forbid"]),onClick:e[3]||(e[3]=r=>I(a(t).phoneOrEmail))},K(h.value?"Sending...":a(d)),3)])]),o("div",{class:"submit f_16",onClick:e[4]||(e[4]=r=>y(w.value))},"Enrollment")])):V("",!0)]),_:1},8,["model","rules"]),c(b,{ref_key:"registerFormRef",ref:w,model:a(t),rules:a(E)},{default:m(()=>[g.value=="password"?(C(),R("div",fe,[o("div",ge,[we,o("div",Ce,[c(u,{prop:"phoneOrEmail"},{default:m(()=>[c(l,{placeholder:"Please enter your registered mobile phone",id:"phoneOrEmail",modelValue:a(t).phoneOrEmail,"onUpdate:modelValue":e[5]||(e[5]=r=>a(t).phoneOrEmail=r)},null,8,["modelValue"])]),_:1})])]),o("div",ye,[be,o("div",Ee,[c(u,{prop:"password"},{default:m(()=>[c(l,{placeholder:"Please enter your password",id:"password",type:"password","show-password":"",modelValue:a(t).password,"onUpdate:modelValue":e[6]||(e[6]=r=>a(t).password=r)},null,8,["modelValue"])]),_:1})])]),o("div",{class:"submit f_16",onClick:e[7]||(e[7]=r=>y(w.value))},"Enrollment")])):V("",!0)]),_:1},8,["model","rules"])]),ke])])]),_:1})}}};export{Ge as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.