/* empty css                  *//* empty css                     *//* empty css                    *//* empty css                 *//* empty css               */import{d as k,I as x,c as p,b as e,u as c,w as t,R as E,o as d,V,a as r,F as T,h as w,J as C,e as i,t as I,f as B,Y as F,E as h,$ as N,i as U,a0 as u,_ as P}from"./index-hZHbf6Qq.js";import{P as S}from"./index-C__Mp2q5.js";/* empty css                                                              *//* empty css                        *//* empty css                    *//* empty css                  *//* empty css                  *//* empty css                             *//* empty css                      */const $={class:"complaint-container"},D={class:"type-tags"},J=k({__name:"index",setup(L){const m=[{label:"功能建议",value:"1"},{label:"客服问题",value:"2"},{label:"库存与价格",value:"3"},{label:"配送问题",value:"4"},{label:"售后质量问题",value:"5"},{label:"账款票问题",value:"6"},{label:"其他",value:"7"}],l=x({feedbackType:"1",content:"",contact:""}),_=()=>{if(!l.content){u.warning("请输入问题和建议");return}u.success("提交成功")};return(M,o)=>{const f=C,n=V,s=B,b=h,v=F,y=U,g=E;return d(),p("div",$,[e(c(S),{title:"投诉与建议"}),e(g,{model:l,"label-position":"top",class:"complaint-form"},{default:t(()=>[e(n,{label:"反馈类型"},{default:t(()=>[r("div",D,[(d(),p(T,null,w(m,a=>e(f,{key:a.value,type:l.feedbackType===a.value?"danger":"info",effect:l.feedbackType===a.value?"dark":"plain",class:"type-tag",onClick:R=>l.feedbackType=a.value},{default:t(()=>[i(I(a.label),1)]),_:2},1032,["type","effect","onClick"])),64))])]),_:1}),e(n,{label:"问题和建议"},{default:t(()=>[e(s,{modelValue:l.content,"onUpdate:modelValue":o[0]||(o[0]=a=>l.content=a),type:"textarea",placeholder:"请输入",rows:5,maxlength:"500","show-word-limit":""},null,8,["modelValue"])]),_:1}),e(n,{label:"上传照片"},{default:t(()=>[e(v,{action:"#","list-type":"picture-card","auto-upload":!1,limit:5},{tip:t(()=>[...o[2]||(o[2]=[r("div",{class:"upload-tip"},"上传",-1)])]),default:t(()=>[e(b,null,{default:t(()=>[e(c(N))]),_:1})]),_:1})]),_:1}),e(n,{label:"联系方式"},{default:t(()=>[e(s,{modelValue:l.contact,"onUpdate:modelValue":o[1]||(o[1]=a=>l.contact=a),placeholder:"请输入",style:{width:"400px"}},null,8,["modelValue"])]),_:1}),e(n,null,{default:t(()=>[e(y,{type:"danger",onClick:_},{default:t(()=>[...o[3]||(o[3]=[i("提交",-1)])]),_:1})]),_:1})]),_:1},8,["model"])])}}}),te=P(J,[["__scopeId","data-v-a0199e9a"]]);export{te as default};
