Comment-e523b7e4.js 2.2 KB

1
  1. import{d as N,r as j,z as S,a as z,o as s,c as e,C as w,j as t,t as l,i as U,S as E,l as P,F as C,a_ as L,v as O,x as q,_ as A,__tla as B}from"./index-66208f93.js";import{E as G,__tla as H}from"./el-image-5afdbf9a.js";import{__tla as J}from"./el-image-viewer-3d1b9860.js";import{b as K,__tla as M}from"./spu-def69907.js";import{c as Q,__tla as R}from"./index-4eee12bb.js";import{u as T,__tla as V}from"./useMessage-798a77de.js";let b,W=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return V}catch{}})()]).then(async()=>{let _,m,u,d,y,f,h,v,g;_={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"},v=(r=>(O("data-v-aa900e72"),r=r(),q(),r))(()=>t("p",{class:"first-review"},"\u9996\u8BC4",-1)),g=["title"],b=A(N({__name:"Comment",props:{propFormData:{type:Object,default:()=>({})}},setup(r){const k=r,c=j({logs:[]}),x=k.propFormData.id,D=T();return S(async()=>{console.log(k.propFormData),(async()=>{if(x){const i=await K({pageNo:1,pageSize:100,spuId:x});i||D.error("\u4EA4\u6613\u5546\u54C1\u4E0D\u5B58\u5728"),c.value.list=i.list}})()}),(i,X)=>{const F=G;return z(c).list==""?(s(),e("div",_," \u8BE5\u5546\u54C1\u6682\u65E0\u8BC4\u8BBA ")):(s(!0),e(C,{key:1},w(z(c).list,a=>(s(),e("div",{class:"container",key:a},[t("h3",m,l(a.descriptionScores)+"\u661F",1),t("div",u,[a.picUrls!=""?(s(),e("div",d,[t("div",y,[U(F,{src:a.picUrls[0],class:"image",onClick:o=>(n=>{const p=[];L(n)?n.forEach(I=>{p.push(I)}):p.push(n),Q({urlList:p,zIndex:9999})})(a.picUrls),style:{width:"100%",height:"100%"}},null,8,["src","onClick"])])])):E("",!0),t("div",f,[t("p",h,[P("\u578B\u53F7\uFF1A"+l(a.spuName)+"-",1),(s(!0),e(C,null,w(a.skuProperties,o=>(s(),e("span",{key:o.propertyId},l(o.propertyName)+"-"+l(o.valueName),1))),128))]),v,t("p",{class:"comment",title:a.content},"\u8BC4\u8BED\uFF1A"+l(a.content),9,g)])])]))),128))}}}),[["__scopeId","data-v-aa900e72"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/product/spu/components/Comment.vue"]])});export{W as __tla,b as default};