import{aa as s,r as e,e as a,j as t,f as l,w as r,k as m,p as c,t as i,l as o,F as u,m as n,g as p,q as d,i as _,S as f}from"./index-CWyPMHxb.js";import{_ as g}from"./uni-rate.BXeuATfq.js";import{_ as y}from"./su-image.CIjDVZiE.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v={getCommentPage:(e,a,t,l)=>s({url:"/product/comment/page",method:"GET",params:{spuId:e,pageNo:a,pageSize:t,type:l},custom:{showLoading:!1,showError:!1}})},x=h({__name:"comment-item",props:{item:{type:Object,default(){}}},setup:s=>(h,v)=>{const x=d,w=_,j=e(a("uni-rate"),g),k=e(a("su-image"),y),b=f;return t(),l(w,null,{default:r((()=>{var e;return[m(w,{class:"user ss-flex ss-m-b-14"},{default:r((()=>[m(w,{class:"ss-m-r-20 ss-flex"},{default:r((()=>[m(x,{class:"avatar",src:s.item.userAvatar},null,8,["src"])])),_:1}),m(w,{class:"nickname ss-m-r-20"},{default:r((()=>[c(i(s.item.userNickname),1)])),_:1}),m(w,{class:""},{default:r((()=>[m(j,{readonly:!0,modelValue:s.item.scores,"onUpdate:modelValue":v[0]||(v[0]=e=>s.item.scores=e),size:"18"},null,8,["modelValue"])])),_:1})])),_:1}),m(w,{class:"content"},{default:r((()=>[c(i(s.item.content),1)])),_:1}),(null==(e=s.item.picUrls)?void 0:e.length)?(t(),l(w,{key:0,class:"ss-m-t-24"},{default:r((()=>[m(b,{class:"scroll-box","scroll-x":"","scroll-anchoring":""},{default:r((()=>[m(w,{class:"ss-flex"},{default:r((()=>[(t(!0),o(u,null,n(s.item.picUrls,((e,a)=>(t(),l(w,{key:e,class:"ss-m-r-10"},{default:r((()=>[m(k,{class:"content-img",isPreview:"",previewList:s.item.picUrls,current:a,src:e,height:120,width:120,mode:"aspectFill"},null,8,["previewList","current","src"])])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})):p("",!0),s.item.replyTime?(t(),l(w,{key:1,class:"ss-m-t-20 reply-box"},{default:r((()=>[m(w,{class:"reply-title"},{default:r((()=>[c("商家回复：")])),_:1}),m(w,{class:"reply-content"},{default:r((()=>[c(i(s.item.replyContent),1)])),_:1})])),_:1})):p("",!0)]})),_:1})}},[["__scopeId","data-v-c011c544"]]);export{v as C,x as c};
