PageSourceSearch

https://www.zto.com/_nuxt/BbPwL6xT.js

js zto.com collected 2026-10-02 03:20:49 UTC 10,570 bytes, 1 lines download raw bytes

1import{_ as le,L as ae,K as te,r as m,y as T,u as se,h as oe,s as ue,a as z,d as u,b as s,f as e,t as c,w as i,F as re,k as ne,j as P,n as D,T as ie,l as S,I as ce,Z as de,o as A,z as me,E as pe,aA as ve,aq as fe,e as E}from"./DFLSK6Fb.js";/* empty css        *//* empty css        *//* empty css        *//* empty css        *//* empty css        *//* empty css        */import{S as be}from"./DLtQS0Yo.js";import{InvestorMenu as F,ContactList as ge}from"./BODoEDac.js";import{u as he}from"./Cy4qjbu1.js";import{u as _e}from"./DFZ3w0t5.js";import{u as ye}from"./gyHxA2Pp.js";import{u as Ve}from"./i7UnrPAX.js";import{s as G}from"./x_rD_Ya3.js";/* empty css        *//* empty css        */const xe={class:"email"},Ce={class:"form-wrap"},Se={class:"title"},$e={class:"desc"},ke={class:"form"},we={class:"contact"},Ee={class:"contact-wrap"},Fe={class:"detail"},Ie={class:"left"},Ue={class:"title"},Re={class:"right"},qe={class:"txt"},Te={class:"bottom"},ze=["src"],De=["href"],Ae={class:"dialog-body"},Be={class:"dialog-footer"},Le={class:"dialog-footer"},Me={__name:"index",setup(Ne){const j=he(),B=_e(),$=ae(),L=ye(),k=Ve(),l=te(()=>k.isSimplified),w=m(""),r=m({name:"",company:"",mobile:"",email:"",captcha:"",type:[]}),H=T({mobile:[{required:!1,message:"".concat(l.value?"请输入手机号码":"請輸入手機號碼"),trigger:"blur"},{pattern:/^(1[3-9]\d{9})$|^(0\d{2,3}-?\d{7,8})$/,message:"".concat(l.value?"电话号码格式不正确":"電話號碼格式不正確"),trigger:["blur","change"]}],email:[{required:!0,message:"".concat(l.value?"请输入邮箱账号":"請輸入郵箱賬號"),trigger:["blur","change"]},{pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"".concat(l.value?"邮箱格式不正确":"郵箱格式不正確"),trigger:"blur"}],captcha:[{required:!0,message:"".concat(l.value?"请输入邮箱验证码":"請輸入郵箱驗證碼"),trigger:["blur","change"]}],type:[{type:"array",required:!0,message:"".concat(l.value?"请选择订阅项":"請選擇訂閱項"),trigger:"change"}]}),y=m(!1),I=m(""),V=m(""),p=m({email:"",captcha:""}),K=T({email:[{required:!0,message:"".concat(l.value?"请输入邮箱账号":"請輸入郵箱賬號"),trigger:["blur","change"]},{pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"".concat(l.value?"邮箱格式不正确":"郵箱格式不正確"),trigger:"blur"}],captcha:[{required:!0,message:"".concat(l.value?"请输入邮箱验证码":"請輸入郵箱驗證碼"),trigger:["blur","change"]}]}),x=m(!1),b=m("获取验证码"),g=m("获取验证码"),h=m(!0),_=m(!0),v=m(null),M=m(""),f=T({title:F[$.path].title,de
1sc:F[$.path].desc,banner:F[$.path].banner,bannerAlt:F[$.path].bannerAlt});se({title:"".concat(l.value?f.title[0]:f.title[1],"-").concat(l.value?"投资者关系-中通快递":"投資者關系-中通快遞")}),oe(()=>{M.value=B.pattern(),window.addEventListener("resize",()=>{M.value=B.pattern()}),ue(l,t=>{b.value=t?"获取验证码":"獲取驗證碼",g.value=t?"获取验证码":"獲取驗證碼"},{immediate:!0})});function Q(t){if(t){if(t.length>=14){r.value.mobile=t.slice(0,14);return}r.value.mobile=t}}function N(t){let a=null;if(t==="save"){if(!h.value)return;a=w}else if(t==="cancel"){if(!_.value)return;a=V}a.value.validateField("email",async n=>{if(n){const d=await j.verify();if(d&&d.status==="success"){const C={email:t==="save"?r.value.email:p.value.email,language:l.value?1:2},U={"x-captcha-id":d.id,"x-captcha-code":d.code};(await k.getEmailVerifyCode(C,U)).status?(S.success("".concat(l.value?"验证码发送成功,请注意查收":"驗證碼發送成功,請注意查收")),t==="save"?(h.value=!1,b.value="60s"):(_.value=!1,g.value="60s"),Z(59,t)):S.error("".concat(l.value?"验证码发送失败,请稍后重试":"驗證碼發送失敗,請稍後重試"))}}})}function Z(t,a){a==="save"?v.value=G(()=>{t<=0?(h.value=!0,b.value=l.value?"获取验证码":"獲取驗證碼",clearInterval(v.value)):(h.value=!1,b.value="".concat(t,"s"),t--)},1e3):v.value=G(()=>{t<=0?(_.value=!0,g.value=l.value?"获取验证码":"獲取驗證碼",clearInterval(v.value)):(_.value=!1,g.value="".concat(t,"s"),t--)},1e3)}function J(t){let a=0;for(const n in t){const d=Number(t[n]);a=a+d}return a}function O(){w.value.validate(async t=>{if(!t)return;const a={name:r.value.name,company:r.value.company,mobile:r.value.mobile,email:r.value.email,validateCode:r.value.captcha,subscribeType:J(r.value.type),language:l.value?1:2},n=await k.getEmailSucribeSubmit(a);n&&n.status?(I.value=r.value.email,y.value=!0,w.value.resetFields()):S.error(n.message||"".concat(l.value?"订阅信息提交失败,请稍后重试":"訂閱信息提交失敗,請稍後重試")),v.value&&(clearInterval(v.value),h.value=!0,b.value=l.value?"获取验证码":"獲取驗證碼")})}function W(){V.value.validate(async t=>{if(!t)return;const a={email:p.value.email,validateCode:p.value.captcha,language:1},n=await k.getEmailSucribeCancel(a);n&&n.status?(S.success("".concat(l.value?"取消订阅成功":"取消訂閱成功")),V.value.resetFields(),x.value=!1):S.error(n.message||(l.value?"取消订阅失败,请稍后重试":"取消訂閱失敗,請稍後重試")),v.value&&(clearInterval(v.value),_.value=!0,g.value=l.value?"获取验证码":"獲取驗證碼")})}function X(){I.value="",y.value=!1}async function Y(){x.value=!0,await ce(),V.value.resetFields()}return(t,a)=>{const n=pe,d=me,C=fe,U=ve,R=ie,q=de;return A(),z("div",{class:D(["subscribe-wrap",e(L).pattern])},[u(be,{"img-url":e(f).banner,"img-alt":e(f).bannerAlt,title:e(l)?e(f).title[0]:e(f).title[1],desc:e(f).desc},null,8,["img-url","img-alt","title","desc"]),s("div",xe,[s("div",Ce,[s("h2",Se,c(e(l)?"邮件订阅":"郵件訂閱"),1),s("span",$e,c(e(l)?"订阅我们的邮件,以便在新内容发布时收到通知。请提供您的个人信息并选择您的偏好设置。":"訂閱我們的郵件,以便在新內容發布時收到通知。請提供您的個人信息並選擇您的偏好設置。"),1),s("div",ke,[u(R,{ref_key:"formRef",ref:w,model:e(r),rules:e(H),"label-width":"auto"},{default:i(()=>[u(d,{label:(e(l),"姓名"),prop:"name"},{default:i(()=>[u(n,{type:"text",modelValue:e(r).name,"onUpdate:modelValue":a[0]||(a[0]=o=>e(r).name=o),maxlength:"16",placeholder:e(l)?"请输入姓名":"請輸入姓名"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),u(d,{label:(e(l),"公司"),prop:"company"},{default:i(()=>[u(n,{type:"text",modelValue:e(r).company,"onUpdate:modelValue":a[1]||(a[1]=o=>e(r).company=o),maxlength:"64",placeholder:e(l)?"请输入公司名称":"請輸入公司名稱"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),u(d,{label:e(l)?"电话":"電話",prop:"mobile"},{default:i(()=>[u(n,{type:"text",modelValue:e(r).mobile,"onUpdate:modelValue":a[2]||(a[2]=o=>e(r).mobile=o),maxlength:"13",placeholder:e(l)?"请输入电话":"請輸入電話",onInput:Q},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),u(d,{label:e(l)?"电子邮箱":"電子郵箱",prop:"email"},{default:i(()=>[u(n,{type:"text",modelValue:e(r).email,"onUpdate:modelValue":a[3]||(a[3]=o=>e(r).email=o),maxlength:"32",placeholder:e(l)?"请输入邮箱账号":"請輸入郵箱賬號"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),u(d,{label:e(l)?"验证码":"驗證碼",prop:"captcha"},{default:i(()=>[u(n,{type:"text",modelValue:e(r).captcha,"onUpdate:modelValue":a[4]||(a[4]=o=>e(r).captcha=o),maxlength:"6",placeholder:e(l)?"请输入邮箱验证码":"請輸入郵箱驗證碼"},null,8,["modelValue","placeholder"]),s("div",{class:D(["code",{active:!e(h)}]),onClick:a[5]||(a[5]=o=>N("save"))}
1,c(e(b)),3)]),_:1},8,["label"]),u(d,{label:e(l)?"选择订阅":"選擇訂閱",prop:"type",class:"subscribe"},{default:i(()=>[u(U,{modelValue:e(r).type,"onUpdate:modelValue":a[6]||(a[6]=o=>e(r).type=o)},{default:i(()=>[u(C,{value:"2",name:"type"},{default:i(()=>[E(c(e(l)?"财报新闻":"財報新聞"),1)]),_:1}),u(C,{value:"8",name:"type"},{default:i(()=>[E(c(e(l)?"季度业绩":"季度業績"),1)]),_:1}),u(C,{value:"16",name:"type"},{default:i(()=>[E(c(e(l)?"ESG/可持续发展":"ESG/可持續發展"),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),s("div",{class:"submit",onClick:O}," 提交 "),s("div",{class:"cancel",onClick:Y},c(e(l)?"取消订阅":"取消訂閱"),1)])])]),s("div",we,[s("div",Ee,[s("div",Fe,[s("div",Ie,[s("h2",Ue,c(e(l)?"联络信息":"聯絡信息"),1)]),s("div",Re,[(A(!0),z(re,null,ne(e(ge),(o,ee)=>(A(),z("div",{class:"item",key:ee},[s("div",qe,c(e(l)?o.title[0]:o.title[1]),1),s("div",Te,[s("img",{class:"icon",src:o.icon},null,8,ze),s("a",{href:o.href,class:"link"},c(o.url),9,De)])]))),128))])])])]),u(q,{modelValue:e(y),"onUpdate:modelValue":a[7]||(a[7]=o=>P(y)?y.value=o:null),title:"提示",width:"525",center:"","show-close":!1,"lock-scroll":!1,"z-index":"11"},{default:i(()=>[s("div",Ae,[s("p",null,c(e(l)?"订阅成功!感谢您的订阅,请及时关注":"訂閱成功!感謝您的訂閱,請及時關注"),1),s("p",null,[s("span",null,c(e(I)),1),E(c(e(l)?"邮箱我们将第一时间在此邮箱为您":"郵箱我們將第一時間在此郵箱爲您"),1)]),s("p",null,c(e(l)?"推送最新的订阅信息":"推送最新的訂閱信息"),1)])]),footer:i(()=>[s("div",Be,[s("div",{class:"confirm",onClick:X},c(e(l)?"确定":"確定"),1)])]),_:1},8,["modelValue"]),u(q,{modelValue:e(x),"onUpdate:modelValue":a[11]||(a[11]=o=>P(x)?x.value=o:null),title:"",width:e(L).pattern==="mobilePattern"?"100%":"525px",center:"",modal:!0,"close-on-click-modal":!1,"lock-scroll":!1,"z-index":"10"},{footer:i(()=>[s("div",Le,[s("div",{class:"confirm",onClick:W},c(e(l)?"取消订阅":"取消訂閱"),1)])]),default:i(()=>[u(R,{ref_key:"cancelFormRef",ref:V,model:e(p),rules:e(K),"label-width":"auto"},{default:i(()=>[u(d,{label:e(l)?"电子邮箱":"電子郵箱",prop:"email"},{default:i(()=>[u(n,{type:"text",modelValue:e(p).email,"onUpdate:modelValue":a[8]||(a[8]=o=>e(p).email=o),maxlength:"32",placeholder:e(l)?"请输入邮箱账号":"請輸入郵箱賬號"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),u(d,{label:e(l)?"验证码":"驗證碼",prop:"captcha"},{default:i(()=>[u(n,{type:"text",modelValue:e(p).captcha,"onUpdate:modelValue":a[9]||(a[9]=o=>e(p).captcha=o),maxlength:"6",placeholder:e(l)?"请输入邮箱验证码":"請輸入郵箱驗證碼"},null,8,["modelValue","placeholder"]),s("div",{class:D(["code",{active:!e(_)}]),onClick:a[10]||(a[10]=o=>N("cancel"))},c(e(g)),3)]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["modelValue","width"])],2)}}},sl=le(Me,[["__scopeId","data-v-dd42df2f"]]);export{sl 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.