PageSourceSearch

https://cs-c1.yiketu.com/assets/DialogBindMobile-10bab864.js

js yiketu.com collected 2026-10-01 13:06:03 UTC 2,703 bytes, 1 lines download raw bytes

1import{o as B,au as R,r as c,u as U,ac as x,m as z,n as D,p as O,K as A,M as n,z as m,N as i,ai as H,x as V,s as e,ak as K,aJ as E,aa as P,ae as T,aK as h,ad as j,aL as q,Z as G,V as f,a1 as I,aM as J}from"./vender-b1a1a08b.js";import{p as L,q as Z,s as p,t as Q}from"./main-09c08836.js";import{u as W,ad as X,ae as Y}from"./global-7aeb6e2a.js";import"./common-f0b8c879.js";const ee={class:"message-content"},ae={class:"footer"},ie=B({props:{lang:{type:String,default:void 0}},setup(C,{expose:k}){const S=C.lang||R("lang"),g=W(),v=L(),b=c(),{t:y}=U(),d=c(!1);let o=null;const r=x({validateCode:"",mobile:""}),u=c(),_=Z(),w=x({mobile:_.rules.mobile,validateCode:_.rules.validateCode});function F(){o==null||o.emit("cancel")}async function M(s){s==null||s.validate(async a=>{var l;if(a)try{v.open();const{mobile:t,validateCode:$}=f(r);await X({mobile:t,validateCode:$,isAutoUnbind:"0"}),g.setUser({...f(g.user),mobile:t}),(l=u.value)==null||l.resetFields(),I.success(y("xx.user-center.bind-mobile-success")),o==null||o.emit("confirm")}catch(t){J.alert(t==null?void 0:t.message,y("xx.global.error-occured"),{type:"error"})}finally{v.close()}})}async function N(){await Y(f(r).mobile)}return k({open:()=>new Promise(async s=>{var l;o=z();const a=()=>{o=null,d.value=!1,s()};o.on("cancel",()=>{a()}),o.on("confirm",()=>{var t;a(),(t=u.value)==null||t.resetFields()}),d.value=!0,await D(),(l=b.value)==null||l.focus()})}),(s,a)=>(O(),A(e(G),{modelValue:d.value,"onUpdate:modelValue":a[3]||(a[3]=l=>d.value=l),"custom-class":"ykt-uc-account-settings-dialog",title:s.$t("xx.user-center.dialog-title.bind-mobile"),"close-on-click-modal":!1,onClose:F},{footer:n(()=>[m("div",ae,[i(e(K),{type:"primary",size:"large",onClick:a[2]||(a[2]=l=>M(u.value))},{default:n(()=>[H(V(s.$t("xx.global.confirm")),1)]),_:1})])]),default:n(()=>[m("div",null,[i(e(q),{ref_key:"formRef",ref:u,model:e(r),rules:e(w)},{default:n(()=>[m("div",ee,V(s.$t("xx.user-center.bind-mobile.tips")),1),i(e(E),{prop:"mobile"},{default:n(()=>[i(e(P),{ref_key:"autoFocusElement",ref:b,modelValue:e(r).mobile,"onUpdate:modelValue":a[1]||(a[1]=l=>e(r).mobile=l),placeholder:s.$t("xx.user-center.enter-mobile"),autocomplete:"off",size:"large"},{prepend:n(()=>[i(e(T),{modelValue:e(p),"onUpdate:modelValue":a[0]||(a[0]=l=>h(p)?p.value=l:null),style:{width:"70px"}},{default:n(()=>[i(e(j),{label:"+86",value:"+86"})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","placeholder"])]),_:1}),i(e(E),{prop:"validateCode"},{default:n(()=>[i(Q,{"form-instance":u.value,"form-model":e(r),"func-send-sms":N,lang:e(S)},null,8,["form-instance","form-model","lang"])]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue","title"]))}});export{ie 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.