PageSourceSearch

https://www.yunexpress.cn/_nuxt/ContactModal.vue.20260923.js

js yunexpress.cn collected 2026-10-02 10:02:30 UTC 9,397 bytes, 1 lines download raw bytes

1import{e as _,v as C,y as t,af as v,i as V,k as s,m as p,l as n,B as T,H as B,M as R,ac as j,r as b,ak as L,C as q,z as o,an as G,al as H,G as J,at as K,I as Q,E as X,aj as Y}from"./entry.20260923.js";import{u as Z}from"./api.20260923.js";const ee=_({__name:"SuccessModal",emits:["close"],setup(h,{emit:c}){const g=c;return(x,m)=>{const d=v;return V(),C(d,{ui:{overlay:"bg-black/20",content:"max-w-150 ring-0"}},{content:t(()=>[s("div",null,[s("img",{onClick:m[0]||(m[0]=y=>g("close",!1)),src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/close.webp",alt:"close",width:"30",class:"absolute right-3 top-3 z-20 cursor-pointer"}),m[1]||(m[1]=s("div",{class:"flex flex-col items-center justify-center py-16"},[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/success.png",alt:"success",width:"600"}),s("div",{class:"text-3xl mt-8 mb-2"},"非常感谢"),s("p",{class:"px-4 text-base text-dimmed font-light"},[p(" 您的提交已收到。 "),s("br",{class:"md:hidden"}),p("我们将很快给你回复。 ")])],-1))])]),_:1})}}}),se={class:"flex items-center gap-2 bg-white p-4 pr-12 min-h-13 rounded-xl border-b-2 border-primary shadow-2xl"},te=_({__name:"FailedModal",props:{message:{}},emits:["close"],setup(h,{emit:c}){const g=c;return(x,m)=>{const d=T,y=v;return V(),C(y,{ui:{overlay:"bg-black/20",content:"max-w-100 bg-default-none ring-0"}},{content:t(()=>[s("div",null,[s("img",{onClick:m[0]||(m[0]=I=>g("close",!1)),src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/close.webp",alt:"close",width:"30",class:"absolute right-3 top-3 z-20 cursor-pointer"}),s("div",se,[n(d,{name:"ri:error-warning-fill",size:"25",class:"text-warning"}),p(" "+B(x.message||"系统正忙,请稍后再试。"),1)])])]),_:1})}}}),ae={class:"md:px-10 px-4 py-8 w-full mx-auto overflow-auto"},oe={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},ne={class:"flex items-start space-x-2"},le={class:"text-xs text-dimmed font-normal pl-2"},ie={class:"text-center"},de=_({__name:"ContactModal",emits:["close"],setup(h,{emit:c}){const{queryCountries:g,addContactInfo:x}=Z(),m=R(),d=c,y=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/,I=i=>{const e=[];return i.CustomerName||e.push({name:"CustomerName",message:"必填"}),i.ContactEmail?y.test(i.ContactEmail)||e.push({name:"ContactEmail",message:"电子邮件格式不正确"}):e.push({name:"ContactEmail",message:"必填"}),i.ContactPhone||e.push({name:"ContactPhone",message:"必填"}),i.CompanyName||e.push({name:"CompanyName",message:"必填"}),i.AgreePrivacy||e.push({name:"AgreePrivacy",message:"请点击并同意隐私政策。"}),e},a=j({CustomerName:"",ContactEmail:"",ContactPhone:"",ContactType:"L",WechatID:"",CompanyName:"",Website:"",MonthlyOrderVolume:void 0,FocusedRegions:void 0,Introduction:"",AgreePrivacy:!1}),f=b(!1),U=b([]);(async()=>{try{const i=await g();U.value=(i==null?void 0:i.map(e=>({label:`${e.Name} (${e.CountryTwoCode})`,code:e.CountryTwoCode})))||[]}catch{}})();const w=b(""),$=m.create(ee),M=m.create(te,{props:{message:w}}),P=()=>{d("close",!1),$.open()},N=()=>{d("close",!1),M.open()};async function z(){try{f.value=!0;const i=await x(o(a));if((i==null?void 0:i.Code)!==200){w.value=i.Message||"系统正忙,请稍后再试。",N();return}Object.keys(a).forEach(e=>{e==="AgreePrivacy"?a[e]=!1:e==="ContactType"?a[e]="L":a[e]=""}),P()}catch{w.value="系统正忙,请稍后再试。",N()}finally{f.value=!1}}return(i,e)=>{const u=q,r=L,k=G,E=H,F=J,W=Q,A=K,O=X,S=Y,D=v;return V(),C(D,{ui:{overlay:"bg-black/20",content:"max-w-6xl"}},{content:t(()=>[s("div",ae,[s("img",{onClick:e[0]||(e[0]=l=>d("close",!1)),src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/close.webp",alt:"close",width:"30",class:"absolute right-3 top-3 z-20 cursor-pointer"}),e[28]||(e[28]=s("h2",{class:"text-4xl font-bold mb-6 text-center"},"获取报价",-1)),e[29]||(e[29]=s("div",{class:"text-gray-400 md:text-sm text-xs text-center mb-10"},[p(" 如有包裹问题或投诉,请联系 "),s("a",{href:"mailto:[email protected]",class:"text-primary inline-block"}," [email protected] "),s("p",{class:"mt-2"}," 需要报价和定制物流解决方案?填写表格下面,我们会给你更多的细节。 ")],-1)),n(S,{validate:I,state:o(a),class:"grid gap-8",onSubmit:z},{default:t(()=>[s("div",oe,[n(r,{name:"CustomerName"},{default:t(()=>[n(u,{modelValue:o(a).CustomerName,"onUpdate:modelValue":e[1]||(e[1]=l=>o(a).CustomerName=l),size:"xl",maxlength:"100",placeholder:"输入您的姓名",class:"w-full",ui:{base:"py-5 text-xs"}},{leading:t(()=>[...e[11]||(e[11]=[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew
1/images/icon/user-01.webp",alt:"User Icon",width:"20"},null,-1)])]),trailing:t(()=>[...e[12]||(e[12]=[s("span",{class:"text-red-500"}," *",-1)])]),_:1},8,["modelValue"])]),_:1}),n(r,{name:"ContactEmail"},{default:t(()=>[n(u,{modelValue:o(a).ContactEmail,"onUpdate:modelValue":e[2]||(e[2]=l=>o(a).ContactEmail=l),size:"xl",maxlength:"100",placeholder:"输入您的电子邮箱",class:"w-full",ui:{base:"py-5 text-xs"}},{leading:t(()=>[...e[13]||(e[13]=[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/email.webp",alt:"Email Icon",width:"20"},null,-1)])]),trailing:t(()=>[...e[14]||(e[14]=[s("span",{class:"text-red-500"}," *",-1)])]),_:1},8,["modelValue"])]),_:1}),n(r,{name:"ContactPhone"},{default:t(()=>[n(u,{modelValue:o(a).ContactPhone,"onUpdate:modelValue":e[3]||(e[3]=l=>o(a).ContactPhone=l),size:"xl",maxlength:"100",placeholder:"输入您的电话",class:"w-full",ui:{base:"py-5 text-xs"}},{leading:t(()=>[...e[15]||(e[15]=[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/tel-02.webp",alt:"Phone Icon",width:"20"},null,-1)])]),trailing:t(()=>[...e[16]||(e[16]=[s("span",{class:"text-red-500"}," *",-1)])]),_:1},8,["modelValue"])]),_:1}),n(r,{name:"CompanyName"},{default:t(()=>[n(u,{modelValue:o(a).CompanyName,"onUpdate:modelValue":e[4]||(e[4]=l=>o(a).CompanyName=l),size:"xl",maxlength:"200",placeholder:"输入您的公司",class:"w-full",ui:{base:"py-5 text-xs"}},{leading:t(()=>[...e[17]||(e[17]=[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/company.webp",alt:"Company Icon",width:"20"},null,-1)])]),trailing:t(()=>[...e[18]||(e[18]=[s("span",{class:"text-red-500"}," *",-1)])]),_:1},8,["modelValue"])]),_:1}),n(r,{name:"WechatID",class:"md:col-span-1"},{default:t(()=>[n(u,{modelValue:o(a).WechatID,"onUpdate:modelValue":e[5]||(e[5]=l=>o(a).WechatID=l),size:"xl",maxlength:"100",placeholder:"微信",class:"w-full",ui:{base:"py-5 text-xs"}},{leading:t(()=>[...e[19]||(e[19]=[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/id.webp",alt:"Wechat ID Icon",width:"20"},null,-1)])]),_:1},8,["modelValue"])]),_:1}),n(r,{name:"Website"},{default:t(()=>[n(u,{modelValue:o(a).Website,"onUpdate:modelValue":e[6]||(e[6]=l=>o(a).Website=l),size:"xl",maxlength:"100",placeholder:"网站",class:"w-full",ui:{base:"py-5 text-xs"}},{leading:t(()=>[...e[20]||(e[20]=[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/website.webp",alt:"Website Icon",width:"20"},null,-1)])]),_:1},8,["modelValue"])]),_:1}),n(r,{name:"MonthlyOrderVolume",class:"relative"},{default:t(()=>[e[21]||(e[21]=s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/monthly.webp",alt:"Monthly Order Volume Icon",width:"20",class:"absolute mt-4.5 ml-3 z-20"},null,-1)),n(k,{modelValue:o(a).MonthlyOrderVolume,"onUpdate:modelValue":e[7]||(e[7]=l=>o(a).MonthlyOrderVolume=l),size:"xl",placeholder:"月度订单量",class:"w-full",orientation:"vertical",ui:{increment:"hidden",decrement:"hidden",base:"pl-11 py-5 text-xs"},min:1,max:999999999},null,8,["modelValue"])]),_:1}),n(r,{name:"FocusedRegions",class:"md:col-span-2"},{default:t(()=>[n(E,{modelValue:o(a).FocusedRegions,"onUpdate:modelValue":e[8]||(e[8]=l=>o(a).FocusedRegions=l),items:o(U),"value-key":"code",placeholder:"重点地区","search-input":{placeholder:"搜索..."},class:"w-full h-14 text-xs"},{leading:t(()=>[...e[22]||(e[22]=[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/address-01.webp",width:"20"},null,-1)])]),_:1},8,["modelValue","items"])]),_:1})]),n(r,{name:"Introduction"},{default:t(()=>[n(F,{modelValue:o(a).Introduction,"onUpdate:modelValue":e[9]||(e[9]=l=>o(a).Introduction=l),placeholder:"请介绍您的业务和产品信息(类别、重量和尺寸)。",rows:4,maxlength:"500",class:"w-full",ui:{base:"py-5 text-xs"}},{leading:t(()=>[...e[23]||(e[23]=[s("img",{src:"https://psyt-image.yunexpress.com/imagesnew/images/icon/edit.webp",alt:"Website Icon",width:"20",class:"mt-3"},null,-1)])]),_:1},8,["modelValue"])]),_:1}),s("div",ne,[n(r,{name:"AgreePrivacy"},{default:t(()=>[n(A,{modelValue:o(a).AgreePrivacy,"onUpdate:modelValue":e[10]||(e[10]=l=>o(a).AgreePrivacy=l)},{label:t(()=>[s("span",le,[e[25]||(e[25]=p(" 请点击并同意 ",-1)),n(W,{to:"/privacy-policy",target:"_blank",class:"text-primary"},{default:t(()=>[...e[24]||(e[24]=[p(" 隐私政策 ",-1)])]),_:1}),e[26]||(e[26]=p(" 在提交您的个人信息之前。 ",-1))])]),_:1},8,["modelValue"])]),_:1})]),s("div",ie,[n(O,{type:"submit",color:"primary",loading:o(f),class:"px-6 py-3 text-xl rounded-xl cursor-pointer bg-gradient-to-r from-primary-300 to-primary hover:to-primary-300"},{default:t(()=>[...e[27]||(e[27]=[p(" 提交信息 ",-1)])]),_:1},8,["loading"])])]),_:1},8,["state"])])]),_:1})}}});
1export{de as _};

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.