1 |
- import{c as t,d as e,e as s}from"./s-layout.dfc5b0b5.js";import{P as a,l,m as o,e as i,f as r,w as d,Q as n,g as c,j as u,z as p,y as g,p as y,t as f,C as m,i as b,u as h,s as _,q as x,v as k,c as v,k as C,F as w,r as S,R as $,T as R,I as T,U as B,V as I,A as z,W as j,X as L,Y as F,Z as O,a0 as M,D as P,S as N,a1 as U,M as W,B as D,a2 as A,a3 as E,a4 as G,a5 as H}from"./index-9880b451.js";import{_ as q}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as Z,a as V,b as Y}from"./uni-list.b717f907.js";import{_ as J}from"./su-image.53d60b59.js";import{_ as Q,a as X}from"./su-swiper.55cf865c.js";import{_ as K}from"./s-goods-column.2324341a.js";import{S as tt}from"./spu.3137f763.js";import{C as et}from"./combination.bbc1e13b.js";import{S as st,P as at,C as lt}from"./const.172c6469.js";import{f as ot,a as it}from"./index.df38848e.js";import{_ as rt}from"./mp-html.1d0f8654.js";import{A as dt}from"./article.87a63887.js";import{f as nt}from"./useGoods.bdd1c2ea.js";const ct=q({name:"UniNoticeBar",emits:["click","getmore","close"],props:{text:{type:String,default:""},moreText:{type:String,default:""},backgroundColor:{type:String,default:""},speed:{type:Number,default:100},color:{type:String,default:"var(--ui-BG-Main)"},moreColor:{type:String,default:"#FF9A43"},single:{type:[Boolean,String],default:!1},scrollable:{type:[Boolean,String],default:!1},showIcon:{type:[Boolean,String],default:!1},showGetMore:{type:[Boolean,String],default:!1},showClose:{type:[Boolean,String],default:!1}},data:()=>({textWidth:0,boxWidth:0,wrapWidth:"",webviewHide:!1,elId:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,elIdBox:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,show:!0,animationDuration:"none",animationPlayState:"paused",animationDelay:"0s"}),mounted(){this.$nextTick((()=>{this.initSize()}))},methods:{initSize(){if(this.scrollable){let t=[],e=new Promise(((t,e)=>{a().in(this).select(`#${this.elId}`).boundingClientRect().exec((e=>{this.textWidth=e[0].width,t()}))})),s=new Promise(((t,e)=>{a().in(this).select(`#${this.elIdBox}`).boundingClientRect().exec((e=>{this.boxWidth=e[0].width,t()}))}));t.push(e),t.push(s),Promise.all(t).then((()=>{this.animationDuration=this.textWidth/this.speed+"s",this.animationDelay=`-${this.boxWidth/this.speed}s`,setTimeout((()=>{this.animationPlayState="running"}),1e3)}))}},loopAnimation(){},clickMore(){this.$emit("getmore")},close(){this.show=!1,this.$emit("close")},onClick(){this.$emit("click")}}},[["render",function(e,s,a,h,_,x){const k=l(o("uni-icons"),t),v=m,C=b;return _.show?(i(),r(C,{key:0,class:"uni-noticebar",style:g({backgroundColor:a.backgroundColor}),onClick:x.onClick},{default:d((()=>[n(e.$slots,"icon",{},(()=>[!0===a.showIcon||"true"===a.showIcon?(i(),r(k,{key:0,class:"uni-noticebar-icon",type:"sound",color:a.color,size:"22"},null,8,["color"])):c("",!0)]),!0),u(C,{ref:"textBox",class:p(["uni-noticebar__content-wrapper",{"uni-noticebar__content-wrapper--scrollable":a.scrollable,"uni-noticebar__content-wrapper--single":!a.scrollable&&(a.single||a.moreText)}])},{default:d((()=>[u(C,{id:_.elIdBox,class:p(["uni-noticebar__content",{"uni-noticebar__content--scrollable":a.scrollable,"uni-noticebar__content--single":!a.scrollable&&(a.single||a.moreText)}])},{default:d((()=>[u(v,{id:_.elId,ref:"animationEle",class:p(["uni-noticebar__content-text",{"uni-noticebar__content-text--scrollable":a.scrollable,"uni-noticebar__content-text--single":!a.scrollable&&(a.single||a.showGetMore)}]),style:g({color:a.color,width:_.wrapWidth+"px",animationDuration:_.animationDuration,"-webkit-animationDuration":_.animationDuration,animationPlayState:_.webviewHide?"paused":_.animationPlayState,"-webkit-animationPlayState":_.webviewHide?"paused":_.animationPlayState,animationDelay:_.animationDelay,"-webkit-animationDelay":_.animationDelay})},{default:d((()=>[y(f(a.text),1)])),_:1},8,["id","class","style"])])),_:1},8,["id","class"])])),_:1},8,["class"]),!0===a.showGetMore||"true"===a.showGetMore?(i(),r(C,{key:0,class:"uni-noticebar__more uni-cursor-point",onClick:x.clickMore},{default:d((()=>[a.moreText.length>0?(i(),r(v,{key:0,style:g({color:a.moreColor}),class:"uni-noticebar__more-text"},{default:d((()=>[y(f(a.moreText),1)])),_:1},8,["style"])):(i(),r(k,{key:1,type:"right",color:a.moreColor,size:"16"},null,8,["color"]))])),_:1},8,["onClick"])):c("",!0),!0!==a.showClose&&"true"!==a.showClose||!1!==a.showGetMore&&"false"!==a.showGetMore?c("",!0):(i(),r(C,{key:1,class:"uni-noticebar-close uni-cursor-point"},{default:d((()=>[u(C,{onClick:x.close},{default:d((()=>[n(e.$slots,"close",{},(()=>[u(k,{type:"closeempty",color:a.color,size:"16"},null,8,["color"])]),!0)])),_:3},8,["onClick"])])),_:3}))])),_:3},8,["style","onClick"])):c("",!0)}],["__scopeId","data-v-dc8f5974"]]),ut=q({__name:"s-notice-block",props:{data:{type:Object,default(){}}},setup:t=>(e,s)=>{const a=x,n=l(o("su-notice-bar"),ct),c=b;return i(),r(c,{class:"ss-flex ss-col-center notice-wrap"},{default:d((()=>[u(a,{class:"icon-img",src:h(_).$url.cdn(t.data.iconUrl),mode:"heightFix"},null,8,["src"]),u(n,{style:{flex:"1"},showIcon:!1,scrollable:"",single:"",text:t.data.contents[0].text,speed:50,color:t.data.textColor,onClick:s[0]||(s[0]=e=>h(_).$router.go(t.data.contents[0].url))},null,8,["text","color"])])),_:1})}},[["__scopeId","data-v-f049fa3f"]]),pt=q({__name:"s-menu-button",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}},circular:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!1},interval:{type:Number,default:5e3},duration:{type:Number,default:500},ui:{type:String,default:""},mode:{type:String,default:"default"},dotStyle:{type:String,default:"long"},dotCur:{type:String,default:"ui-BG-Main"},bg:{type:String,default:"bg-none"},height:{type:Number,default:300},hasBorder:{type:Boolean,default:!0},borderColor:{type:String,default:"red"},background:{type:String,default:"blue"},hoverClass:{type:String,default:"ss-hover-class"},col:{type:[Number,String],default:3},iconSize:{type:Number,default:80},color:{type:String,default:"#000"}},setup(t){const e=t,s=k({cur:0}),a=v((()=>n(e.data.list,e.data.row*e.data.column))),l=v((()=>e.data.row*("iconText"===e.data.layout?200:180)));_.$platform.device.windowWidth;const o=t=>{s.cur=t.detail.current},n=(t=[],e=1)=>{let s=[],a=[];return t.forEach((t=>{a.length===e&&(a=[]),0===a.length&&s.push(a),a.push(t)})),s};return(n,m)=>{const k=b,v=x,T=$,B=R;return i(),r(k,{class:p(["ui-swiper",[e.mode,e.bg,e.ui]]),style:g([{height:h(l)+(h(a).length>1?50:0)+"rpx"}])},{default:d((()=>[u(B,{circular:e.circular,current:s.cur,autoplay:e.autoplay,interval:e.interval,duration:e.duration,style:g([{height:h(l)+"rpx"}]),onChange:o},{default:d((()=>[(i(!0),C(w,null,S(h(a),((a,l)=>(i(),r(T,{key:l,class:p({cur:s.cur==l})},{default:d((()=>[u(k,{class:"grid-wrap"},{default:d((()=>[(i(!0),C(w,null,S(a,((s,a)=>(i(),r(k,{key:a,class:"grid-item ss-flex ss-flex-col ss-col-center ss-row-center",style:g([{width:1/t.data.column*100+"%",height:"200rpx"}]),"hover-class":"ss-hover-btn",onClick:t=>h(_).$router.go(s.url)},{default:d((()=>[u(k,{class:"menu-box ss-flex ss-flex-col ss-col-center ss-row-center"},{default:d((()=>[s.badge.show?(i(),r(k,{key:0,class:"tag-box",style:g([{background:s.badge.bgColor,color:s.badge.textColor}])},{default:d((()=>[y(f(s.badge.text),1)])),_:2},1032,["style"])):c("",!0),s.iconUrl?(i(),r(v,{key:1,class:"menu-icon",style:g([{width:e.iconSize+"rpx",height:e.iconSize+"rpx"}]),src:h(_).$url.cdn(s.iconUrl),mode:"aspectFill"},null,8,["style","src"])):c("",!0),"iconText"===t.data.layout?(i(),r(k,{key:2,class:"menu-title",style:g([{color:s.titleColor}])},{default:d((()=>[y(f(s.title),1)])),_:2},1032,["style"])):c("",!0)])),_:2},1024)])),_:2},1032,["style","onClick"])))),128))])),_:2},1024)])),_:2},1032,["class"])))),128))])),_:1},8,["circular","current","autoplay","interval","duration","style"]),h(a).length>1?(i(),C(w,{key:0},["tag"!=e.dotStyle?(i(),r(k,{key:0,class:p(["ui-swiper-dot",e.dotStyle])},{default:d((()=>[(i(!0),C(w,null,S(h(a).length,((t,a)=>(i(),r(k,{class:p(["line-box",[s.cur==a?"cur":"",e.dotCur]]),key:a},null,8,["class"])))),128))])),_:1},8,["class"])):c("",!0),"tag"==e.dotStyle?(i(),r(k,{key:1,class:p(["ui-swiper-dot",e.dotStyle])},{default:d((()=>[u(k,{class:p(["ui-tag radius",[e.dotCur]]),style:{"pointer-events":"none"}},{default:d((()=>[u(k,{style:{transform:"scale(0.7)"}},{default:d((()=>[y(f(s.cur+1)+" / "+f(h(a).length),1)])),_:1})])),_:1},8,["class"])])),_:1},8,["class"])):c("",!0)],64)):c("",!0)])),_:1},8,["class","style"])}}},[["__scopeId","data-v-74b9c4a9"]]),gt=q({__name:"s-menu-list",props:{data:{type:Object,default:()=>({})}},setup:t=>(e,s)=>{const a=x,n=b,p=l(o("uni-list-item"),Z),m=l(o("uni-list"),V);return i(),r(n,{class:"menu-list-wrap"},{default:d((()=>[u(m,{border:!0},{default:d((()=>[(i(!0),C(w,null,S(t.data.list,((t,e)=>(i(),r(p,{key:e,showArrow:"",clickable:"",onClick:e=>h(_).$router.go(t.url)},{header:d((()=>[u(n,{class:"ss-flex ss-col-center"},{default:d((()=>[t.iconUrl?(i(),r(a,{key:0,class:"list-icon",src:h(_).$url.cdn(t.iconUrl),mode:"aspectFit"},null,8,["src"])):c("",!0),u(n,{class:"title-text ss-flex ss-row-center ss-col-center ss-m-l-20",style:g([{color:t.titleColor}])},{default:d((()=>[y(f(t.title),1)])),_:2},1032,["style"])])),_:2},1024)])),footer:d((()=>[u(n,{class:"notice-text ss-flex ss-row-center ss-col-center",style:g([{color:t.subtitleColor}])},{default:d((()=>[y(f(t.subtitle),1)])),_:2},1032,["style"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}},[["__scopeId","data-v-af9bf3a7"]]);const yt=q({name:"UniGridItem",inject:["grid"],props:{index:{type:Number,default:0}},data:()=>({column:0,showBorder:!0,square:!0,highlight:!0,left:0,top:0,openNum:2,width:0,borderColor:"#e5e5e5"}),created(){this.column=this.grid.column,this.showBorder=this.grid.showBorder,this.square=this.grid.square,this.highlight=this.grid.highlight,this.top=0===this.hor?this.grid.hor:this.hor,this.left=0===this.ver?this.grid.ver:this.ver,this.borderColor=this.grid.borderColor,this.grid.children.push(this),this.width=this.grid.width},beforeDestroy(){this.grid.children.forEach(((t,e)=>{t===this&&this.grid.children.splice(e,1)}))},methods:{_onClick(){this.grid.change({detail:{index:this.index}})}}},[["render",function(t,e,s,a,l,o){const c=b;return i(),r(c,{style:g("width:"+l.width+";"+(l.square?"height:"+l.width:"")),class:"uni-grid-item grid-item"},{default:d((()=>[u(c,{class:p([{"uni-grid-item--border":l.showBorder,"uni-grid-item--border-top":l.showBorder&&s.index<l.column,"uni-highlight":l.highlight},"uni-grid-item__box"]),style:g({"border-right-color":l.borderColor,"border-bottom-color":l.borderColor,"border-top-color":l.borderColor}),onClick:o._onClick},{default:d((()=>[n(t.$slots,"default",{},void 0,!0)])),_:3},8,["class","style","onClick"])])),_:3},8,["style"])}],["__scopeId","data-v-3055060c"]]);const ft=q({name:"UniGrid",emits:["change"],props:{column:{type:Number,default:3},showBorder:{type:Boolean,default:!0},borderColor:{type:String,default:"#D2D2D2"},square:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0}},provide(){return{grid:this}},data:()=>({elId:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,width:0}),created(){this.children=[]},mounted(){this.$nextTick((()=>{this.init()}))},methods:{init(){setTimeout((()=>{this._getSize((t=>{this.children.forEach(((e,s)=>{e.width=t}))}))}),50)},change(t){this.$emit("change",t)},_getSize(t){a().in(this).select(`#${this.elId}`).boundingClientRect().exec((e=>{this.width=parseInt((e[0].width-1)/this.column)+"px",t(this.width)}))}}},[["render",function(t,e,s,a,l,o){const c=b;return i(),r(c,{class:"uni-grid-wrap"},{default:d((()=>[u(c,{id:l.elId,ref:"uni-grid",class:p(["uni-grid",{"uni-grid--border":s.showBorder}]),style:g({"border-left-color":s.borderColor})},{default:d((()=>[n(t.$slots,"default",{},void 0,!0)])),_:3},8,["id","class","style"])])),_:3})}],["__scopeId","data-v-257e8068"]]),mt=q({__name:"s-menu-grid",props:{data:{type:Object,default(){}}},setup:t=>(e,s)=>{const a=b,n=x,p=l(o("uni-grid-item"),yt),m=l(o("uni-grid"),ft);return i(),r(m,{showBorder:Boolean(t.data.border),column:t.data.column},{default:d((()=>[(i(!0),C(w,null,S(t.data.list,((t,e)=>(i(),r(p,{key:e,onClick:e=>h(_).$router.go(t.url)},{default:d((()=>[u(a,{class:"grid-item-box ss-flex ss-flex-col ss-row-center ss-col-center"},{default:d((()=>[u(a,{class:"img-box"},{default:d((()=>[t.badge.show?(i(),r(a,{key:0,class:"tag-box",style:g([{background:t.badge.bgColor,color:t.badge.textColor}])},{default:d((()=>[y(f(t.badge.text),1)])),_:2},1032,["style"])):c("",!0),u(n,{class:"menu-image",src:h(_).$url.cdn(t.iconUrl)},null,8,["src"])])),_:2},1024),u(a,{class:"title-box ss-flex ss-flex-col ss-row-center ss-col-center"},{default:d((()=>[u(a,{class:"grid-text",style:g([{color:t.titleColor}])},{default:d((()=>[y(f(t.title),1)])),_:2},1032,["style"]),u(a,{class:"grid-tip",style:g([{color:t.subtitleColor}])},{default:d((()=>[y(f(t.subtitle),1)])),_:2},1032,["style"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1},8,["showBorder","column"])}},[["__scopeId","data-v-8a435434"]]),bt=q({__name:"s-popup-image",props:{data:{type:Object,default(){}}},setup(t){const s=t,a=JSON.parse(T("modal-store")||"{}");console.log(a);const n=a.advHistory||[],p=B(0),g=v((()=>{const t=s.data.list||[],e=[];return t.length>0&&t.forEach((t=>{"once"===t.showType&&n.includes(t.imgUrl)?t.isShow=!1:(t.isShow=!0,e.push(t)),I(t)})),e}));return(t,s)=>{const a=x,n=b,y=l(o("su-popup"),e);return i(),r(n,null,{default:d((()=>[(i(!0),C(w,null,S(h(g),((t,e)=>(i(),r(n,{key:e},{default:d((()=>[e===p.value?(i(),r(y,{key:0,show:t.isShow,type:"center",backgroundColor:"none",round:"0",showClose:!0,isMaskClick:!1,onClose:t=>function(t){p.value=t+1,g.value[t].isShow=!1}(e)},{default:d((()=>[u(n,{class:"img-box"},{default:d((()=>[u(a,{class:"modal-img",src:h(_).$url.cdn(t.imgUrl),mode:"widthFix",onClick:z((e=>{return s=t.url,void _.$router.go(s);var s}),["stop"])},null,8,["src","onClick"])])),_:2},1024)])),_:2},1032,["show","onClose"])):c("",!0)])),_:2},1024)))),128))])),_:1})}}},[["__scopeId","data-v-e1c1d1c2"]]);_.$platform.device;const ht=q({name:"UniFab",emits:["fabClick","trigger"],props:{pattern:{type:Array,default:()=>[]},horizontal:{type:String,default:"left"},vertical:{type:String,default:"bottom"},direction:{type:String,default:"horizontal"},content:{type:Array,default:()=>[]},show:{type:Boolean,default:!1},popMenu:{type:Boolean,default:!0}},data:()=>({fabShow:!1,isShow:!1,isAndroidNvue:!1,styles:[{}]}),computed:{contentWidth(t){return 130*(this.content.length+1)+"rpx"},contentWidthMin:()=>"100rpx",boxWidth(){return this.getPosition(3,"horizontal")},boxHeight(){return this.getPosition(3,"vertical")},leftBottom(){return this.getPosition(0,"left","bottom")},rightBottom(){return this.getPosition(0,"right","bottom")},leftTop(){return this.getPosition(0,"left","top")},rightTop(){return this.getPosition(0,"right","top")},flexDirectionStart(){return this.getPosition(1,"vertical","top")},flexDirectionEnd(){return this.getPosition(1,"vertical","bottom")},horizontalLeft(){return this.getPosition(2,"horizontal","left")},horizontalRight(){return this.getPosition(2,"horizontal","right")}},watch:{},created(){this.isShow=this.show,0===this.top&&(this.fabShow=!0)},methods:{_onClick(){this.$emit("fabClick"),this.popMenu&&(this.isShow=!this.isShow)},open(){this.isShow=!0},close(){this.isShow=!1},_onItemClick(t,e){this.$emit("trigger",{index:t,item:e})},getPosition(t,e,s){return 0===t?this.horizontal===e&&this.vertical===s:1===t?this.direction===e&&this.vertical===s:2===t?this.direction===e&&this.horizontal===s:this.isShow&&this.direction===e?this.contentWidth:this.contentWidthMin}}},[["render",function(e,s,a,n,h,_){const k=b,v=x,$=m,R=l(o("uni-icons"),t);return i(),r(k,{class:"uni-cursor-point"},{default:d((()=>[a.popMenu&&(_.leftBottom||_.rightBottom||_.leftTop||_.rightTop)&&a.content.length>0?(i(),r(k,{key:0,class:p([{"uni-fab--leftBottom":_.leftBottom,"uni-fab--rightBottom":_.rightBottom,"uni-fab--leftTop":_.leftTop,"uni-fab--rightTop":_.rightTop},"uni-fab"])},{default:d((()=>[u(k,{class:p([{"uni-fab__content--left":"left"===a.horizontal,"uni-fab__content--right":"right"===a.horizontal,"uni-fab__content--flexDirection":"vertical"===a.direction,"uni-fab__content--flexDirectionStart":_.flexDirectionStart,"uni-fab__content--flexDirectionEnd":_.flexDirectionEnd,"uni-fab__content--other-platform":!h.isAndroidNvue},"uni-fab__content"]),style:g({width:_.boxWidth,height:_.boxHeight}),elevation:"5"},{default:d((()=>[_.flexDirectionStart||_.horizontalLeft?(i(),r(k,{key:0,class:"uni-fab__item uni-fab__item--first"})):c("",!0),(i(!0),C(w,null,S(a.content,((t,e)=>(i(),r(k,{key:e,class:p([{"uni-fab__item--active":h.isShow,"horizontal-margin":"horizontal"==a.direction},"uni-fab__item"]),onClick:s=>_._onItemClick(e,t)},{default:d((()=>[u(v,{src:t.active?t.selectedIconPath:t.iconPath,class:"uni-fab__item-image",mode:"aspectFit"},null,8,["src"]),u($,{class:p(["uni-fab__item-text",{"vertical-margin":"vertical"==a.direction}]),style:g({color:a.pattern[e].color})},{default:d((()=>[y(f(t.text),1)])),_:2},1032,["class","style"])])),_:2},1032,["class","onClick"])))),128)),_.flexDirectionEnd||_.horizontalRight?(i(),r(k,{key:1,class:"uni-fab__item uni-fab__item--first"})):c("",!0)])),_:1},8,["class","style"])])),_:1},8,["class"])):c("",!0),u(k,{class:p([{"uni-fab__circle--leftBottom":_.leftBottom,"uni-fab__circle--rightBottom":_.rightBottom,"uni-fab__circle--leftTop":_.leftTop,"uni-fab__circle--rightTop":_.rightTop,"uni-fab__content--other-platform":!h.isAndroidNvue},"uni-fab__circle uni-fab__plus"]),style:g({"background-color":"var(--ui-BG-Main)"}),onClick:_._onClick},{default:d((()=>[u(R,{class:p(["fab-circle-icon",{"uni-fab__plus--active":h.isShow&&a.content.length>0}]),type:"plusempty",color:"#fff",size:"20"},null,8,["class"])])),_:1},8,["class","style","onClick"])])),_:1})}],["__scopeId","data-v-4d6bd010"]]),_t=q({__name:"s-float-menu",props:{data:{type:Object,default(){}}},setup(t){var e;const s=t,a=k({pattern:[],content:[],direction:""}),d=B(null);function n(t){_.$router.go(t.item.url)}function p(){var t,e;(null==(t=h(d))?void 0:t.isShow)&&(null==(e=h(d))||e.close())}return a.direction=s.data.direction,null==(e=s.data)||e.list.forEach((t=>{var e;const l=(null==(e=s.data)?void 0:e.showText)?t.text:"";a.content.push({iconPath:_.$url.cdn(t.imgUrl),url:t.url,text:l}),a.pattern.push({color:t.textColor})})),j((()=>{var t,e;return!!(null==(t=h(d))?void 0:t.isShow)&&(null==(e=h(d))||e.close(),!0)})),(t,e)=>{var s;const g=b,y=l(o("uni-fab"),ht);return i(),C(w,null,[(null==(s=d.value)?void 0:s.isShow)?(i(),r(g,{key:0,class:"modal-bg",onClick:p})):c("",!0),u(y,{ref_key:"fabRef",ref:d,horizontal:"right",vertical:"bottom",direction:a.direction,pattern:a.pattern,content:a.content,onTrigger:n},null,8,["direction","pattern","content"])],64)}}},[["__scopeId","data-v-5bf5ab3a"]]),xt={__name:"s-image-block",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup:t=>(e,s)=>{const a=l(o("su-image"),J),n=b;return i(),r(n,{onClick:s[0]||(s[0]=e=>{var s;return h(_).$router.go(null==(s=t.data)?void 0:s.url)})},{default:d((()=>[u(a,{src:h(_).$url.cdn(t.data.imgUrl),mode:"widthFix"},null,8,["src"])])),_:1})}},kt={__name:"s-image-banner",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const e=t,s=v((()=>e.data.items.map((t=>{const e="img"===t.type?t.imgUrl:t.videoUrl;return{...t,type:"img"===t.type?"image":"video",src:_.$url.cdn(e),poster:_.$url.cdn(t.imgUrl)}}))));return(e,a)=>{const d=l(o("su-swiper"),Q);return i(),r(d,{list:h(s),dotStyle:"dot"===t.data.indicator?"long":"tag",imageMode:"scaleToFill",dotCur:"bg-mask-40",seizeHeight:300,autoplay:t.data.autoplay,interval:1e3*t.data.interval,mode:t.data.type},null,8,["list","dotStyle","autoplay","interval","mode"])}}},vt=q({__name:"s-title-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t,s=k({typeMap:{left:"ss-row-left",center:"ss-row-center"}}),a={background:`url(${_.$url.cdn(e.data.bgImgUrl)}) no-repeat top center / 100% auto`,fontSize:`${e.data.titleSize}px`,fontWeight:`${e.data.titleWeight}px`},l={color:e.data.titleColor,fontSize:`${e.data.titleSize}px`,textAlign:e.data.textAlign},o={color:e.data.descriptionColor,textAlign:e.data.textAlign,fontSize:`${e.data.descriptionSize}px`,fontWeight:`${e.data.descriptionWeight}px`};return(e,n)=>{const x=b,k=m;return i(),r(x,{class:p(["ss-title-wrap ss-flex ss-col-center",[s.typeMap[t.data.textAlign]]]),style:g([a])},{default:d((()=>{var e;return[u(x,{class:"title-content"},{default:d((()=>[t.data.title?(i(),r(x,{key:0,class:"title-text",style:g([l])},{default:d((()=>[y(f(t.data.title),1)])),_:1},8,["style"])):c("",!0),t.data.description?(i(),r(x,{key:1,style:g([o]),class:"sub-title-text"},{default:d((()=>[y(f(t.data.description),1)])),_:1},8,["style"])):c("",!0)])),_:1}),(null==(e=t.data.more)?void 0:e.show)?(i(),r(x,{key:0,class:"more-box ss-flex ss-col-center",onClick:n[0]||(n[0]=e=>h(_).$router.go(t.data.more.url)),style:g({color:t.data.descriptionColor})},{default:d((()=>["icon"!==t.data.more.type?(i(),r(x,{key:0,class:"more-text"},{default:d((()=>[y(f(t.data.more.text),1)])),_:1})):c("",!0),"text"!==t.data.more.type?(i(),r(k,{key:1,class:"_icon-forward"})):c("",!0)])),_:1},8,["style"])):c("",!0)]})),_:1},8,["class","style"])}}},[["__scopeId","data-v-d2ca286c"]]),Ct=q({__name:"s-image-cube",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t,s=_.$platform.device.windowWidth,a=v((()=>(s-((e.styles.marginLeft||0)+(e.styles.marginRight||0)+2*(e.styles.padding||0)))/4)),l=v((()=>{var t,l,o,i;let r=e.data.list.reduce(((t,e)=>t.includes(e.height+e.top)?t:[...t,e.height+e.top]),[]);return{height:Math.max(...r)*a.value+"px",width:s-2*((null==(l=null==(t=e.data)?void 0:t.style)?void 0:l.marginLeft)+(null==(i=null==(o=e.data)?void 0:o.style)?void 0:i.marginRight)+2*e.styles.padding)+"px"}})),o=t=>({width:t.width*a.value-e.data.space+"px",height:t.height*a.value-e.data.space+"px",left:t.left*a.value+"px",top:t.top*a.value+"px","border-top-left-radius":e.data.borderRadiusTop+"px","border-top-right-radius":e.data.borderRadiusTop+"px","border-bottom-left-radius":e.data.borderRadiusBottom+"px","border-bottom-right-radius":e.data.borderRadiusBottom+"px"});return(e,s)=>{const a=x,n=b;return i(),r(n,{class:"ss-cube-wrap",style:g([h(l)])},{default:d((()=>[(i(!0),C(w,null,S(t.data.list,((e,s)=>(i(),r(n,{key:s},{default:d((()=>[u(n,{class:"cube-img-wrap",style:g([o(e),{margin:t.data.space+"px"}]),onClick:t=>h(_).$router.go(e.url)},{default:d((()=>[u(a,{class:"cube-img",src:h(_).$url.cdn(e.imgUrl),mode:"aspectFill"},null,8,["src"])])),_:2},1032,["style","onClick"])])),_:2},1024)))),128))])),_:1},8,["style"])}}},[["__scopeId","data-v-1ee0eac9"]]),wt=q({__name:"s-video-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup:t=>(e,s)=>{const a=l(o("su-video"),X);return i(),r(a,{class:"sss",uid:h(L)(),src:h(_).$url.cdn(t.data.videoUrl),poster:h(_).$url.cdn(t.data.posterUrl),height:2*t.styles.height,autoplay:t.data.autoplay},null,8,["uid","src","poster","height","autoplay"])}},[["__scopeId","data-v-63389778"]]),St=q({__name:"su-subline",props:{lineColor:{type:String,default:"#000"},borderType:{type:String,default:"dashed"},lineWidth:{type:Number,default:1},height:{type:[Number,String],default:"auto"},paddingType:{type:String,default:"none"}},setup(t){const e=t,s=v((()=>({"border-top-width":`${e.lineWidth}px`,"border-top-color":e.lineColor,"border-top-style":e.borderType,margin:"none"===e.paddingType?"0":"0px 16px"})));return(e,a)=>{const l=b;return i(),r(l,{class:"wrap",style:g({height:`${t.height}px`})},{default:d((()=>[u(l,{class:"divider",style:g([h(s)])},null,8,["style"])])),_:1},8,["style"])}}},[["__scopeId","data-v-bf2fb0d0"]]),$t={__name:"s-line-block",props:{data:{type:Object,default:{}}},setup:t=>(e,s)=>{const a=l(o("su-subline"),St);return i(),r(a,F(O(t.data)),null,16)}},Rt=q({__name:"s-hotzone-block",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup:t=>(e,s)=>{const a=x,l=b;return i(),r(l,{class:"hotzone-wrap"},{default:d((()=>[u(a,{src:h(_).$url.cdn(t.data.imgUrl),style:{width:"100%"},mode:"widthFix"},null,8,["src"]),(i(!0),C(w,null,S(t.data.list,((t,e)=>(i(),r(l,{class:"hotzone-box",key:e,style:g([{top:`${t.top}px`,left:`${t.left}px`,width:`${t.width}px`,height:`${t.height}px`}]),onClick:z((e=>h(_).$router.go(t.url)),["stop"])},null,8,["style","onClick"])))),128))])),_:1})}},[["__scopeId","data-v-e570383d"]]),Tt=q({__name:"s-goods-card",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t,s="oneColBigImg",a="twoCol",n="oneColSmallImg",p=k({goodsList:[],leftGoodsList:[],rightGoodsList:[]}),{layoutType:m,btnBuy:x,spuIds:$}=e.data??{},{marginLeft:R,marginRight:T}=e.styles??{},B=v((()=>"text"===x.type?{background:`linear-gradient(to right, ${x.bgBeginColor}, ${x.bgEndColor})`}:"img"===x.type?{width:"54rpx",height:"54rpx",background:`url(${_.$url.cdn(x.imgUrl)}) no-repeat`,backgroundSize:"100% 100%"}:void 0));let I=0,z=0,j=0;function L(t=0,e="left"){p.goodsList[I]&&("left"===e&&(z+=t),"right"===e&&(j+=t),z<=j?p.leftGoodsList.push(p.goodsList[I]):p.rightGoodsList.push(p.goodsList[I]),I++)}return M((async()=>{p.goodsList=await async function(t){const{data:e}=await tt.getSpuListByIds(t);return e}($.join(",")),m===a&&L()})),(e,k)=>{const v=P,$=l(o("s-goods-column"),K),I=b;return i(),r(I,null,{default:d((()=>[h(m)===s&&p.goodsList.length?(i(),r(I,{key:0,class:"goods-sl-box"},{default:d((()=>[(i(!0),C(w,null,S(p.goodsList,(e=>(i(),r(I,{class:"goods-box",key:e.id,style:g([{marginBottom:2*t.data.space+"rpx"}])},{default:d((()=>{var s;return[u($,{class:"",size:"sl",goodsFields:t.data.fields,tagStyle:t.data.badge,data:e,titleColor:null==(s=t.data.fields.name)?void 0:s.color,subTitleColor:t.data.fields.introduction.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>h(_).$router.go("/pages/goods/index",{id:e.id})},{cart:d((()=>[u(v,{class:"ss-reset-button cart-btn",style:g([h(B)])},{default:d((()=>[y(f("text"===h(x).type?h(x).text:""),1)])),_:1},8,["style"])])),_:2},1032,["goodsFields","tagStyle","data","titleColor","subTitleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})):c("",!0),h(m)===a&&p.goodsList.length?(i(),r(I,{key:1,class:"goods-md-wrap ss-flex ss-flex-wrap ss-col-top"},{default:d((()=>[u(I,{class:"goods-list-box"},{default:d((()=>[(i(!0),C(w,null,S(p.leftGoodsList,(e=>(i(),r(I,{class:"left-list",style:g([{paddingRight:t.data.space+"rpx",marginBottom:t.data.space+"px"}]),key:e.id},{default:d((()=>{var s;return[u($,{class:"goods-md-box",size:"md",goodsFields:t.data.fields,tagStyle:t.data.badge,data:e,titleColor:null==(s=t.data.fields.name)?void 0:s.color,subTitleColor:t.data.fields.introduction.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,titleWidth:330-h(R)-h(T),onClick:t=>h(_).$router.go("/pages/goods/index",{id:e.id}),onGetHeight:k[0]||(k[0]=t=>L(t,"left"))},{cart:d((()=>[u(v,{class:"ss-reset-button cart-btn",style:g([h(B)])},{default:d((()=>[y(f("text"===h(x).type?h(x).text:""),1)])),_:1},8,["style"])])),_:2},1032,["goodsFields","tagStyle","data","titleColor","subTitleColor","topRadius","bottomRadius","titleWidth","onClick"])]})),_:2},1032,["style"])))),128))])),_:1}),u(I,{class:"goods-list-box"},{default:d((()=>[(i(!0),C(w,null,S(p.rightGoodsList,(e=>(i(),r(I,{class:"right-list",style:g([{paddingLeft:t.data.space+"rpx",marginBottom:t.data.space+"px"}]),key:e.id},{default:d((()=>{var s;return[u($,{class:"goods-md-box",size:"md",goodsFields:t.data.fields,tagStyle:t.data.badge,data:e,titleColor:null==(s=t.data.fields.name)?void 0:s.color,subTitleColor:t.data.fields.introduction.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,titleWidth:330-h(R)-h(T),onClick:t=>h(_).$router.go("/pages/goods/index",{id:e.id}),onGetHeight:k[1]||(k[1]=t=>L(t,"right"))},{cart:d((()=>[u(v,{class:"ss-reset-button cart-btn",style:g([h(B)])},{default:d((()=>[y(f("text"===h(x).type?h(x).text:""),1)])),_:1},8,["style"])])),_:2},1032,["goodsFields","tagStyle","data","titleColor","subTitleColor","topRadius","bottomRadius","titleWidth","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})])),_:1})):c("",!0),h(m)===n&&p.goodsList.length?(i(),r(I,{key:2,class:"goods-lg-box"},{default:d((()=>[(i(!0),C(w,null,S(p.goodsList,(e=>(i(),r(I,{class:"goods-box",style:g([{marginBottom:t.data.space+"px"}]),key:e.id},{default:d((()=>{var s;return[u($,{class:"goods-card",size:"lg",goodsFields:t.data.fields,data:e,tagStyle:t.data.badge,titleColor:null==(s=t.data.fields.name)?void 0:s.color,subTitleColor:t.data.fields.introduction.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>h(_).$router.go("/pages/goods/index",{id:e.id})},{cart:d((()=>[u(v,{class:"ss-reset-button cart-btn",style:g([h(B)])},{default:d((()=>[y(f("text"===h(x).type?h(x).text:""),1)])),_:1},8,["style"])])),_:2},1032,["goodsFields","data","tagStyle","titleColor","subTitleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})):c("",!0)])),_:1})}}},[["__scopeId","data-v-fa95f07c"]]),Bt=q({__name:"s-goods-shelves",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t,{layoutType:s,spuIds:a}=e.data;let{marginLeft:n,marginRight:p}=e.styles;const y=B([]);return M((async()=>{if(a.length>0){let{data:t}=await tt.getSpuListByIds(a.join(","));y.value=t}})),(e,a)=>{const f=l(o("s-goods-column"),K),m=b,x=N;return i(),r(m,null,{default:d((()=>["twoCol"===h(s)?(i(),r(m,{key:0,class:"goods-xs-box ss-flex ss-flex-wrap",style:g([{margin:"-"+t.data.space+"rpx"}])},{default:d((()=>[(i(!0),C(w,null,S(y.value,(e=>(i(),r(m,{class:"goods-xs-list",key:e.id,style:g([{padding:t.data.space+"rpx"}])},{default:d((()=>{var s;return[u(f,{class:"goods-card",size:"xs",goodsFields:t.data.fields,tagStyle:t.data.badge,data:e,titleColor:null==(s=t.data.fields.name)?void 0:s.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,titleWidth:(454-2*h(p)-2*t.data.space-2*h(n))/2,onClick:t=>h(_).$router.go("/pages/goods/index",{id:e.id})},null,8,["goodsFields","tagStyle","data","titleColor","topRadius","bottomRadius","titleWidth","onClick"])]})),_:2},1032,["style"])))),128))])),_:1},8,["style"])):c("",!0),"threeCol"===h(s)?(i(),r(m,{key:1,class:"goods-sm-box ss-flex ss-flex-wrap",style:g([{margin:"-"+t.data.space+"rpx"}])},{default:d((()=>[(i(!0),C(w,null,S(y.value,(e=>(i(),r(m,{key:e.id,class:"goods-card-box",style:g([{padding:t.data.space+"rpx"}])},{default:d((()=>{var s;return[u(f,{class:"goods-card",size:"sm",goodsFields:t.data.fields,tagStyle:t.data.badge,data:e,titleColor:null==(s=t.data.fields.name)?void 0:s.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>h(_).$router.go("/pages/goods/index",{id:e.id})},null,8,["goodsFields","tagStyle","data","titleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1},8,["style"])):c("",!0),"horizSwiper"===h(s)?(i(),r(m,{key:2,class:""},{default:d((()=>[u(x,{class:"scroll-box goods-scroll-box","scroll-x":"","scroll-anchoring":""},{default:d((()=>[u(m,{class:"goods-box ss-flex"},{default:d((()=>[(i(!0),C(w,null,S(y.value,(e=>(i(),r(m,{class:"goods-card-box",key:e.id,style:g([{marginRight:2*t.data.space+"rpx"}])},{default:d((()=>{var s;return[u(f,{class:"goods-card",size:"sm",goodsFields:t.data.fields,tagStyle:t.data.badge,data:e,titleColor:null==(s=t.data.fields.name)?void 0:s.color,titleWidth:(750-2*h(p)-4*t.data.space-2*h(n))/3,onClick:t=>h(_).$router.go("/pages/goods/index",{id:e.id})},null,8,["goodsFields","tagStyle","data","titleColor","titleWidth","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})])),_:1})])),_:1})):c("",!0)])),_:1})}}},[["__scopeId","data-v-32be2126"]]),It=q({__name:"s-groupon-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t;let{layoutType:s,tagStyle:a,btnBuy:n,space:p}=e.data;e.styles;const m=v((()=>{let t=e.data.btnBuy;return"text"===(null==t?void 0:t.type)?{background:`linear-gradient(to right, ${t.bgBeginColor}, ${t.bgEndColor})`}:"img"===(null==t?void 0:t.type)?{width:"54rpx",height:"54rpx",background:`url(${_.$url.cdn(t.imgUrl)}) no-repeat`,backgroundSize:"100% 100%"}:void 0})),x=B([]);return M((async()=>{const{data:t}=await et.getCombinationActivity(e.data.activityId),{data:s}=await tt.getSpuDetail(t.spuId);x.value=[s]})),(k,v)=>{const $=l(o("s-goods-column"),K),R=b,T=P;return i(),r(R,null,{default:d((()=>["threeCol"===h(s)?(i(),r(R,{key:0,class:"goods-sm-box ss-flex ss-flex-wrap",style:g([{margin:"-"+t.data.space+"rpx"}])},{default:d((()=>[(i(!0),C(w,null,S(x.value,(s=>(i(),r(R,{key:s.id,class:"goods-card-box",style:g([{padding:t.data.space+"rpx"}])},{default:d((()=>{var l;return[u($,{class:"goods-card",size:"sm",goodsFields:t.data.fields,tagStyle:h(a),data:s,titleColor:null==(l=t.data.fields.name)?void 0:l.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>h(_).$router.go("/pages/goods/groupon",{id:s.id,activity_id:e.data.activityId})},null,8,["goodsFields","tagStyle","data","titleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1},8,["style"])):c("",!0),"oneCol"===h(s)?(i(),r(R,{key:1,class:"goods-box"},{default:d((()=>[(i(!0),C(w,null,S(x.value,((s,l)=>(i(),r(R,{class:"goods-list",key:l,style:g([{marginBottom:h(p)+"px"}])},{default:d((()=>{var l,o;return[u($,{class:"goods-card",size:"lg",goodsFields:t.data.fields,tagStyle:h(a),data:s,titleColor:null==(l=t.data.fields.name)?void 0:l.color,subTitleColor:null==(o=t.data.fields.introduction)?void 0:o.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>h(_).$router.go("/pages/goods/groupon",{id:s.id,activity_id:e.data.activityId})},{cart:d((()=>[u(T,{class:"ss-reset-button cart-btn",style:g([h(m)])},{default:d((()=>{var t;return[y(f("text"===(null==(t=h(n))?void 0:t.type)?h(n).text:""),1)]})),_:1},8,["style"])])),_:2},1032,["goodsFields","tagStyle","data","titleColor","subTitleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})):c("",!0)])),_:1})}}},[["__scopeId","data-v-2db995b9"]]),zt=q({__name:"s-seckill-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t;let{layoutType:s,tagStyle:a,btnBuy:n,space:p}=e.data;e.styles;const m=v((()=>{let t=e.data.btnBuy;return"text"===(null==t?void 0:t.type)?{background:`linear-gradient(to right, ${t.bgBeginColor}, ${t.bgEndColor})`}:"img"===(null==t?void 0:t.type)?{width:"54rpx",height:"54rpx",background:`url(${_.$url.cdn(t.imgUrl)}) no-repeat`,backgroundSize:"100% 100%"}:void 0})),x=B([]);return M((async()=>{const{data:t}=await st.getSeckillActivity(e.data.activityId),{data:s}=await tt.getSpuDetail(t.spuId);x.value=[s]})),(k,v)=>{const $=l(o("s-goods-column"),K),R=b,T=P;return i(),r(R,null,{default:d((()=>["threeCol"===h(s)?(i(),r(R,{key:0,class:"goods-sm-box ss-flex ss-flex-wrap",style:g([{margin:"-"+t.data.space+"rpx"}])},{default:d((()=>[(i(!0),C(w,null,S(x.value,(s=>(i(),r(R,{key:s.id,class:"goods-card-box",style:g([{padding:t.data.space+"rpx"}])},{default:d((()=>{var l;return[u($,{class:"goods-card",size:"sm",goodsFields:t.data.fields,tagStyle:h(a),data:s,titleColor:null==(l=t.data.fields.name)?void 0:l.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:v[0]||(v[0]=t=>h(_).$router.go("/pages/goods/seckill",{id:e.data.activityId}))},null,8,["goodsFields","tagStyle","data","titleColor","topRadius","bottomRadius"])]})),_:2},1032,["style"])))),128))])),_:1},8,["style"])):c("",!0),"oneCol"===h(s)?(i(),r(R,{key:1,class:"goods-box"},{default:d((()=>[(i(!0),C(w,null,S(x.value,((s,l)=>(i(),r(R,{class:"goods-list",key:l,style:g([{marginBottom:h(p)+"px"}])},{default:d((()=>{var l,o;return[u($,{class:"goods-card",size:"lg",goodsFields:t.data.fields,tagStyle:h(a),data:s,titleColor:null==(l=t.data.fields.name)?void 0:l.color,subTitleColor:null==(o=t.data.fields.introduction)?void 0:o.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:v[1]||(v[1]=t=>h(_).$router.go("/pages/goods/seckill",{id:e.data.activityId}))},{cart:d((()=>[u(T,{class:"ss-reset-button cart-btn",style:g([h(m)])},{default:d((()=>{var t;return[y(f("text"===(null==(t=h(n))?void 0:t.type)?h(n).text:""),1)]})),_:1},8,["style"])])),_:2},1032,["goodsFields","tagStyle","data","titleColor","subTitleColor","topRadius","bottomRadius"])]})),_:2},1032,["style"])))),128))])),_:1})):c("",!0)])),_:1})}}},[["__scopeId","data-v-7bcaca5a"]]),jt=q({__name:"s-live-card",props:{goodsFields:{type:[Array,Object],default:()=>({})},tagStyle:{type:Object,default:{}},data:{type:Object,default:{}},size:{type:String,default:"sl"},background:{type:String,default:""},topRadius:{type:Number,default:0},bottomRadius:{type:Number,default:0},titleColor:{type:String,default:"#333"},subTitleColor:{type:String,default:"#999999"}},emits:["click","getHeight"],setup(t,{emit:e}){const s=t,a=v((()=>({background:s.background,"border-top-left-radius":s.topRadius+"px","border-top-right-radius":s.topRadius+"px","border-bottom-left-radius":s.bottomRadius+"px","border-bottom-right-radius":s.bottomRadius+"px"}))),l=k({liveStatus:{101:{img:_.$url.static("/static/img/shop/app/mplive/living.png"),title:"直播中"},102:{img:_.$url.static("/static/img/shop/app/mplive/start.png"),title:"未开始"},103:{img:_.$url.static("/static/img/shop/app/mplive/ended.png"),title:"已结束"}}}),o=()=>{e("click")};return(e,s)=>{const n=x,p=b;return i(),r(p,null,{default:d((()=>["md"===t.size?(i(),r(p,{key:0,class:"md-goods-card ss-flex-col",style:g([h(a)]),onClick:o},{default:d((()=>[u(p,{class:"icon-box ss-flex"},{default:d((()=>[u(n,{class:"icon",src:l.liveStatus[t.data.status].img},null,8,["src"]),u(p,{class:"title ss-m-l-16"},{default:d((()=>[y(f(l.liveStatus[t.data.status].title),1)])),_:1})])),_:1}),U("img",{class:"md-img-box",src:h(_).$url.cdn(t.data.feeds_img),referrerpolicy:"no-referrer"},null,8,["src"]),u(p,{class:"md-goods-content"},{default:d((()=>[u(p,{class:"md-goods-title ss-line-1",style:g([{color:t.titleColor}])},{default:d((()=>[y(f(t.data.name),1)])),_:1},8,["style"]),u(p,{class:"md-goods-subtitle ss-m-t-14 ss-line-1",style:g([{color:t.subTitleColor}])},{default:d((()=>[y(" 主播:"+f(t.data.anchor_name),1)])),_:1},8,["style"])])),_:1})])),_:1},8,["style"])):c("",!0),"sl"===t.size?(i(),r(p,{key:1,class:"sl-goods-card ss-flex-col",style:g([h(a)]),onClick:o},{default:d((()=>[u(p,{class:"icon-box ss-flex"},{default:d((()=>[u(n,{class:"icon",src:l.liveStatus[t.data.status].img},null,8,["src"]),u(p,{class:"title ss-m-l-16"},{default:d((()=>[y(f(l.liveStatus[t.data.status].title),1)])),_:1})])),_:1}),U("img",{class:"sl-img-box",src:h(_).$url.cdn(t.data.feeds_img),referrerpolicy:"no-referrer"},null,8,["src"]),u(p,{class:"sl-goods-content"},{default:d((()=>[u(p,{class:"sl-goods-title ss-line-1",style:g([{color:t.titleColor}])},{default:d((()=>[y(f(t.data.name),1)])),_:1},8,["style"]),u(p,{class:"sl-goods-subtitle ss-m-t-14 ss-line-1",style:g([{color:t.subTitleColor}])},{default:d((()=>[y(" 主播:"+f(t.data.anchor_name),1)])),_:1},8,["style"])])),_:1})])),_:1},8,["style"])):c("",!0)])),_:1})}}},[["__scopeId","data-v-bedb20fb"]]),Lt=q({__name:"s-live-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t,s=k({liveList:[],mpLink:""}),{mode:a,goodsFields:n,mpliveIds:p}=e.data??{};function y(t){W({title:"提示",confirmText:"允许",content:"将打开小程序访问",success:async function(t){t.confirm&&async function(){if(""===s.mpLink){const{error:t,data:e}=await _.$api.app.mplive.getMpLink();0===t&&(s.mpLink=e)}window.location=s.mpLink}()}})}return e.styles,M((async()=>{s.liveList=await async function(t){const{data:e}=await _.$api.app.mplive.getRoomList(t);return e}(p)})),(e,p)=>{const f=l(o("s-live-card"),jt),m=b;return i(),r(m,null,{default:d((()=>[2===h(a)&&s.liveList.length?(i(),r(m,{key:0,class:"goods-md-wrap ss-flex ss-flex-wrap ss-col-top",style:g([{margin:"-"+t.data.space+"rpx"}])},{default:d((()=>[(i(!0),C(w,null,S(s.liveList,(e=>(i(),r(m,{style:g([{padding:t.data.space+"rpx"}]),class:"goods-list-box",key:e.id},{default:d((()=>{var s,a;return[u(f,{class:"goods-md-box",size:"md",goodsFields:h(n),data:e,titleColor:null==(s=h(n).name)?void 0:s.color,subTitleColor:null==(a=h(n).anchor_name)?void 0:a.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>y(e.roomid)},null,8,["goodsFields","data","titleColor","subTitleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1},8,["style"])):c("",!0),1===h(a)&&s.liveList.length?(i(),r(m,{key:1,class:"goods-lg-box"},{default:d((()=>[(i(!0),C(w,null,S(s.liveList,(e=>(i(),r(m,{class:"goods-box",style:g([{marginBottom:t.data.space+"px"}]),key:e.id},{default:d((()=>{var s;return[u(f,{class:"goods-card",size:"sl",goodsFields:h(n),data:e,titleColor:null==(s=h(n).name)?void 0:s.color,subTitleColor:h(n).anchor_name.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>y(e.roomid)},null,8,["goodsFields","data","titleColor","subTitleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})):c("",!0)])),_:1})}}},[["__scopeId","data-v-56889146"]]),Ft=q({__name:"su-coupon",props:{size:{type:String,default:"lg"},textColor:{type:String,default:"#FF6000"},background:{type:String,default:"#FFC19C"},btnBg:{type:String,default:"#fff"},btnTextColor:{type:String,default:"#FF6000"},state:{type:Number,default:0},couponId:{type:Number,default:0},title:{type:String,default:"这是优惠券"},value:{type:[Number,String],default:50},sellBy:{type:String,default:"2019.11.25至2019.12.25"},surplus:{type:[Number,String],default:0},type:{type:String,default:""}},setup(t){const e=t;D((e=>({"1cba8317":t.textColor,"0956aa8e":t.btnTextColor,"78bb65bc":t.btnBg})));const s=k({stateMap:{0:"立即领取",1:"去使用"}}),a=v((()=>({background:e.background})));return(l,o)=>{const p=b,m=P;return i(),r(p,{class:"ui-coupon-wrap"},{default:d((()=>["xs"===e.size?(i(),r(p,{key:0,class:"xs-coupon-card ss-flex ss-flex-col ss-row-between",style:g([h(a)]),onClick:o[0]||(o[0]=e=>h(_).$router.go("/pages/coupon/detail",{id:t.couponId}))},{default:d((()=>[u(p,{class:"ss-flex ss-flex-col ss-row-center ss-col-center"},{default:d((()=>[u(p,{class:"face-value-box ss-flex ss-col-bottom ss-m-t-50 ss-m-b-28"},{default:d((()=>[u(p,{class:"value-text ss-m-r-4"},{default:d((()=>[y(f("reduce"===t.type?t.value:Number(t.value)),1)])),_:1}),u(p,{class:"value-unit"},{default:d((()=>[y(f("reduce"===t.type?"元":"折"),1)])),_:1})])),_:1}),u(p,{class:"title-text"},{default:d((()=>[y(f(e.title),1)])),_:1})])),_:1}),u(p,{class:"card-bottom ss-m-b-30 ss-flex ss-row-center"},{default:d((()=>[n(l.$slots,"btn",{},(()=>[u(m,{class:"ss-reset-button card-btn"},{default:d((()=>[y(f(s.stateMap[e.state]),1)])),_:1})]),!0)])),_:3})])),_:3},8,["style"])):c("",!0),"md"===e.size?(i(),r(p,{key:1,class:"md-coupon-card ss-flex ss-row-between",style:g([h(a)]),onClick:o[1]||(o[1]=e=>h(_).$router.go("/pages/coupon/detail",{id:t.couponId}))},{default:d((()=>[u(p,{class:"card-left ss-flex ss-flex-col ss-row-between ss-col-top ss-m-l-40"},{default:d((()=>[u(p,{class:"face-value-box ss-flex ss-col-bottom ss-m-t-28"},{default:d((()=>[u(p,{class:"value-text ss-m-r-4"},{default:d((()=>[y(f("reduce"===t.type?t.value:Number(t.value)),1)])),_:1}),u(p,{class:"value-unit"},{default:d((()=>[y(f("reduce"===t.type?"元":"折"),1)])),_:1})])),_:1}),u(p,{class:"ss-m-b-28"},{default:d((()=>[u(p,{class:"title-text ss-m-b-10"},{default:d((()=>[y(f(e.title),1)])),_:1}),e.surplus?(i(),r(p,{key:0,class:"surplus-text"},{default:d((()=>[y("仅剩:"+f(e.surplus)+"张",1)])),_:1})):c("",!0)])),_:1})])),_:1}),u(p,{class:"card-right ss-flex ss-row-center"},{default:d((()=>[n(l.$slots,"btn",{},(()=>[u(m,{class:"ss-reset-button card-btn ss-flex ss-row-center ss-col-center"},{default:d((()=>[u(p,{class:"btn-text"},{default:d((()=>[y(f(s.stateMap[e.state]),1)])),_:1})])),_:1})]),!0)])),_:3})])),_:3},8,["style"])):c("",!0),"lg"===e.size?(i(),r(p,{key:2,class:"lg-coupon-card ss-flex ss-row-between",style:g([h(a)]),onClick:o[2]||(o[2]=e=>h(_).$router.go("/pages/coupon/detail",{id:t.couponId}))},{default:d((()=>[u(p,{class:"card-left ss-flex ss-flex-col ss-row-between ss-col-top ss-m-l-40"},{default:d((()=>[u(p,{class:"face-value-box ss-flex ss-col-bottom ss-m-t-28"},{default:d((()=>[u(p,{class:"value-text ss-m-r-4"},{default:d((()=>[y(f("reduce"===t.type?t.value:Number(t.value)),1)])),_:1}),u(p,{class:"value-unit"},{default:d((()=>[y(f("reduce"===t.type?"元":"折"),1)])),_:1})])),_:1}),u(p,{class:"ss-m-b-20"},{default:d((()=>[u(p,{class:"title-text ss-m-b-10"},{default:d((()=>[y(f(e.title),1)])),_:1}),u(p,{class:"sellby-text"},{default:d((()=>[y("有效期:"+f(e.sellBy),1)])),_:1})])),_:1})])),_:1}),u(p,{class:"card-right ss-flex ss-flex-col ss-col-center ss-row-center"},{default:d((()=>[n(l.$slots,"btn",{},(()=>[u(m,{class:"ss-reset-button card-btn ss-flex ss-row-center ss-col-center"},{default:d((()=>[y(f(s.stateMap[e.state]),1)])),_:1})]),!0),e.surplus?(i(),r(p,{key:0,class:"surplus-text ss-m-t-24"},{default:d((()=>[y("仅剩:"+f(e.surplus)+"张",1)])),_:1})):c("",!0)])),_:3})])),_:3},8,["style"])):c("",!0)])),_:3})}}},[["__scopeId","data-v-0533717a"]]),Ot=q({__name:"s-coupon-block",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const e=t,{columns:s,button:a}=e.data,n=["lg","md","xs"],c={background:`url(${_.$url.cdn(e.data.bgImg)}) no-repeat top center / 100% 100%`},p={background:a.bgColor,color:a.color},f=t=>t.discountType===at.PRICE.type?ot(t.discountPrice):t.discountType===at.PERCENT.type?t.discountPercent:`未知【${t.discountType}】`,m=B([]);async function x(t){const{error:e,msg:s}=await A.takeCoupon(t);0!==e?await k():E({title:s,icon:"none"})}const k=async()=>{const{data:t}=await A.getCouponTemplateListByIds(e.data.couponIds.join(","));m.value=t};return M((()=>{k()})),(e,a)=>{const _=b,k=P,v=l(o("su-coupon"),Ft),$=N;return i(),r($,{class:"scroll-box","scroll-x":"","scroll-anchoring":""},{default:d((()=>[u(_,{class:"coupon-box ss-flex"},{default:d((()=>[(i(!0),C(w,null,S(m.value,((e,a)=>(i(),r(_,{class:"coupon-item",style:g([c,{marginLeft:`${t.data.space}px`}]),key:a},{default:d((()=>{return[u(v,{size:n[h(s)-1],textColor:t.data.textColor,background:"",couponId:e.id,title:e.name,type:(l=e,l.discountType===at.PRICE.type?"reduce":l.discountType===at.PERCENT.type?"percent":`未知【${l.discountType}】`),value:f(e),sellBy:(a=e,a.validityType===lt.DATE.type?`${it(a.validStartTime)} 至 ${it(a.validEndTime)}`:a.validityType===lt.TERM.type?`领取后第 ${a.fixedStartTerm} - ${a.fixedEndTerm} 天内可用`:"未知【"+a.validityType+"】")},{btn:d((()=>[2===h(s)?(i(),r(k,{key:0,onClick:z((t=>x(e.id)),["stop"]),class:"ss-reset-button card-btn vertical",style:g([p])},{default:d((()=>[u(_,{class:"btn-text"},{default:d((()=>[y("立即领取")])),_:1})])),_:2},1032,["onClick","style"])):(i(),r(k,{key:1,class:"ss-reset-button card-btn",style:g([p]),onClick:z((t=>x(e.id)),["stop"])},{default:d((()=>[y(" 立即领取 ")])),_:2},1032,["style","onClick"]))])),_:2},1032,["size","textColor","couponId","title","type","value","sellBy"])];var a,l})),_:2},1032,["style"])))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-8f010012"]]),Mt={__name:"s-richtext-block",props:{data:{type:Object,default:{}},styles:{type:Object,default(){}}},setup(t){const e=t,s=k({content:""});return M((async()=>{const{data:t}=await dt.getArticle(e.data.id);s.content=t.content})),(e,a)=>{const n=l(o("mp-html"),rt),c=b;return i(),r(c,{style:g([{marginLeft:t.styles.marginLeft+"px",marginRight:t.styles.marginRight+"px",marginBottom:t.styles.marginBottom+"px",marginTop:t.styles.marginTop+"px",padding:t.styles.padding+"px"}])},{default:d((()=>[u(n,{class:"richtext",content:s.content},null,8,["content"])])),_:1},8,["style"])}}},Pt=q({__name:"s-user-card",props:{background:{type:String,default:""},avatar:{type:String,default:""},nickname:{type:String,default:"请先登录"},vip:{type:[String,Number],default:"1"},collectNum:{type:[String,Number],default:"1"},likeNum:{type:[String,Number],default:"1"}},setup(t){const e=v((()=>_.$store("user").userInfo));console.log("用户信息",e);const s=v((()=>_.$store("user").isLogin));function a(){H("changeMobile")}return(l,o)=>{const n=x,p=b,g=m,k=P;return i(),r(p,{class:"ss-user-info-wrap ss-p-t-50"},{default:d((()=>[u(p,{class:"ss-flex ss-col-center ss-row-between ss-m-b-20"},{default:d((()=>[u(p,{class:"left-box ss-flex ss-col-center ss-m-l-36"},{default:d((()=>[u(p,{class:"avatar-box ss-m-r-24"},{default:d((()=>[u(n,{class:"avatar-img",src:h(s)?h(_).$url.cdn(h(e).avatar):h(_).$url.static("/static/img/shop/default_avatar.png"),mode:"aspectFill",onClick:o[0]||(o[0]=t=>h(_).$router.go("/pages/user/info"))},null,8,["src"])])),_:1}),u(p,null,{default:d((()=>[u(p,{class:"nickname-box ss-flex ss-col-center"},{default:d((()=>[u(p,{class:"nick-name ss-m-r-20"},{default:d((()=>{var s;return[y(f((null==(s=h(e))?void 0:s.nickname)||t.nickname),1)]})),_:1})])),_:1})])),_:1})])),_:1}),u(p,{class:"right-box ss-m-r-52"},{default:d((()=>[u(k,{class:"ss-reset-button",onClick:h(G)},{default:d((()=>[u(g,{class:"sicon-qrcode"})])),_:1},8,["onClick"])])),_:1})])),_:1}),h(s)&&!h(e).mobile?(i(),r(p,{key:0,class:"bind-mobile-box ss-flex ss-row-between ss-col-center"},{default:d((()=>[u(p,{class:"ss-flex"},{default:d((()=>[u(g,{class:"cicon-mobile-o"}),u(p,{class:"mobile-title ss-m-l-20"},{default:d((()=>[y(" 点击绑定手机号确保账户安全 ")])),_:1})])),_:1}),u(k,{class:"ss-reset-button bind-btn",onClick:a},{default:d((()=>[y("去绑定")])),_:1})])),_:1})):c("",!0)])),_:1})}}},[["__scopeId","data-v-be612211"]]),Nt=q({__name:"s-order-card",setup(t){const e=[{title:"待付款",value:"1",icon:"/static/img/shop/order/no_pay.png",path:"/pages/order/list",type:"unpaid",count:"unpaidCount"},{title:"待收货",value:"3",icon:"/static/img/shop/order/no_take.png",path:"/pages/order/list",type:"noget",count:"deliveredCount"},{title:"待评价",value:"4",icon:"/static/img/shop/order/no_comment.png",path:"/pages/order/list",type:"nocomment",count:"uncommentedCount"},{title:"售后单",value:"0",icon:"/static/img/shop/order/change_order.png",path:"/pages/order/aftersale/list",type:"aftersale",count:"afterSaleCount"},{title:"全部订单",value:"0",icon:"/static/img/shop/order/all_order.png",path:"/pages/order/list"}],s=v((()=>_.$store("user").numData));return(t,a)=>{const n=x,c=l(o("uni-badge"),Y),p=b;return i(),r(p,{class:"ss-order-menu-wrap ss-flex ss-col-center"},{default:d((()=>[(i(),C(w,null,S(e,(t=>u(p,{class:"menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center",key:t.title,onClick:e=>h(_).$router.go(t.path,{type:t.value})},{default:d((()=>[u(c,{class:"uni-badge-left-margin",text:h(s).orderCount[t.count],absolute:"rightTop",size:"small"},{default:d((()=>[u(n,{class:"item-icon",src:h(_).$url.static(t.icon),mode:"aspectFit"},null,8,["src"])])),_:2},1032,["text"]),u(p,{class:"menu-title ss-m-t-28"},{default:d((()=>[y(f(t.title),1)])),_:2},1024)])),_:2},1032,["onClick"]))),64))])),_:1})}}},[["__scopeId","data-v-9c4ec19c"]]),Ut=q({__name:"s-wallet-card",setup(t){const e=v((()=>_.$store("user").userWallet)),s=v((()=>_.$store("user").userInfo)),a=v((()=>_.$store("user").numData));return(t,l)=>{const o=b,n=x;return i(),r(o,{class:"ss-wallet-menu-wrap ss-flex ss-col-center"},{default:d((()=>[u(o,{class:"menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center",onClick:l[0]||(l[0]=t=>h(_).$router.go("/pages/user/wallet/money"))},{default:d((()=>[u(o,{class:"value-box ss-flex ss-col-bottom"},{default:d((()=>[u(o,{class:"value-text ss-line-1"},{default:d((()=>[y(f(h(nt)(h(e).balance)||"0.00"),1)])),_:1}),u(o,{class:"unit-text ss-m-l-6"},{default:d((()=>[y("元")])),_:1})])),_:1}),u(o,{class:"menu-title ss-m-t-28"},{default:d((()=>[y("账户余额")])),_:1})])),_:1}),u(o,{class:"menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center",onClick:l[1]||(l[1]=t=>h(_).$router.go("/pages/user/wallet/score"))},{default:d((()=>[u(o,{class:"value-box ss-flex ss-col-bottom"},{default:d((()=>[u(o,{class:"value-text"},{default:d((()=>[y(f(h(s).point||0),1)])),_:1}),u(o,{class:"unit-text ss-m-l-6"},{default:d((()=>[y("个")])),_:1})])),_:1}),u(o,{class:"menu-title ss-m-t-28"},{default:d((()=>[y("积分")])),_:1})])),_:1}),u(o,{class:"menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center",onClick:l[2]||(l[2]=t=>h(_).$router.go("/pages/coupon/list",{type:"geted"}))},{default:d((()=>[u(o,{class:"value-box ss-flex ss-col-bottom"},{default:d((()=>[u(o,{class:"value-text"},{default:d((()=>[y(f(h(a).unusedCouponCount),1)])),_:1}),u(o,{class:"unit-text ss-m-l-6"},{default:d((()=>[y("张")])),_:1})])),_:1}),u(o,{class:"menu-title ss-m-t-28"},{default:d((()=>[y("优惠券")])),_:1})])),_:1}),u(o,{class:"menu-item ss-flex-col ss-row-center ss-col-center menu-wallet",onClick:l[3]||(l[3]=t=>h(_).$router.go("/pages/user/wallet/money"))},{default:d((()=>[u(n,{class:"item-icon",src:h(_).$url.static("/static/img/shop/user/wallet_icon.png"),mode:"aspectFit"},null,8,["src"]),u(o,{class:"menu-title ss-m-t-30"},{default:d((()=>[y("我的钱包")])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-17abe3c5"]]),Wt=q({__name:"s-coupon-card",props:{list:{type:Array,default:()=>[{title:"已领取",value:"0",icon:"/static/img/shop/order/nouse_coupon.png",path:"/pages/coupon/list",type:"geted"},{title:"已使用",value:"0",icon:"/static/img/shop/order/useend_coupon.png",path:"/pages/coupon/list",type:"used"},{title:"已失效",value:"0",icon:"/static/img/shop/order/out_coupon.png",path:"/pages/coupon/list",type:"expired"},{title:"领券中心",value:"0",icon:"/static/img/shop/order/all_coupon.png",path:"/pages/coupon/list",type:"all"}]}},setup(t){const e=t;return(t,s)=>{const a=x,l=b;return i(),r(l,{class:"ss-coupon-menu-wrap ss-flex ss-col-center"},{default:d((()=>[(i(!0),C(w,null,S(e.list,(t=>(i(),r(l,{class:p(["menu-item ss-flex-col ss-row-center ss-col-center","all"===t.type?"menu-wallet":"ss-flex-1"]),key:t.title,onClick:e=>h(_).$router.go(t.path,{type:t.type})},{default:d((()=>[u(a,{class:"item-icon",src:h(_).$url.static(t.icon),mode:"aspectFit"},null,8,["src"]),u(l,{class:"menu-title ss-m-t-28"},{default:d((()=>[y(f(t.title),1)])),_:2},1024)])),_:2},1032,["onClick","class"])))),128))])),_:1})}}},[["__scopeId","data-v-5871c113"]]),Dt={__name:"s-block-item",props:{type:{type:String,default:""},data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup:t=>(e,a)=>{const n=l(o("s-search-block"),s),u=l(o("s-notice-block"),ut),p=l(o("s-menu-button"),pt),g=l(o("s-menu-list"),gt),y=l(o("s-menu-grid"),mt),f=l(o("s-popup-image"),bt),m=l(o("s-float-menu"),_t),h=l(o("s-image-block"),xt),_=l(o("s-image-banner"),kt),x=l(o("s-title-block"),vt),k=l(o("s-image-cube"),Ct),v=l(o("s-video-block"),wt),C=l(o("s-line-block"),$t),w=l(o("s-hotzone-block"),Rt),S=l(o("s-goods-card"),Tt),$=l(o("s-goods-shelves"),Bt),R=l(o("s-groupon-block"),It),T=l(o("s-seckill-block"),zt),B=l(o("s-live-block"),Lt),I=l(o("s-coupon-block"),Ot),z=l(o("s-richtext-block"),Mt),j=l(o("s-user-card"),Pt),L=l(o("s-order-card"),Nt),F=l(o("s-wallet-card"),Ut),O=l(o("s-coupon-card"),Wt),M=b;return i(),r(M,null,{default:d((()=>["SearchBar"===t.type?(i(),r(n,{key:0,data:t.data,styles:t.styles,navbar:!1},null,8,["data","styles"])):c("",!0),"NoticeBar"===t.type?(i(),r(u,{key:1,data:t.data},null,8,["data"])):c("",!0),"MenuSwiper"===t.type?(i(),r(p,{key:2,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"MenuList"===t.type?(i(),r(g,{key:3,data:t.data},null,8,["data"])):c("",!0),"MenuGrid"===t.type?(i(),r(y,{key:4,data:t.data},null,8,["data"])):c("",!0),"Popover"===t.type?(i(),r(f,{key:5,data:t.data},null,8,["data"])):c("",!0),"FloatingActionButton"===t.type?(i(),r(m,{key:6,data:t.data},null,8,["data"])):c("",!0),"ImageBar"===t.type?(i(),r(h,{key:7,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"Carousel"===t.type?(i(),r(_,{key:8,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"TitleBar"===t.type?(i(),r(x,{key:9,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"MagicCube"===t.type?(i(),r(k,{key:10,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"VideoPlayer"===t.type?(i(),r(v,{key:11,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"Divider"===t.type?(i(),r(C,{key:12,data:t.data},null,8,["data"])):c("",!0),"HotZone"===t.type?(i(),r(w,{key:13,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"ProductCard"===t.type?(i(),r(S,{key:14,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"ProductList"===t.type?(i(),r($,{key:15,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"PromotionCombination"===t.type?(i(),r(R,{key:16,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"PromotionSeckill"===t.type?(i(),r(T,{key:17,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"MpLive"===t.type?(i(),r(B,{key:18,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"CouponCard"===t.type?(i(),r(I,{key:19,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"PromotionArticle"===t.type?(i(),r(z,{key:20,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"UserCard"===t.type?(i(),r(j,{key:21})):c("",!0),"UserOrder"===t.type?(i(),r(L,{key:22,data:t.data},null,8,["data"])):c("",!0),"UserWallet"===t.type?(i(),r(F,{key:23})):c("",!0),"UserCoupon"===t.type?(i(),r(O,{key:24})):c("",!0)])),_:1})}},At={__name:"s-block",props:{styles:{type:Object,default(){}}},setup(t){const e=t,s=v((()=>{if(e.styles){if("color"===e.styles.bgType)return{background:e.styles.bgColor};if("img"===e.styles.bgType)return{background:`url(${_.$url.cdn(e.styles.bgImage)}) no-repeat top center / 100% auto`}}})),a=v((()=>{if(e.styles)return{marginTop:`${e.styles.marginTop||0}px`,marginBottom:`${e.styles.marginBottom||0}px`,marginLeft:`${e.styles.marginLeft||0}px`,marginRight:`${e.styles.marginRight||0}px`,paddingTop:`${e.styles.paddingTop||0}px`,paddingRight:`${e.styles.paddingRight||0}px`,paddingBottom:`${e.styles.paddingBottom||0}px`,paddingLeft:`${e.styles.paddingLeft||0}px`,borderTopLeftRadius:`${e.styles.borderTopLeftRadius||0}px`,borderTopRightRadius:`${e.styles.borderTopRightRadius||0}px`,borderBottomRightRadius:`${e.styles.borderBottomRightRadius||0}px`,borderBottomLeftRadius:`${e.styles.borderBottomLeftRadius||0}px`,overflow:"hidden"}}));return(t,e)=>{const l=b;return i(),r(l,{style:g([h(a),h(s)])},{default:d((()=>[n(t.$slots,"default")])),_:3},8,["style"])}}};export{Dt as _,At as a};
|