Comment-006d3a21.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 t,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-1f518666.js";import{E as O,__tla as Q}from"./el-image-1ae80d1a.js";import{__tla as q}from"./el-image-viewer-91778fd6.js";import{e as G,__tla as H}from"./spu-7f489e39.js";import{c as J,__tla as K}from"./index-32463859.js";import{u as R,__tla as T}from"./useMessage-633c11d2.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))(()=>t("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,a=>(s(),r("div",{class:"container",key:a},[t("h3",m,l(a.descriptionScores)+"\u661F",1),t("div",u,[a.picUrls!=""&&a.picUrls!=null?(s(),r("div",d,[t("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})})(a.picUrls),style:{width:"100%",height:"100%"}},null,8,["onClick"])])])):L("",!0),t("div",f,[t("p",h,[P("\u578B\u53F7\uFF1A"+l(a.spuName)+"-",1),(s(!0),r(F,null,D(a.skuProperties,c=>(s(),r("span",{key:c.propertyId},l(c.propertyName)+"-"+l(c.valueName),1))),128))]),g,t("p",{class:"comment",title:a.content},"\u8BC4\u8BED\uFF1A"+l(a.content),9,v)])])]))),128))}}}),[["__scopeId","data-v-c767a034"]])});export{W as __tla,I as default};