PageSourceSearch

https://paxini.com/_nuxt/XpTR11UK.js

js paxini.com collected 2026-10-06 15:12:16 UTC 7,689 bytes, 1 lines download raw bytes

1import{E as B}from"./C2Tw9sIW.js";import{E as L,a as N}from"./D-9ESSq-.js";import{E as z}from"./Vj2h1hZf.js";import{E as P}from"./BUATNB_7.js";import{a as G,E as M}from"./DV-Vg9pN.js";import{E as A}from"./CrbTCvKp.js";import{E as W}from"./DotKqmAw.js";import{E as v}from"./BXk9CvtX.js";/* empty css        */import"./tW89URGm.js";import{s as j,m as $,j as n,ar as d,ay as t,q as l,aP as s,af as h,aG as H,a9 as J,p as c,ad as K}from"./D5Ir9beM.js";import{u as Q,a as w,c as X}from"./QldhR_nf.js";import{z as Y}from"./DenMQlSR.js";import{u as Z}from"./BExRZ9Wq.js";import"./C8F4946K.js";import"./D_qUNCOl.js";import"./DTxnZhXo.js";import"./DtZEl1eO.js";import"./B7xSyMLi.js";import"./Co4i3FA7.js";import"./CzAKv72b.js";import"./DuG7fNxA.js";import"./Cnxz_Ksh.js";const ee=async k=>{const e=[],S=k.map((i,o)=>({index:o,file:i,url:i.url}));if(k.length>0){const i=S.filter(p=>p.file.status==="success"),o=i.map(p=>p.file.url),_=S.filter(p=>p.file.status==="ready"),f=_.map(p=>p.file.raw);if(f.length===0)return o;const g=await Q(f),x=(g==null?void 0:g.map((p,y)=>({url:p.url,index:_[y].index})))||[],I=[...i,...x].sort((p,y)=>p.index-y.index);e.push(...I.map(p=>p.url))}return e},te={class:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8 md:py-10"},oe={class:"text-center md:mb-10"},le={class:"text-[24px] md:text-2xl font-semibold text-gray-800"},ae={class:"bg-white rounded-lg shadow-md p-2 md:p-8"},se={class:"text-[20px] md:text-xl font-medium text-gray-800 mt-1 md:mt-5 md:mb-4 pb-2 border-b border-gray-200"},re={class:"grid grid-cols-1 md:grid-cols-2 md:gap-6 md:mb-6"},pe={class:"grid grid-cols-1 md:grid-cols-2 md:gap-6 md:mb-6"},de={class:"text-[20px] md:text-xl font-medium text-gray-800 mt-1 md:mt-8 md:mb-4 pb-2 border-b border-gray-200"},ne={class:"el-upload__text"},ue={class:"el-upload__tip"},ie={class:"flex justify-center gap-6 mt-8"},me={class:"text-center py-5"},ce={class:"text-xl font-semibold text-gray-800 mb-4"},fe={class:"text-gray-600 mb-3"},be={class:"text-gray-600 mb-6"},ze=j({__name:"submit",setup(k){const{t:e}=Z(),S=H(),i=h(),o=K({name:"",company:"",phone:"",orderId:"",feedbackTypes:[],description:"",expectations:"",attachments:[]}),_=h(!1),f=h([]),g=h(!1),x=h(!1),T={name:[{required:!0,message:e("Support.nameRequired"),trigger:"blur"}],company:[{required:!0,message:e("Support.companyRequired"),trigger:"blur"}],phone:[{required:!0,message:e("Support.phoneRequired"),trigger:"blur"},{pattern:/^1[3-9]\d{9}$/,message:e("Support.invalidPhone"),trigger:"blur"}],feedbackTypes:[{required:!0,message:e("Support.feedbackTypeRequired"),trigger:"change"}],description:[{required:!0,message:e("Support.descriptionRequired"),trigger:"blur"},{min:10,message:e("Support.descriptionMin"),trigger:"blur"}],expectations:[{required:!0,message:e("Support.expectationRequired"),trigger:"blur"}]},I=async V=>V.raw.size>10485760?(v.error(e("Support.fileTooLarge")),!1):!0,p=h(""),y=async()=>{if(!o.phone){v.warning(e("Support.phoneRequired"));return}if(!/^1[3-9]\d{9}$/.test(o.phone)){v.warning(e("Support.invalidPhone"));return}i.value.validate(async V=>{if(V){_.value=!0;try{const a=[];if(f.value.length>0){const b=await ee(f.value);a.push(...b)}const m={name:o.name,company:o.company,phone:o.phone,orderId:o.orderId||void 0,feedbackTypes:o.feedbackTypes,description:o.description,expectations:o.expectations,attachments:a},u=await X(m);p.value=u.ticketId,x.value=!0}catch(a){v.error(a.message||"提交失败,请稍后重试")}finally{_.value=!1}}else return v.warning(e("Support.formInvalid")),!1})},F=()=>{x.value=!1,S.push("/Support")},U=()=>{S.push("/Support")};return(V,a)=>{const m=z,u=N,b=M,q=G,R=B,C=W,E=P,D=L,O=A;return J(),$("div",te,[n("div",oe,[n("h1",le,d(t(e)("Support.submitTitle")),1)]),n("div",ae,[l(D,{ref_key:"formRef",ref:i,model:o,rules:T,"label-position":"top","label-width":"auto"},{default:s(()=>[n("h2",se,d(t(e)("Support.requesterInfo")),1),n("div",re,[l(u,{label:t(e)("Support.name"),prop:"name",class:"mb-0"},{default:s(()=>[l(m,{modelValue:o.name,"onUpdate:modelValue":a[0]||(a[0]=r=>o.name=r),placeholder:t(e)("Support.enterName"),class:"w-full"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(u,{label:t(e)("Support.company"),prop:"company",class:"mb-0"},{default:s(()=>[l(m,{modelValue:o.company,"onUpdate:modelValue":a[1]||(a[1]=r=>o.company=r),placeholder:t(e)("Support.enterCompany"),class:"w-full"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),n("div",pe,[l(u,{label:t(e)("Support.phone"),prop:"phone",class:"mb-0"},{default:s(()=>[l(m,{modelValue:o.phone,"onUpdate:modelValue":a[2]||(a[2]=r=>o.phone=r),placeholder:t(e)("Support.enterPhone"),maxlength:"11",class:"w-full"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(u,{label:t(e)("Support.orderId"),prop:"orderId",class:"mb-0"},{default:s(()=>[l(m,{modelValue:o.orderId,"onUpdate:modelValue":a[3]||(a[3]=r=>o.orderId=r),placeholder:t(e)("Support.enterOrderId"),class:"w-full"},null,8,["modelValue","placeholder"])]),_:1}
1,8,["label"])]),n("h2",de,d(t(e)("Support.feedbackDetails")),1),l(u,{label:t(e)("Support.feedbackType"),prop:"feedbackTypes",class:"mb-6"},{default:s(()=>[l(q,{modelValue:o.feedbackTypes,"onUpdate:modelValue":a[4]||(a[4]=r=>o.feedbackTypes=r),class:"flex flex-wrap gap-4"},{default:s(()=>[l(b,{label:t(w).PRODUCT},{default:s(()=>[c(d(t(e)("Support.productRelated")),1)]),_:1},8,["label"]),l(b,{label:t(w).AFTER_SALES},{default:s(()=>[c(d(t(e)("Support.afterSales")),1)]),_:1},8,["label"]),l(b,{label:t(w).LOGISTICS},{default:s(()=>[c(d(t(e)("Support.logistics")),1)]),_:1},8,["label"]),l(b,{label:t(w).INVOICING},{default:s(()=>[c(d(t(e)("Support.invoiceIssue")),1)]),_:1},8,["label"]),l(b,{label:t(w).OTHER},{default:s(()=>[c(d(t(e)("Support.other")),1)]),_:1},8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),l(u,{label:t(e)("Support.description"),prop:"description",class:"mb-6"},{default:s(()=>[l(m,{modelValue:o.description,"onUpdate:modelValue":a[5]||(a[5]=r=>o.description=r),type:"textarea",placeholder:t(e)("Support.enterDescription"),rows:5,class:"w-full"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(u,{label:t(e)("Support.attachment"),class:"mb-6"},{default:s(()=>[l(C,{"file-list":f.value,"onUpdate:fileList":a[6]||(a[6]=r=>f.value=r),drag:"",action:"#","on-change":I,"auto-upload":!1,disabled:g.value,class:"w-full"},{tip:s(()=>[n("div",ue,d(t(e)("Support.supportFormats")),1)]),default:s(()=>[l(R,{class:"el-icon--upload"},{default:s(()=>[l(t(Y))]),_:1}),n("div",ne,d(g.value?t(e)("Support.uploading"):t(e)("Support.uploadFile")),1)]),_:1},8,["file-list","disabled"])]),_:1},8,["label"]),l(u,{label:t(e)("Support.expectation"),prop:"expectations",class:"mb-8"},{default:s(()=>[l(m,{modelValue:o.expectations,"onUpdate:modelValue":a[7]||(a[7]=r=>o.expectations=r),type:"textarea",placeholder:t(e)("Support.enterExpectation"),rows:4,class:"w-full"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n("div",ie,[l(E,{class:"w-32 md:w-28",onClick:U},{default:s(()=>[c(d(t(e)("Support.cancel")),1)]),_:1}),l(E,{type:"primary",class:"w-32 md:w-28",loading:_.value,onClick:y},{default:s(()=>[c(d(t(e)("Support.submit")),1)]),_:1},8,["loading"])])]),_:1},8,["model"])]),l(O,{modelValue:x.value,"onUpdate:modelValue":a[8]||(a[8]=r=>x.value=r),width:"30%","show-close":!1,"header-style":"display: none;","footer-class":"text-center p-4"},{footer:s(()=>[l(E,{type:"primary",size:"default",onClick:F},{default:s(()=>[...a[9]||(a[9]=[c("关闭",-1)])]),_:1})]),default:s(()=>[n("div",me,[n("h3",ce,d(t(e)("Support.contactInfo")),1),n("p",fe,d(t(e)("Support.submitSuccessMessage")),1),n("p",be,d(t(e)("Support.submitSuccessMessage1")),1)])]),_:1},8,["modelValue"])])}}});export{ze 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.