import{Z as s,l as e,m as a,e as t,f as l,w as r,j as c,t as m,u as i,k as o,F as u,r as n,g as p,x as d,i as f,S as _}from"./index-9aa72eed.js";import{_ as g}from"./uni-rate.2f50b1a4.js";import{_ as y}from"./su-image.b9800e15.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";const x={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}})},h=v({__name:"comment-item",props:{item:{type:Object,default(){}}},setup:s=>(v,x)=>{const h=d,w=f,j=e(a("uni-rate"),g),k=e(a("su-image"),y),b=_;return t(),l(w,null,{default:r((()=>{var e;return[c(w,{class:"user ss-flex ss-m-b-14"},{default:r((()=>[c(w,{class:"ss-m-r-20 ss-flex"},{default:r((()=>[c(h,{class:"avatar",src:s.item.userAvatar},null,8,["src"])])),_:1}),c(w,{class:"nickname ss-m-r-20"},{default:r((()=>[m(i(s.item.userNickname),1)])),_:1}),c(w,{class:""},{default:r((()=>[c(j,{readonly:!0,modelValue:s.item.scores,"onUpdate:modelValue":x[0]||(x[0]=e=>s.item.scores=e),size:"18"},null,8,["modelValue"])])),_:1})])),_:1}),c(w,{class:"content"},{default:r((()=>[m(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((()=>[c(b,{class:"scroll-box","scroll-x":"","scroll-anchoring":""},{default:r((()=>[c(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((()=>[c(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((()=>[c(w,{class:"reply-title"},{default:r((()=>[m("商家回复：")])),_:1}),c(w,{class:"reply-content"},{default:r((()=>[m(i(s.item.replyContent),1)])),_:1})])),_:1})):p("",!0)]})),_:1})}},[["__scopeId","data-v-c011c544"]]);export{x as C,h as c};
