|
|
-import{d as N,r as P,l as I,a as h,o as e,c as s,q as w,g as t,t as r,Q as j,n as C,F as z,p as S,k as U,_ as q,__tla as O}from"./index-9c79adc6.js";import{b as Q,__tla as A}from"./spu-33a605ce.js";import{u as B,__tla as E}from"./useMessage-eafe91ac.js";let D,G=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return E}catch{}})()]).then(async()=>{let n,p,m,_,u,d,y,v,f,g;n={key:0,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},p={class:"rating-title"},m={class:"content"},_={key:0,class:"content-image"},u={class:"image"},d=["src"],y={class:"details"},v={class:"product-model"},f=(l=>(S("data-v-aa900e72"),l=l(),U(),l))(()=>t("p",{class:"first-review"},"\u9996\u8BC4",-1)),g=["title"],D=q(N({__name:"Comment",props:{propFormData:{type:Object,default:()=>({})}},setup(l){const k=l,o=P({logs:[]}),x=k.propFormData.id,F=B();return I(async()=>{console.log(k.propFormData),(async()=>{if(x){const c=await Q({pageNo:1,pageSize:100,spuId:x});c||F.error("\u4EA4\u6613\u5546\u54C1\u4E0D\u5B58\u5728"),o.value.list=c.list}})()}),(c,H)=>{var b;return(b=h(o))!=null&&b.total?(e(),s("div",n," \u8BE5\u5546\u54C1\u6682\u65E0\u8BC4\u8BBA ")):(e(!0),s(z,{key:1},w(h(o).list,a=>(e(),s("div",{class:"container",key:a},[t("h3",p,r(a.descriptionScores)+"\u661F",1),t("div",m,[a.skuPicUrl!=""?(e(),s("div",_,[t("div",u,[t("img",{src:a.skuPicUrl,alt:"\u8BC4\u4EF7\u56FE\u7247"},null,8,d)])])):j("",!0),t("div",y,[t("p",v,[C("\u578B\u53F7\uFF1A"+r(a.spuName)+"-",1),(e(!0),s(z,null,w(a.skuProperties,i=>(e(),s("span",{key:i.propertyId},r(i.propertyName)+"-"+r(i.valueName),1))),128))]),f,t("p",{class:"comment",title:a.content},"\u8BC4\u8BED\uFF1A"+r(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{G as __tla,D as default};
|