1 |
- import{d as N,r as b,l as j,a as w,o as e,c as s,v as z,h as t,t as l,g as E,Q as P,n as S,F as U,p as L,k as O,b0 as Q,_ as q,__tla as A}from"./index-b362e1d5.js";import{E as B,__tla as G}from"./el-image-6c94a1ed.js";import{__tla as H}from"./el-image-viewer-68ae3e49.js";import{a as J,__tla as K}from"./spu-8db32dd2.js";import{c as M,__tla as R}from"./index-6b00d885.js";import{u as T,__tla as V}from"./useMessage-7c1dd10e.js";let C,W=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return K}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=>(L("data-v-aa900e72"),r=r(),O(),r))(()=>t("p",{class:"first-review"},"\u9996\u8BC4",-1)),g=["title"],C=q(N({__name:"Comment",props:{propFormData:{type:Object,default:()=>({})}},setup(r){const k=r,c=b({logs:[]}),x=k.propFormData.id,D=T();return j(async()=>{console.log(k.propFormData),(async()=>{if(x){const i=await J({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=B;return w(c).list==""?(e(),s("div",_," \u8BE5\u5546\u54C1\u6682\u65E0\u8BC4\u8BBA ")):(e(!0),s(U,{key:1},z(w(c).list,a=>(e(),s("div",{class:"container",key:a},[t("h3",m,l(a.descriptionScores)+"\u661F",1),t("div",u,[a.picUrls!=""&&a.picUrls!=null?(e(),s("div",d,[t("div",y,[E(F,{src:"item.picUrls[0]",class:"image",onClick:o=>(n=>{const p=[];Q(n)?n.forEach(I=>{p.push(I)}):p.push(n),M({urlList:p,zIndex:9999})})(a.picUrls),style:{width:"100%",height:"100%"}},null,8,["onClick"])])])):P("",!0),t("div",f,[t("p",h,[S("\u578B\u53F7\uFF1A"+l(a.spuName)+"-",1),(e(!0),s(U,null,z(a.skuProperties,o=>(e(),s("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-admin/src/views/mall/product/spu/components/Comment.vue"]])});export{W as __tla,C as default};
|