Comment-2812c23a.js 2.2 KB

1
  1. import{d as z,r as E,b,a as C,o as s,c as r,Q as D,B as a,E as l,f as j,a2 as L,D as P,F,dA as S,L as A,M as B,__tla as M}from"./index-f65577b8.js";import{E as O,__tla as Q}from"./el-image-6b44629c.js";import{__tla as q}from"./el-image-viewer-7e496319.js";import{e as G,__tla as H}from"./spu-f470600f.js";import{c as J,__tla as K}from"./index-c1ff7b7a.js";import{u as R,__tla as T}from"./useMessage-4dbf0ae4.js";import{_ as V}from"./_plugin-vue_export-helper-1b428a4d.js";let I,W=Promise.all([(()=>{try{return M}catch{}})(),(()=>{try{return Q}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=>(A("data-v-c767a034"),e=e(),B(),e))(()=>a("p",{class:"first-review"},"\u9996\u8BC4",-1)),v=["title"],I=V(z({__name:"Comment",props:{propFormData:{type:Object,default:()=>({})}},setup(e){const k=e,o=E({logs:[]}),x=k.propFormData.id,N=R();return b(async()=>{console.log(k.propFormData),(async()=>{if(x){const i=await G({pageNo:1,pageSize:100,spuId:x});i||N.error("\u4EA4\u6613\u5546\u54C1\u4E0D\u5B58\u5728"),o.value.list=i.list}})()}),(i,X)=>{const U=O;return C(o).list==""?(s(),r("div",_," \u8BE5\u5546\u54C1\u6682\u65E0\u8BC4\u8BBA ")):(s(!0),r(F,{key:1},D(C(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(U,{src:"item.picUrls[0]",class:"image",onClick:c=>(n=>{const p=[];S(n)?n.forEach(w=>{p.push(w)}):p.push(n),J({urlList:p,zIndex:9999})})(t.picUrls),style:{width:"100%",height:"100%"}},null,8,["onClick"])])])):L("",!0),a("div",f,[a("p",h,[P("\u578B\u53F7\uFF1A"+l(t.spuName)+"-",1),(s(!0),r(F,null,D(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,I as default};