comment-item.6bcd8e43.js 2.0 KB

1
  1. import{a7 as s,l as e,m as a,e as t,f as l,w as r,j as m,p as c,t as i,k as o,F as u,r as n,g as p,q as d,i as f,S as _}from"./index-9880b451.js";import{_ as g}from"./uni-rate.ac7990fe.js";import{_ as y}from"./su-image.53d60b59.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.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=f,j=e(a("uni-rate"),g),k=e(a("su-image"),y),b=_;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};