import{d as w,r as E,b,a as N,o as s,c as r,R as z,C as a,G as l,f as j,D as P,E as S,F as C,dA as A,M as G,N as L,__tla as M}from"./index-92ad187a.js";import{E as O,__tla as R}from"./el-image-ee9e09ec.js";import{__tla as q}from"./el-image-viewer-d472c5a2.js";import{e as B,__tla as H}from"./spu-64ca9320.js";import{c as J,__tla as K}from"./index-d9067f1c.js";import{u as Q,__tla as T}from"./useMessage-d9788660.js";import{_ as V}from"./_plugin-vue_export-helper-1b428a4d.js";let D,W=Promise.all([(()=>{try{return M}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return T}catch{}})()]).then(async()=>{let _,m,u,d,y,f,h,g,v;_={key:0,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},m={class:"rating-title"},u={class:"content"},d={key:0,class:"content-image"},y={class:"image"},f={class:"details"},h={class:"product-model"},g=(e=>(G("data-v-c767a034"),e=e(),L(),e))(()=>a("p",{class:"first-review"},"\u9996\u8BC4",-1)),v=["title"],D=V(w({__name:"Comment",props:{propFormData:{type:Object,default:()=>({})}},setup(e){const k=e,o=E({logs:[]}),x=k.propFormData.id,F=Q();return b(async()=>{console.log(k.propFormData),(async()=>{if(x){const i=await B({pageNo:1,pageSize:100,spuId:x});i||F.error("\u4EA4\u6613\u5546\u54C1\u4E0D\u5B58\u5728"),o.value.list=i.list}})()}),(i,X)=>{const I=O;return N(o).list==""?(s(),r("div",_," \u8BE5\u5546\u54C1\u6682\u65E0\u8BC4\u8BBA ")):(s(!0),r(C,{key:1},z(N(o).list,t=>(s(),r("div",{class:"container",key:t},[a("h3",m,l(t.descriptionScores)+"\u661F",1),a("div",u,[t.picUrls!=""&&t.picUrls!=null?(s(),r("div",d,[a("div",y,[j(I,{src:"item.picUrls[0]",class:"image",onClick:c=>(n=>{const p=[];A(n)?n.forEach(U=>{p.push(U)}):p.push(n),J({urlList:p,zIndex:9999})})(t.picUrls),style:{width:"100%",height:"100%"}},null,8,["onClick"])])])):P("",!0),a("div",f,[a("p",h,[S("\u578B\u53F7\uFF1A"+l(t.spuName)+"-",1),(s(!0),r(C,null,z(t.skuProperties,c=>(s(),r("span",{key:c.propertyId},l(c.propertyName)+"-"+l(c.valueName),1))),128))]),g,a("p",{class:"comment",title:t.content},"\u8BC4\u8BED\uFF1A"+l(t.content),9,v)])])]))),128))}}}),[["__scopeId","data-v-c767a034"]])});export{W as __tla,D as default};
