comment-item.90dd3105.js 2.0 KB

1
  1. import{a0 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-b48a414d.js";import{_ as g}from"./uni-rate.ae6b2b33.js";import{_ as x}from"./su-image.900c884d.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const h={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}})},v=y({__name:"comment-item",props:{item:{type:Object,default(){}}},setup:s=>(y,h)=>{const v=d,w=f,j=e(a("uni-rate"),g),k=e(a("su-image"),x),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(v,{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":h[0]||(h[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{h as C,v as c};