index-5d36ce0a.js 5.7 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-b6650d36.js
  2. import{d as z,r,L as w,l as j,o as s,v as B,w as C,g as y,au as l,a,c as p,F as P,q as L,f as g,P as m,Z as q,t as R,bo as D,_ as E,__tla as U}from"./index-d75b4e4d.js";import{E as F,__tla as G}from"./el-image-c9652061.js";import{__tla as O}from"./el-image-viewer-b9e519ff.js";import{g as W,__tla as Z}from"./spu-03655398.js";import{g as A,__tla as H}from"./combinationActivity-83016da1.js";let $,J=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return H}catch{}})()]).then(async()=>{let f,_;f={key:0,class:"absolute left-0 top-0 z-1 items-center justify-center"},_=z({name:"PromotionCombination",__name:"index",props:{property:{type:Object,required:!0}},setup(T){const o=T,i=r([]);w(()=>o.property.activityId,async()=>{if(!o.property.activityId)return;const e=await A(o.property.activityId);e!=null&&e.spuId&&(i.value=[await W(e.spuId)])},{immediate:!0,deep:!0});const c=r(375),x=r(),t=r(2),v=r("100%"),d=r("0"),b=r("");return w(()=>[o.property,c,i.value.length],()=>{t.value=o.property.layoutType==="oneCol"?1:3;const e=(c.value-o.property.space*(t.value-1))/t.value;d.value=t.value===2?"64px":`${e}px`,b.value=`repeat(${t.value}, auto)`,v.value="100%"},{immediate:!0,deep:!0}),j(()=>{var e,n;c.value=((n=(e=x.value)==null?void 0:e.wrapRef)==null?void 0:n.offsetWidth)||375}),(e,n)=>{const h=F,k=D;return s(),B(k,{class:"z-1 min-h-30px","wrap-class":"w-full",ref_key:"containerRef",ref:x},{default:C(()=>[y("div",{class:"grid overflow-x-auto",style:l({gridGap:`${e.property.space}px`,gridTemplateColumns:a(b),width:a(v)})},[(s(!0),p(P,null,L(a(i),(u,I)=>(s(),p("div",{class:"relative box-content flex flex-row flex-wrap overflow-hidden bg-white",style:l({borderTopLeftRadius:`${e.property.borderRadiusTop}px`,borderTopRightRadius:`${e.property.borderRadiusTop}px`,borderBottomLeftRadius:`${e.property.borderRadiusBottom}px`,borderBottomRightRadius:`${e.property.borderRadiusBottom}px`}),key:I},[e.property.badge.show?(s(),p("div",f,[g(h,{fit:"cover",src:e.property.badge.imgUrl,class:"h-26px w-38px"},null,8,["src"])])):m("",!0),g(h,{fit:"cover",src:u.picUrl,style:l({width:a(d),height:a(d)})},null,8,["src","style"]),y("div",{class:q(["flex flex-col gap-8px p-8px box-border",{"w-[calc(100%-64px)]":a(t)===2,"w-full":a(t)===3}])},[e.property.fields.name.show?(s(),p("div",{key:0,class:"truncate text-12px",style:l({color:e.property.fields.name.color})},R(u.name),5)):m("",!0),y("div",null,[e.property.fields.price.show?(s(),p("span",{key:0,class:"text-12px",style:l({color:e.property.fields.price.color})}," \uFFE5"+R(u.price),5)):m("",!0)])],2)],4))),128))],4)]),_:1},512)}}}),$=E(_,[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue"]])});export{J as __tla,$ as default};
  3. ========
  4. import{d as z,r,L as w,l as j,o as s,v as B,w as C,g as y,au as l,a,c as p,F as P,q as L,f as g,P as m,Z as q,t as R,bo as D,_ as E,__tla as U}from"./index-c9fff140.js";import{E as F,__tla as G}from"./el-image-7432aa55.js";import{__tla as O}from"./el-image-viewer-0aee2692.js";import{g as W,__tla as Z}from"./spu-f9e35797.js";import{g as A,__tla as H}from"./combinationActivity-55c66679.js";let $,J=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return H}catch{}})()]).then(async()=>{let f,_;f={key:0,class:"absolute left-0 top-0 z-1 items-center justify-center"},_=z({name:"PromotionCombination",__name:"index",props:{property:{type:Object,required:!0}},setup(T){const o=T,i=r([]);w(()=>o.property.activityId,async()=>{if(!o.property.activityId)return;const e=await A(o.property.activityId);e!=null&&e.spuId&&(i.value=[await W(e.spuId)])},{immediate:!0,deep:!0});const c=r(375),x=r(),t=r(2),v=r("100%"),d=r("0"),b=r("");return w(()=>[o.property,c,i.value.length],()=>{t.value=o.property.layoutType==="oneCol"?1:3;const e=(c.value-o.property.space*(t.value-1))/t.value;d.value=t.value===2?"64px":`${e}px`,b.value=`repeat(${t.value}, auto)`,v.value="100%"},{immediate:!0,deep:!0}),j(()=>{var e,n;c.value=((n=(e=x.value)==null?void 0:e.wrapRef)==null?void 0:n.offsetWidth)||375}),(e,n)=>{const h=F,k=D;return s(),B(k,{class:"z-1 min-h-30px","wrap-class":"w-full",ref_key:"containerRef",ref:x},{default:C(()=>[y("div",{class:"grid overflow-x-auto",style:l({gridGap:`${e.property.space}px`,gridTemplateColumns:a(b),width:a(v)})},[(s(!0),p(P,null,L(a(i),(u,I)=>(s(),p("div",{class:"relative box-content flex flex-row flex-wrap overflow-hidden bg-white",style:l({borderTopLeftRadius:`${e.property.borderRadiusTop}px`,borderTopRightRadius:`${e.property.borderRadiusTop}px`,borderBottomLeftRadius:`${e.property.borderRadiusBottom}px`,borderBottomRightRadius:`${e.property.borderRadiusBottom}px`}),key:I},[e.property.badge.show?(s(),p("div",f,[g(h,{fit:"cover",src:e.property.badge.imgUrl,class:"h-26px w-38px"},null,8,["src"])])):m("",!0),g(h,{fit:"cover",src:u.picUrl,style:l({width:a(d),height:a(d)})},null,8,["src","style"]),y("div",{class:q(["flex flex-col gap-8px p-8px box-border",{"w-[calc(100%-64px)]":a(t)===2,"w-full":a(t)===3}])},[e.property.fields.name.show?(s(),p("div",{key:0,class:"truncate text-12px",style:l({color:e.property.fields.name.color})},R(u.name),5)):m("",!0),y("div",null,[e.property.fields.price.show?(s(),p("span",{key:0,class:"text-12px",style:l({color:e.property.fields.price.color})}," \uFFE5"+R(u.price),5)):m("",!0)])],2)],4))),128))],4)]),_:1},512)}}}),$=E(_,[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue"]])});export{J as __tla,$ as default};
  5. >>>>>>>> 2589804fb89eb98fd6498c1ee41a354dcce32af3:dist/assets/index-5d36ce0a.js