PageSourceSearch

https://ptponclick.com/_nuxt/Dz2qr9zi.js

js ptponclick.com collected 2026-10-03 21:05:38 UTC 6,407 bytes, 1 lines download raw bytes

1import{_ as D}from"./BhvMsE0I.js";import{_ as E,a as L}from"./BP5pZnpK.js";import{r as a,f as R,c as w,b as f,a as e,d as i,t as b,u as s,h as q,w as U,m as x,v as k,l as g,R as T,e as A,p as F,o as V,x as v}from"./CN_fGSg6.js";import{a as H}from"./D0qypDV1.js";import{s as P}from"./BxLnufdZ.js";import"./Bbs5lv6a.js";async function W(n){const l={source:"contact",name:n.name,phone:n.phone,intent:n.intent,message:n.message,_gotcha:n._gotcha};n.company&&(l.company=n.company),await P(l)}function j(){const n=a(""),l=a(""),d=a(""),u=a("consult"),m=a(""),p=a(""),r=a(!1),_=a(!1),y=a("");async function B(){y.value="",r.value=!0;const N={name:n.value.trim(),company:l.value.trim(),phone:d.value.trim(),intent:u.value,message:m.value.trim(),_gotcha:p.value};try{await W(N),_.value=!0}catch(t){const c=t;y.value=c.data?.statusMessage||c.data?.error||c.data?.message||c.message||"提交失败,请稍后重试或直接扫码联系商务"}finally{r.value=!1}}function C(N){N.preventDefault(),r.value||B()}return{name:n,company:l,phone:d,intent:u,message:m,gotcha:p,submitting:r,submitted:_,error:y,onSubmit:C}}const z={class:"tc-container py-12"},G={class:"grid gap-10 lg:grid-cols-12"},I={class:"lg:col-span-5"},J={class:"mt-8 rounded-lg border border-border bg-surface-2 p-5 text-sm text-text-muted"},K={class:"mt-3 space-y-2"},O={key:0,class:"text-text-subtle"},Q=["href"],X={class:"mt-4 text-xs text-text-subtle"},Y={class:"lg:col-span-7"},Z={key:0,class:"rounded-lg border border-primary/30 bg-surface p-8 shadow-card",role:"status"},tt={class:"mt-6"},et={class:"mt-6 grid gap-4 sm:grid-cols-2"},st={class:"sm:col-span-2"},ot={class:"sm:col-span-2"},nt={class:"sm:col-span-2"},lt={class:"sr-only","aria-hidden":"true"},at={key:0,class:"mt-4 text-sm text-danger",role:"alert"},rt={class:"mt-6"},ft=R({__name:"contact",setup(n){H({title:"联系我们 - 商务合作/询盘咨询 | 点达供应链",description:"联系点达供应链,获取头程、海外仓、尾端与进出口服务报价。支持企业微信扫码添加商务与在线留言。"});const{name:l,company:d,phone:u,intent:m,message:p,gotcha:r,submitting:_,submitted:y,error:B,onSubmit:C}=j();return(N,t)=>{const c=D,M=E,$=A,S=F,h=L;return V(),w("main",null,[f(c,{eyebrow:"联系我们",title:"询盘、合作或问题反馈",description:"推荐优先扫码添加企业微信商务;也可提交在线留言。海内外分公司布局见关于我们。"}),e("section",z,[e("div",G,[e("div",I,[f(M),e("div",J,[t[12]||(t[12]=e("div",{class:"font-semibold text-text"},"总部联系方式",-1)),e("ul",K,[e("li",null,[t[7]||(t[7]=e("span",{class:"text-text-subtle"},"电话:",-1)),i(" "+b(s(v).phone)+" ",1),s(v).phoneNote?(V(),w("span",O,b(s(v).phoneNote),1)):q("",!0)]),e("li",null,[t[8]||(t[8]=e("span",{class:"text-text-subtle"},"邮箱:",-1)),e("a",{href:`mailto:${s(v).email}`,class:"tc-link"},b(s(v).email),9,Q)]),e("li",null,[t[9]||(t[9]=e("span",{class:"text-text-subtle"},"地址:",-1)),i(" "+b(s(v).address),1)])]),e("p",X,[t[11]||(t[11]=i(" 全球分公司地图与地址: ",-1)),f($,{to:"/about",class:"font-medium text-primary hover:underline"},{default:U(()=>[...t[10]||(t[10]=[i("关于我们",-1)])]),_:1})])])]),e("div",Y,[s(y)?(V(),w("div",Z,[t[14]||(t[14]=e("h2",{class:"text-lg font-semibold text-text"},"已收到您的留言",-1)),t[15]||(t[15]=e("p",{class:"mt-2 text-sm text-text-muted"}," 商务将在 1 个工作日内与您联系。如需立即沟通,请扫描左侧企业微信二维码。 ",-1)),e("div",tt,[f(S,{to:"/quote"},{default:U(()=>[...t[13]||(t[13]=[i("同时获取报价",-1)])]),_:1})])])):(V(),w("form",{key:1,class:"rounded-lg border border-border bg-surface p-6 shadow-card",onSubmit:t[6]||(t[6]=(...o)=>s(C)&&s(C)(...o))},[t[23]||(t[23]=e("h2",{class:"text-lg font-semibold text-text"},"在线留言",-1)),e("div",et,[e("div",null,[t[16]||(t[16]=e("label",{class:"text-sm font-semibold text-text",for:"name"},"姓名",-1)),x(e("input",{id:"name","onUpdate:modelValue":t[0]||(t[0]=o=>g(l)?l.value=o:null),required:"",maxlength:"50",class:"mt-2 w-full rounded-md border border-border bg-surface px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-accent/40"},null,512),[[k,s(l)]])]),e("div",null,[t[17]||(t[17]=e("label",{class:"text-sm font-semibold text-text",for:"company"},[i(" 公司 "),e("span",{class:"font-normal text-text-subtle"},"(选填)")],-1)),x(e("input",{id:"company","onUpdate:modelValue":t[1]||(t[1]=o=>g(d)?d.value=o:null),maxlength:"100",class:"mt-2 w-full rounded-md border border-border bg-surface px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-accent/40"},null,512),[[k,s(d)]])]),e("div",st,[t[18]||(t[18]=e("label",{class:"text-sm font-semibold text-text",for:"phone"},"电话",-1)),x(e("input",{id:"phone","onUpdate:modelValue":t[2]||(t[2]=o=>g(u)?u.value=o:null),required:"",type:"tel",maxlength:"30",class:"mt-2 w-full rounded-md border border-border bg-surface px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-accent/40"},null,512),[[k,s(u)]])]),e("div",ot,[t[20]||(t[20]=e("label",{class:"text-sm font-semibold text-text",for:"intent"},"咨询类型",-1)),x(e("select",{id:"intent","onUpdate:modelValue":t[3]||(t[3]=o=>g(m)?m.value=o:null),class:"mt-2 w-full rounded-md border border-border bg-surface px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-accent/40"},[...t[19]||(t[19]=[e("option",{value:"consult"},"业务咨询",-1),e("option",{value:"quote"},"报价需求",-1),e("option",{value:"coop"},"商务合作",-1),e("option",{value:"feedback"},"投诉建议",-1)])],512),[[T,s(m)]])]),e("div",nt,[t[21]||(t[21]=e("label",{class:"text-sm font-semibold text-text",for:"message"},"留言内容",-1)),x(e("textarea",{id:"message","onUpdate:modelValue":t[4]||(t[4]=o=>g(p)?p.value=o:null),required:"",rows:"4",maxlength:"2000",class:"mt-2 w-full rounded-md border border-border bg-surface px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-accent/40"},null,512),[[k,s(p)]])])]),e("div",lt,[t[22]||(t[22]=e("label",{for:"website"},"网站",-1)),x(e("input",{id:"website","onUpdate:modelValue":t[5]||(t[5]=o=>g(r)?r.value=o:null),type:"text",name:"website",tabindex:"-1",autocomplete:"off"},null,512),[[k,s(r)]])]),s(B)?(V(),w("p",at,b(s(B)),1)):q("",!0),e("div",rt,[f(S,{type:"submit",disabled:s(_)},{default:U(()=>[i(b(s(_)?"提交中…":"提交留言"),1)]),_:1},8,["disabled"])])],32))])])]),f(h)])}}});
1export{ft 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.