var y=(l,f,r)=>new Promise((D,n)=>{var p=i=>{try{c(r.next(i))}catch(u){n(u)}},t=i=>{try{c(r.throw(i))}catch(u){n(u)}},c=i=>i.done?D(i.value):Promise.resolve(i.value).then(p,t);c((r=r.apply(l,f)).next())});import{_ as w,c as m,w as e,P as N,ac as C,f as F,C as I,cb as B,E as L,o,k as a,j as S,i as k,p as s,q as j,t as d,L as v,M as g,N as b,l as A,cc as E}from"./index-CZJgrp0v.js";import{b as T}from"./feedback.CFWT5F4c.js";const V={data(){return{imageList:[],id:"",infoData:{}}},onLoad(l){this.id=l.id,this.getDetail()},methods:{previewImage(l){C({urls:this.infoData.evidence.map(f=>f.url),current:l})},getDetail(){return y(this,null,function*(){const l=yield T({id:this.id});if(l.code!==0){N({title:l.message,icon:"none"});return}l.data.replyAttachments=JSON.parse(l.data.replyAttachments||"[]"),l.data.evidence=JSON.parse(l.data.evidence||"[]"),this.infoData=l.data})}}};function q(l,f,r,D,n,p){const t=S,c=j,i=A,u=I(L("uv-image"),B),x=F("layout-default-uni");return o(),m(x,null,{default:e(()=>[a(t,{class:"feedback-detail-container"},{default:e(()=>[a(t,{class:"feedback-card"},{default:e(()=>[a(t,{class:"card-title"},{default:e(()=>[s("反馈信息")]),_:1}),a(t,{class:"info-content"},{default:e(()=>[a(t,{class:"info-item"},{default:e(()=>[a(c,{class:"label"},{default:e(()=>[s("所属赛事")]),_:1}),a(c,{class:"value"},{default:e(()=>[s(d(n.infoData.eventName),1)]),_:1})]),_:1}),a(t,{class:"info-item"},{default:e(()=>[a(c,{class:"label"},{default:e(()=>[s("反馈人")]),_:1}),a(c,{class:"value"},{default:e(()=>[s(d(n.infoData.creatorName)+" "+d(n.infoData.creatorPhone),1)]),_:1})]),_:1}),a(t,{class:"info-item"},{default:e(()=>[a(c,{class:"label"},{default:e(()=>[s("反馈类型")]),_:1}),a(c,{class:"value"},{default:e(()=>[s(d(n.infoData.dictIdName),1)]),_:1})]),_:1}),a(t,{class:"info-item"},{default:e(()=>[a(c,{class:"label"},{default:e(()=>[s("反馈内容")]),_:1}),a(c,{class:"value"},{default:e(()=>[s(d(n.infoData.content),1)]),_:1})]),_:1}),a(t,{class:"info-item proof-item"},{default:e(()=>[a(c,{class:"label"},{default:e(()=>[s("凭证")]),_:1}),a(t,{class:"image-list"},{default:e(()=>[(o(!0),v(g,null,b(n.infoData.evidence,(_,h)=>(o(),m(i,{key:h,src:_.url,mode:"aspectFill",class:"evidence-image",onClick:J=>p.previewImage(h)},null,8,["src","onClick"]))),128))]),_:1})]),_:1})]),_:1})]),_:1}),n.infoData.isShowReply?(o(),m(t,{key:0,class:"feedback-card"},{default:e(()=>[a(t,{class:"card-title"},{default:e(()=>[s("处理信息")]),_:1}),a(t,{class:"admin-info-content"},{default:e(()=>[a(i,{src:E,mode:"aspectFill",class:"admin-avatar"}),a(t,{class:"admin-header"},{default:e(()=>[s("管理员回复")]),_:1}),a(t,{class:"admin-content"},{default:e(()=>[a(t,{class:"time"},{default:e(()=>[s(d(n.infoData.updateTime),1)]),_:1}),a(t,{class:"content"},{default:e(()=>[s(" 管理员回复： "+d(n.infoData.replyContent),1)]),_:1}),a(t,{class:"content imgBox"},{default:e(()=>[s(" 处理附件： "),(o(!0),v(g,null,b(n.infoData.replyAttachments,_=>(o(),v(g,null,[["jpg","jpeg"].includes(_.response.suffix)?(o(),m(u,{key:0,src:_.url,mode:"widthFix"},null,8,["src"])):k("",!0)],64))),256))]),_:1})]),_:1})]),_:1})]),_:1})):k("",!0)]),_:1})]),_:1})}const R=w(V,[["render",q],["__scopeId","data-v-1e9a7b84"]]);export{R as default};
