s-block.9dddd1e6.js 63 KB

1
  1. import{t,v as e,p as s,w as a}from"./s-layout.d6dcdc81.js";import{a7 as l,l as o,m as i,e as r,f as d,w as n,a9 as u,g as c,j as p,B as g,A as y,t as f,u as m,E as b,i as h,v as _,s as x,x as v,y as k,c as C,k as w,F as S,r as B,ai as A,ah as R,N as I,K as T,ar as z,C as L,as as $,at as j,au as D,av as E,X as F,G as M,S as P,Q as U,M as N,D as O,aw as G,ad as W}from"./index-b48a414d.js";import{e as Q,_ as V}from"./phone-international-input.feef99c7.js";import{_ as Y}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as K,a as H}from"./uni-list.756201c6.js";import{_ as Z}from"./su-image.900c884d.js";import{_ as X,a as J}from"./su-swiper.9cc599a0.js";import{_ as q}from"./s-goods-column.5d43688b.js";import{S as tt}from"./spu.3911022d.js";import{C as et}from"./combination.1281dd6d.js";import{S as st,P as at,C as lt}from"./const.75de4c57.js";import{_ as ot}from"./mp-html.da111812.js";import{A as it,r as rt}from"./richtext.e0e8677d.js";import{_ as dt}from"./uni-badge.78cdef34.js";const nt=Y({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)=>{l().in(this).select(`#${this.elId}`).boundingClientRect().exec((e=>{this.textWidth=e[0].width,t()}))})),s=new Promise(((t,e)=>{l().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(t,e,s,a,l,_){const x=o(i("uni-icons"),Q),v=b,k=h;return l.show?(r(),d(k,{key:0,class:"uni-noticebar",style:y({backgroundColor:s.backgroundColor}),onClick:_.onClick},{default:n((()=>[u(t.$slots,"icon",{},(()=>[!0===s.showIcon||"true"===s.showIcon?(r(),d(x,{key:0,class:"uni-noticebar-icon",type:"sound",color:s.color,size:"22"},null,8,["color"])):c("",!0)]),!0),p(k,{ref:"textBox",class:g(["uni-noticebar__content-wrapper",{"uni-noticebar__content-wrapper--scrollable":s.scrollable,"uni-noticebar__content-wrapper--single":!s.scrollable&&(s.single||s.moreText)}])},{default:n((()=>[p(k,{id:l.elIdBox,class:g(["uni-noticebar__content",{"uni-noticebar__content--scrollable":s.scrollable,"uni-noticebar__content--single":!s.scrollable&&(s.single||s.moreText)}])},{default:n((()=>[p(v,{id:l.elId,ref:"animationEle",class:g(["uni-noticebar__content-text",{"uni-noticebar__content-text--scrollable":s.scrollable,"uni-noticebar__content-text--single":!s.scrollable&&(s.single||s.showGetMore)}]),style:y({color:s.color,width:l.wrapWidth+"px",animationDuration:l.animationDuration,"-webkit-animationDuration":l.animationDuration,animationPlayState:l.webviewHide?"paused":l.animationPlayState,"-webkit-animationPlayState":l.webviewHide?"paused":l.animationPlayState,animationDelay:l.animationDelay,"-webkit-animationDelay":l.animationDelay})},{default:n((()=>[f(m(s.text),1)])),_:1},8,["id","class","style"])])),_:1},8,["id","class"])])),_:1},8,["class"]),!0===s.showGetMore||"true"===s.showGetMore?(r(),d(k,{key:0,class:"uni-noticebar__more uni-cursor-point",onClick:_.clickMore},{default:n((()=>[s.moreText.length>0?(r(),d(v,{key:0,style:y({color:s.moreColor}),class:"uni-noticebar__more-text"},{default:n((()=>[f(m(s.moreText),1)])),_:1},8,["style"])):(r(),d(x,{key:1,type:"right",color:s.moreColor,size:"16"},null,8,["color"]))])),_:1},8,["onClick"])):c("",!0),!0!==s.showClose&&"true"!==s.showClose||!1!==s.showGetMore&&"false"!==s.showGetMore?c("",!0):(r(),d(k,{key:1,class:"uni-noticebar-close uni-cursor-point"},{default:n((()=>[p(k,{onClick:_.close},{default:n((()=>[u(t.$slots,"close",{},(()=>[p(x,{type:"closeempty",color:s.color,size:"16"},null,8,["color"])]),!0)])),_:3},8,["onClick"])])),_:3}))])),_:3},8,["style","onClick"])):c("",!0)}],["__scopeId","data-v-dc8f5974"]]),ut=Y({__name:"s-notice-block",props:{data:{type:Object,default(){}}},setup:t=>(e,s)=>{const a=v,l=o(i("su-notice-bar"),nt),u=h;return r(),d(u,{class:"ss-flex ss-col-center notice-wrap"},{default:n((()=>[p(a,{class:"icon-img",src:_(x).$url.cdn(t.data.iconUrl),mode:"heightFix"},null,8,["src"]),p(l,{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=>_(x).$router.go(t.data.contents[0].url))},null,8,["text","color"])])),_:1})}},[["__scopeId","data-v-f049fa3f"]]),ct=Y({__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=k({cur:0}),s=t,a=C((()=>i(s.data.list,s.data.row*s.data.column))),l=C((()=>s.data.row*("iconText"===s.data.layout?200:180)));x.$platform.device.windowWidth;const o=t=>{e.cur=t.detail.current},i=(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(i,u)=>{const b=h,k=v,C=A,I=R;return r(),d(b,{class:g(["ui-swiper",[s.mode,s.bg,s.ui]]),style:y([{height:l.value+(a.value.length>1?50:0)+"rpx"}])},{default:n((()=>[p(I,{circular:s.circular,current:e.cur,autoplay:s.autoplay,interval:s.interval,duration:s.duration,style:y([{height:l.value+"rpx"}]),onChange:o},{default:n((()=>[(r(!0),w(S,null,B(a.value,((a,l)=>(r(),d(C,{key:l,class:g({cur:e.cur==l})},{default:n((()=>[p(b,{class:"grid-wrap"},{default:n((()=>[(r(!0),w(S,null,B(a,((e,a)=>(r(),d(b,{key:a,class:"grid-item ss-flex ss-flex-col ss-col-center ss-row-center",style:y([{width:1/t.data.column*100+"%",height:"200rpx"}]),"hover-class":"ss-hover-btn",onClick:t=>_(x).$router.go(e.url)},{default:n((()=>[p(b,{class:"menu-box ss-flex ss-flex-col ss-col-center ss-row-center"},{default:n((()=>[e.badge.show?(r(),d(b,{key:0,class:"tag-box",style:y([{background:e.badge.bgColor,color:e.badge.textColor}])},{default:n((()=>[f(m(e.badge.text),1)])),_:2},1032,["style"])):c("",!0),e.iconUrl?(r(),d(k,{key:1,class:"menu-icon",style:y([{width:s.iconSize+"rpx",height:s.iconSize+"rpx"}]),src:_(x).$url.cdn(e.iconUrl),mode:"aspectFill"},null,8,["style","src"])):c("",!0),"iconText"===t.data.layout?(r(),d(b,{key:2,class:"menu-title",style:y([{color:e.titleColor}])},{default:n((()=>[f(m(e.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"]),a.value.length>1?(r(),w(S,{key:0},["tag"!=s.dotStyle?(r(),d(b,{key:0,class:g(["ui-swiper-dot",s.dotStyle])},{default:n((()=>[(r(!0),w(S,null,B(a.value.length,((t,a)=>(r(),d(b,{class:g(["line-box",[e.cur==a?"cur":"",s.dotCur]]),key:a},null,8,["class"])))),128))])),_:1},8,["class"])):c("",!0),"tag"==s.dotStyle?(r(),d(b,{key:1,class:g(["ui-swiper-dot",s.dotStyle])},{default:n((()=>[p(b,{class:g(["ui-tag radius",[s.dotCur]]),style:{"pointer-events":"none"}},{default:n((()=>[p(b,{style:{transform:"scale(0.7)"}},{default:n((()=>[f(m(e.cur+1)+" / "+m(a.value.length),1)])),_:1})])),_:1},8,["class"])])),_:1},8,["class"])):c("",!0)],64)):c("",!0)])),_:1},8,["class","style"])}}},[["__scopeId","data-v-74b9c4a9"]]),pt=Y({__name:"s-menu-list",props:{data:{type:Object,default:()=>({})}},setup:t=>(e,s)=>{const a=v,l=h,u=o(i("uni-list-item"),K),g=o(i("uni-list"),H);return r(),d(l,{class:"menu-list-wrap"},{default:n((()=>[p(g,{border:!0},{default:n((()=>[(r(!0),w(S,null,B(t.data.list,((t,e)=>(r(),d(u,{key:e,showArrow:"",clickable:"",onClick:e=>_(x).$router.go(t.url)},{header:n((()=>[p(l,{class:"ss-flex ss-col-center"},{default:n((()=>[t.iconUrl?(r(),d(a,{key:0,class:"list-icon",src:_(x).$url.cdn(t.iconUrl),mode:"aspectFit"},null,8,["src"])):c("",!0),p(l,{class:"title-text ss-flex ss-row-center ss-col-center ss-m-l-20",style:y([{color:t.titleColor}])},{default:n((()=>[f(m(t.title),1)])),_:2},1032,["style"])])),_:2},1024)])),footer:n((()=>[p(l,{class:"notice-text ss-flex ss-row-center ss-col-center",style:y([{color:t.subtitleColor}])},{default:n((()=>[f(m(t.subtitle),1)])),_:2},1032,["style"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}},[["__scopeId","data-v-af9bf3a7"]]);const gt=Y({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 i=h;return r(),d(i,{style:y("width:"+l.width+";"+(l.square?"height:"+l.width:"")),class:"uni-grid-item grid-item"},{default:n((()=>[p(i,{class:g([{"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:y({"border-right-color":l.borderColor,"border-bottom-color":l.borderColor,"border-top-color":l.borderColor}),onClick:o._onClick},{default:n((()=>[u(t.$slots,"default",{},void 0,!0)])),_:3},8,["class","style","onClick"])])),_:3},8,["style"])}],["__scopeId","data-v-3055060c"]]);const yt=Y({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){l().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 i=h;return r(),d(i,{class:"uni-grid-wrap"},{default:n((()=>[p(i,{id:l.elId,ref:"uni-grid",class:g(["uni-grid",{"uni-grid--border":s.showBorder}]),style:y({"border-left-color":s.borderColor})},{default:n((()=>[u(t.$slots,"default",{},void 0,!0)])),_:3},8,["id","class","style"])])),_:3})}],["__scopeId","data-v-257e8068"]]),ft=Y({__name:"s-menu-grid",props:{data:{type:Object,default(){}}},setup:t=>(e,s)=>{const a=h,l=v,u=o(i("uni-grid-item"),gt),g=o(i("uni-grid"),yt);return r(),d(g,{showBorder:Boolean(t.data.border),column:t.data.column},{default:n((()=>[(r(!0),w(S,null,B(t.data.list,((t,e)=>(r(),d(u,{key:e,onClick:e=>_(x).$router.go(t.url)},{default:n((()=>[p(a,{class:"grid-item-box ss-flex ss-flex-col ss-row-center ss-col-center"},{default:n((()=>[p(a,{class:"img-box"},{default:n((()=>[t.badge.show?(r(),d(a,{key:0,class:"tag-box",style:y([{background:t.badge.bgColor,color:t.badge.textColor}])},{default:n((()=>[f(m(t.badge.text),1)])),_:2},1032,["style"])):c("",!0),p(l,{class:"menu-image",src:_(x).$url.cdn(t.iconUrl)},null,8,["src"])])),_:2},1024),p(a,{class:"title-box ss-flex ss-flex-col ss-row-center ss-col-center"},{default:n((()=>[p(a,{class:"grid-text",style:y([{color:t.titleColor}])},{default:n((()=>[f(m(t.title),1)])),_:2},1032,["style"]),p(a,{class:"grid-tip",style:y([{color:t.subtitleColor}])},{default:n((()=>[f(m(t.subtitle),1)])),_:2},1032,["style"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1},8,["showBorder","column"])}},[["__scopeId","data-v-8a435434"]]),mt=Y({__name:"s-popup-image",props:{data:{type:Object,default(){}}},setup(t){const e=t,s=JSON.parse(I("modal-store")||"{}");console.log(s);const a=s.advHistory||[],l=T(0),u=C((()=>{const t=e.data.list||[],s=[];return t.length>0&&t.forEach((t=>{"once"===t.showType&&a.includes(t.imgUrl)?t.isShow=!1:(t.isShow=!0,s.push(t)),z(t)})),s}));return(t,e)=>{const s=v,a=h,g=o(i("su-popup"),V);return r(),d(a,null,{default:n((()=>[(r(!0),w(S,null,B(u.value,((t,e)=>(r(),d(a,{key:e},{default:n((()=>[e===l.value?(r(),d(g,{key:0,show:t.isShow,type:"center",backgroundColor:"none",round:"0",showClose:!0,isMaskClick:!1,onClose:t=>function(t){l.value=t+1,u.value[t].isShow=!1}(e)},{default:n((()=>[p(a,{class:"img-box"},{default:n((()=>[p(s,{class:"modal-img",src:_(x).$url.cdn(t.imgUrl),mode:"widthFix",onClick:L((e=>{return s=t.url,void x.$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"]]);x.$platform.device;const bt=Y({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(t,e,s,a,l,u){const _=h,x=v,k=b,C=o(i("uni-icons"),Q);return r(),d(_,{class:"uni-cursor-point"},{default:n((()=>[s.popMenu&&(u.leftBottom||u.rightBottom||u.leftTop||u.rightTop)&&s.content.length>0?(r(),d(_,{key:0,class:g([{"uni-fab--leftBottom":u.leftBottom,"uni-fab--rightBottom":u.rightBottom,"uni-fab--leftTop":u.leftTop,"uni-fab--rightTop":u.rightTop},"uni-fab"])},{default:n((()=>[p(_,{class:g([{"uni-fab__content--left":"left"===s.horizontal,"uni-fab__content--right":"right"===s.horizontal,"uni-fab__content--flexDirection":"vertical"===s.direction,"uni-fab__content--flexDirectionStart":u.flexDirectionStart,"uni-fab__content--flexDirectionEnd":u.flexDirectionEnd,"uni-fab__content--other-platform":!l.isAndroidNvue},"uni-fab__content"]),style:y({width:u.boxWidth,height:u.boxHeight}),elevation:"5"},{default:n((()=>[u.flexDirectionStart||u.horizontalLeft?(r(),d(_,{key:0,class:"uni-fab__item uni-fab__item--first"})):c("",!0),(r(!0),w(S,null,B(s.content,((t,e)=>(r(),d(_,{key:e,class:g([{"uni-fab__item--active":l.isShow,"horizontal-margin":"horizontal"==s.direction},"uni-fab__item"]),onClick:s=>u._onItemClick(e,t)},{default:n((()=>[p(x,{src:t.active?t.selectedIconPath:t.iconPath,class:"uni-fab__item-image",mode:"aspectFit"},null,8,["src"]),p(k,{class:g(["uni-fab__item-text",{"vertical-margin":"vertical"==s.direction}]),style:y({color:s.pattern[e].color})},{default:n((()=>[f(m(t.text),1)])),_:2},1032,["class","style"])])),_:2},1032,["class","onClick"])))),128)),u.flexDirectionEnd||u.horizontalRight?(r(),d(_,{key:1,class:"uni-fab__item uni-fab__item--first"})):c("",!0)])),_:1},8,["class","style"])])),_:1},8,["class"])):c("",!0),p(_,{class:g([{"uni-fab__circle--leftBottom":u.leftBottom,"uni-fab__circle--rightBottom":u.rightBottom,"uni-fab__circle--leftTop":u.leftTop,"uni-fab__circle--rightTop":u.rightTop,"uni-fab__content--other-platform":!l.isAndroidNvue},"uni-fab__circle uni-fab__plus"]),style:y({"background-color":"var(--ui-BG-Main)"}),onClick:u._onClick},{default:n((()=>[p(C,{class:g(["fab-circle-icon",{"uni-fab__plus--active":l.isShow&&s.content.length>0}]),type:"plusempty",color:"#fff",size:"20"},null,8,["class"])])),_:1},8,["class","style","onClick"])])),_:1})}],["__scopeId","data-v-4d6bd010"]]),ht=Y({__name:"s-float-menu",props:{data:{type:Object,default(){}}},setup(t){var e;const s=t,a=k({pattern:[],content:[],direction:""}),l=T(null);function n(t){x.$router.go(t.item.url)}function u(){var t,e;(null==(t=_(l))?void 0:t.isShow)&&(null==(e=_(l))||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:x.$url.cdn(t.imgUrl),url:t.url,text:l}),a.pattern.push({color:t.textColor})})),$((()=>{var t,e;return!!(null==(t=_(l))?void 0:t.isShow)&&(null==(e=_(l))||e.close(),!0)})),(t,e)=>{var s;const g=h,y=o(i("uni-fab"),bt);return r(),w(S,null,[(null==(s=l.value)?void 0:s.isShow)?(r(),d(g,{key:0,class:"modal-bg",onClick:u})):c("",!0),p(y,{ref_key:"fabRef",ref:l,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"]]),_t={__name:"s-image-block",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup:t=>(e,s)=>{const a=o(i("su-image"),Z),l=h;return r(),d(l,{onClick:s[0]||(s[0]=e=>{var s;return _(x).$router.go(null==(s=t.data)?void 0:s.url)})},{default:n((()=>[p(a,{src:_(x).$url.cdn(t.data.imgUrl),mode:"widthFix"},null,8,["src"])])),_:1})}},xt={__name:"s-image-banner",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const e=t,s=C((()=>e.data.items.map((t=>{const e="img"===t.type?t.imgUrl:t.videoUrl;return{...t,type:"img"===t.type?"image":"video",src:x.$url.cdn(e),poster:x.$url.cdn(t.imgUrl)}}))));return(e,a)=>{const l=o(i("su-swiper"),X);return r(),d(l,{list:s.value,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=Y({__name:"s-title-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=k({typeMap:{left:"ss-row-left",center:"ss-row-center"}}),s=t,a={background:`url(${x.$url.cdn(s.data.bgImgUrl)}) no-repeat top center / 100% auto`,fontSize:`${s.data.titleSize}px`,fontWeight:`${s.data.titleWeight}px`},l={color:s.data.titleColor,fontSize:`${s.data.titleSize}px`,textAlign:s.data.textAlign},o={color:s.data.descriptionColor,textAlign:s.data.textAlign,fontSize:`${s.data.descriptionSize}px`,fontWeight:`${s.data.descriptionWeight}px`};return(s,i)=>{const u=h,v=b;return r(),d(u,{class:g(["ss-title-wrap ss-flex ss-col-center",[e.typeMap[t.data.textAlign]]]),style:y([a])},{default:n((()=>{var e;return[p(u,{class:"title-content"},{default:n((()=>[t.data.title?(r(),d(u,{key:0,class:"title-text",style:y([l])},{default:n((()=>[f(m(t.data.title),1)])),_:1},8,["style"])):c("",!0),t.data.description?(r(),d(u,{key:1,style:y([o]),class:"sub-title-text"},{default:n((()=>[f(m(t.data.description),1)])),_:1},8,["style"])):c("",!0)])),_:1}),(null==(e=t.data.more)?void 0:e.show)?(r(),d(u,{key:0,class:"more-box ss-flex ss-col-center",onClick:i[0]||(i[0]=e=>_(x).$router.go(t.data.more.url)),style:y({color:t.data.descriptionColor})},{default:n((()=>["icon"!==t.data.more.type?(r(),d(u,{key:0,class:"more-text"},{default:n((()=>[f(m(t.data.more.text),1)])),_:1})):c("",!0),"text"!==t.data.more.type?(r(),d(v,{key:1,class:"_icon-forward"})):c("",!0)])),_:1},8,["style"])):c("",!0)]})),_:1},8,["class","style"])}}},[["__scopeId","data-v-d2ca286c"]]),kt=Y({__name:"s-image-cube",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t,s=x.$platform.device.windowWidth,a=C((()=>(s-((e.styles.marginLeft||0)+(e.styles.marginRight||0)+2*(e.styles.padding||0)))/4)),l=C((()=>{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=v,i=h;return r(),d(i,{class:"ss-cube-wrap",style:y([l.value])},{default:n((()=>[(r(!0),w(S,null,B(t.data.list,((e,s)=>(r(),d(i,{key:s},{default:n((()=>[p(i,{class:"cube-img-wrap",style:y([o(e),{margin:t.data.space+"px"}]),onClick:t=>_(x).$router.go(e.url)},{default:n((()=>[p(a,{class:"cube-img",src:_(x).$url.cdn(e.imgUrl),mode:"aspectFill"},null,8,["src"])])),_:2},1032,["style","onClick"])])),_:2},1024)))),128))])),_:1},8,["style"])}}},[["__scopeId","data-v-1ee0eac9"]]),Ct=Y({__name:"s-video-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup:t=>(e,s)=>{const a=o(i("su-video"),J);return r(),d(a,{class:"sss",uid:_(j)(),src:_(x).$url.cdn(t.data.videoUrl),poster:_(x).$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"]]),wt=Y({__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=C((()=>({"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=h;return r(),d(l,{class:"wrap",style:y({height:`${t.height}px`})},{default:n((()=>[p(l,{class:"divider",style:y([s.value])},null,8,["style"])])),_:1},8,["style"])}}},[["__scopeId","data-v-bf2fb0d0"]]),St={__name:"s-line-block",props:{data:{type:Object,default:{}}},setup:t=>(e,s)=>{const a=o(i("su-subline"),wt);return r(),d(a,D(E(t.data)),null,16)}},Bt=Y({__name:"s-hotzone-block",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup:t=>(e,s)=>{const a=v,l=h;return r(),d(l,{class:"hotzone-wrap"},{default:n((()=>[p(a,{src:_(x).$url.cdn(t.data.imgUrl),style:{width:"100%"},mode:"widthFix"},null,8,["src"]),(r(!0),w(S,null,B(t.data.list,((t,e)=>(r(),d(l,{class:"hotzone-box",key:e,style:y([{top:`${t.top}px`,left:`${t.left}px`,width:`${t.width}px`,height:`${t.height}px`}]),onClick:L((e=>_(x).$router.go(t.url)),["stop"])},null,8,["style","onClick"])))),128))])),_:1})}},[["__scopeId","data-v-e570383d"]]),At=Y({__name:"s-goods-card",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e="oneColBigImg",s="twoCol",a="oneColSmallImg",l=k({goodsList:[],leftGoodsList:[],rightGoodsList:[]}),u=t,{layoutType:g,btnBuy:b,spuIds:v}=u.data??{},{marginLeft:A,marginRight:R}=u.styles??{},I=C((()=>"text"===b.type?{background:"linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient))"}:"img"===b.type?{width:"54rpx",height:"54rpx",background:`url(${x.$url.cdn(b.imgUrl)}) no-repeat`,backgroundSize:"100% 100%"}:void 0));let T=0,z=0,L=0;function $(t=0,e="left"){l.goodsList[T]&&("left"===e&&(z+=t),"right"===e&&(L+=t),z<=L?l.leftGoodsList.push(l.goodsList[T]):l.rightGoodsList.push(l.goodsList[T]),T++)}return F((async()=>{l.goodsList=await async function(t){const{data:e}=await tt.getSpuListByIds(t);return e}(v.join(",")),g===s&&$()})),(u,v)=>{const k=M,C=o(i("s-goods-column"),q),T=h;return r(),d(T,null,{default:n((()=>[_(g)===e&&l.goodsList.length?(r(),d(T,{key:0,class:"goods-sl-box"},{default:n((()=>[(r(!0),w(S,null,B(l.goodsList,(e=>(r(),d(T,{class:"goods-box",key:e.id,style:y([{marginBottom:2*t.data.space+"rpx"}])},{default:n((()=>{var s;return[p(C,{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=>_(x).$router.go("/pages/goods/index",{id:e.id})},{cart:n((()=>[p(k,{class:"ss-reset-button cart-btn",style:y([I.value])},{default:n((()=>[f(m("text"===_(b).type?_(b).text:""),1)])),_:1},8,["style"])])),_:2},1032,["goodsFields","tagStyle","data","titleColor","subTitleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})):c("",!0),_(g)===s&&l.goodsList.length?(r(),d(T,{key:1,class:"goods-md-wrap ss-flex ss-flex-wrap ss-col-top"},{default:n((()=>[p(T,{class:"goods-list-box"},{default:n((()=>[(r(!0),w(S,null,B(l.leftGoodsList,(e=>(r(),d(T,{class:"left-list",style:y([{paddingRight:t.data.space+"rpx",marginBottom:t.data.space+"px"}]),key:e.id},{default:n((()=>{var s;return[p(C,{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-_(A)-_(R),onClick:t=>_(x).$router.go("/pages/goods/index",{id:e.id}),onGetHeight:v[0]||(v[0]=t=>$(t,"left"))},{cart:n((()=>[p(k,{class:"ss-reset-button cart-btn",style:y([I.value])},{default:n((()=>[f(m("text"===_(b).type?_(b).text:""),1)])),_:1},8,["style"])])),_:2},1032,["goodsFields","tagStyle","data","titleColor","subTitleColor","topRadius","bottomRadius","titleWidth","onClick"])]})),_:2},1032,["style"])))),128))])),_:1}),p(T,{class:"goods-list-box"},{default:n((()=>[(r(!0),w(S,null,B(l.rightGoodsList,(e=>(r(),d(T,{class:"right-list",style:y([{paddingLeft:t.data.space+"rpx",marginBottom:t.data.space+"px"}]),key:e.id},{default:n((()=>{var s;return[p(C,{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-_(A)-_(R),onClick:t=>_(x).$router.go("/pages/goods/index",{id:e.id}),onGetHeight:v[1]||(v[1]=t=>$(t,"right"))},{cart:n((()=>[p(k,{class:"ss-reset-button cart-btn",style:y([I.value])},{default:n((()=>[f(m("text"===_(b).type?_(b).text:""),1)])),_:1},8,["style"])])),_:2},1032,["goodsFields","tagStyle","data","titleColor","subTitleColor","topRadius","bottomRadius","titleWidth","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})])),_:1})):c("",!0),_(g)===a&&l.goodsList.length?(r(),d(T,{key:2,class:"goods-lg-box"},{default:n((()=>[(r(!0),w(S,null,B(l.goodsList,(e=>(r(),d(T,{class:"goods-box",style:y([{marginBottom:t.data.space+"px"}]),key:e.id},{default:n((()=>{var s;return[p(C,{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=>_(x).$router.go("/pages/goods/index",{id:e.id})},{cart:n((()=>[p(k,{class:"ss-reset-button cart-btn",style:y([I.value])},{default:n((()=>[f(m("text"===_(b).type?_(b).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-26b356c5"]]),Rt=Y({__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:l,marginRight:u}=e.styles;const g=T([]);return F((async()=>{if(a.length>0){let{data:t}=await tt.getSpuListByIds(a.join(","));g.value=t}})),(e,a)=>{const f=o(i("s-goods-column"),q),m=h,b=P;return r(),d(m,null,{default:n((()=>["twoCol"===_(s)?(r(),d(m,{key:0,class:"goods-xs-box ss-flex ss-flex-wrap",style:y([{margin:"-"+t.data.space+"rpx"}])},{default:n((()=>[(r(!0),w(S,null,B(g.value,(e=>(r(),d(m,{class:"goods-xs-list",key:e.id,style:y([{padding:t.data.space+"rpx"}])},{default:n((()=>{var s;return[p(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*_(u)-2*t.data.space-2*_(l))/2,onClick:t=>_(x).$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"===_(s)?(r(),d(m,{key:1,class:"goods-sm-box ss-flex ss-flex-wrap",style:y([{margin:"-"+t.data.space+"rpx"}])},{default:n((()=>[(r(!0),w(S,null,B(g.value,(e=>(r(),d(m,{key:e.id,class:"goods-card-box",style:y([{padding:t.data.space+"rpx"}])},{default:n((()=>{var s;return[p(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=>_(x).$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"===_(s)?(r(),d(m,{key:2,class:""},{default:n((()=>[p(b,{class:"scroll-box goods-scroll-box","scroll-x":"","scroll-anchoring":""},{default:n((()=>[p(m,{class:"goods-box ss-flex"},{default:n((()=>[(r(!0),w(S,null,B(g.value,(e=>(r(),d(m,{class:"goods-card-box",key:e.id,style:y([{marginRight:2*t.data.space+"rpx"}])},{default:n((()=>{var s;return[p(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*_(u)-4*t.data.space-2*_(l))/3,onClick:t=>_(x).$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=Y({__name:"s-groupon-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t;let{layoutType:s,tagStyle:a,btnBuy:l,space:u}=e.data;e.styles;const g=C((()=>{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(${x.$url.cdn(t.imgUrl)}) no-repeat`,backgroundSize:"100% 100%"}:void 0})),b=T([]);return F((async()=>{const{data:t}=await et.getCombinationActivity(e.data.activityId),{data:s}=await tt.getSpuDetail(t.spuId);b.value=[s]})),(v,k)=>{const C=o(i("s-goods-column"),q),A=h,R=M;return r(),d(A,null,{default:n((()=>["threeCol"===_(s)?(r(),d(A,{key:0,class:"goods-sm-box ss-flex ss-flex-wrap",style:y([{margin:"-"+t.data.space+"rpx"}])},{default:n((()=>[(r(!0),w(S,null,B(b.value,(s=>(r(),d(A,{key:s.id,class:"goods-card-box",style:y([{padding:t.data.space+"rpx"}])},{default:n((()=>{var l;return[p(C,{class:"goods-card",size:"sm",goodsFields:t.data.fields,tagStyle:_(a),data:s,titleColor:null==(l=t.data.fields.name)?void 0:l.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>_(x).$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"===_(s)?(r(),d(A,{key:1,class:"goods-box"},{default:n((()=>[(r(!0),w(S,null,B(b.value,((s,o)=>(r(),d(A,{class:"goods-list",key:o,style:y([{marginBottom:_(u)+"px"}])},{default:n((()=>{var o,i;return[p(C,{class:"goods-card",size:"lg",goodsFields:t.data.fields,tagStyle:_(a),data:s,titleColor:null==(o=t.data.fields.name)?void 0:o.color,subTitleColor:null==(i=t.data.fields.introduction)?void 0:i.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>_(x).$router.go("/pages/goods/groupon",{id:s.id,activity_id:e.data.activityId})},{cart:n((()=>[p(R,{class:"ss-reset-button cart-btn",style:y([g.value])},{default:n((()=>{var t;return[f(m("text"===(null==(t=_(l))?void 0:t.type)?_(l).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"]]),Tt=Y({__name:"s-seckill-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=t;let{layoutType:s,tagStyle:a,btnBuy:l,space:u}=e.data;e.styles;const g=C((()=>{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(${x.$url.cdn(t.imgUrl)}) no-repeat`,backgroundSize:"100% 100%"}:void 0})),b=T([]);return F((async()=>{const{data:t}=await st.getSeckillActivity(e.data.activityId),{data:s}=await tt.getSpuDetail(t.spuId);b.value=[s]})),(v,k)=>{const C=o(i("s-goods-column"),q),A=h,R=M;return r(),d(A,null,{default:n((()=>["threeCol"===_(s)?(r(),d(A,{key:0,class:"goods-sm-box ss-flex ss-flex-wrap",style:y([{margin:"-"+t.data.space+"rpx"}])},{default:n((()=>[(r(!0),w(S,null,B(b.value,(s=>(r(),d(A,{key:s.id,class:"goods-card-box",style:y([{padding:t.data.space+"rpx"}])},{default:n((()=>{var l;return[p(C,{class:"goods-card",size:"sm",goodsFields:t.data.fields,tagStyle:_(a),data:s,titleColor:null==(l=t.data.fields.name)?void 0:l.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:k[0]||(k[0]=t=>_(x).$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"===_(s)?(r(),d(A,{key:1,class:"goods-box"},{default:n((()=>[(r(!0),w(S,null,B(b.value,((s,o)=>(r(),d(A,{class:"goods-list",key:o,style:y([{marginBottom:_(u)+"px"}])},{default:n((()=>{var o,i;return[p(C,{class:"goods-card",size:"lg",goodsFields:t.data.fields,tagStyle:_(a),data:s,titleColor:null==(o=t.data.fields.name)?void 0:o.color,subTitleColor:null==(i=t.data.fields.introduction)?void 0:i.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:k[1]||(k[1]=t=>_(x).$router.go("/pages/goods/seckill",{id:e.data.activityId}))},{cart:n((()=>[p(R,{class:"ss-reset-button cart-btn",style:y([g.value])},{default:n((()=>{var t;return[f(m("text"===(null==(t=_(l))?void 0:t.type)?_(l).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"]]),zt=Y({__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=C((()=>({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:x.$url.static("/static/images/living.png"),title:"直播中"},102:{img:x.$url.static("/static/images/start.png"),title:"未开始"},103:{img:x.$url.static("/static/images/ended.png"),title:"已结束"}}}),o=e,i=()=>{o("click")};return(e,s)=>{const o=v,u=h;return r(),d(u,null,{default:n((()=>["md"===t.size?(r(),d(u,{key:0,class:"md-goods-card ss-flex-col",style:y([a.value]),onClick:i},{default:n((()=>[p(u,{class:"icon-box ss-flex"},{default:n((()=>[p(o,{class:"icon",src:l.liveStatus[t.data.status].img},null,8,["src"]),p(u,{class:"title ss-m-l-16"},{default:n((()=>[f(m(l.liveStatus[t.data.status].title),1)])),_:1})])),_:1}),U("img",{class:"md-img-box",src:_(x).$url.cdn(t.data.feeds_img),referrerpolicy:"no-referrer"},null,8,["src"]),p(u,{class:"md-goods-content"},{default:n((()=>[p(u,{class:"md-goods-title ss-line-1",style:y([{color:t.titleColor}])},{default:n((()=>[f(m(t.data.name),1)])),_:1},8,["style"]),p(u,{class:"md-goods-subtitle ss-m-t-14 ss-line-1",style:y([{color:t.subTitleColor}])},{default:n((()=>[f(" 主播:"+m(t.data.anchor_name),1)])),_:1},8,["style"])])),_:1})])),_:1},8,["style"])):c("",!0),"sl"===t.size?(r(),d(u,{key:1,class:"sl-goods-card ss-flex-col",style:y([a.value]),onClick:i},{default:n((()=>[p(u,{class:"icon-box ss-flex"},{default:n((()=>[p(o,{class:"icon",src:l.liveStatus[t.data.status].img},null,8,["src"]),p(u,{class:"title ss-m-l-16"},{default:n((()=>[f(m(l.liveStatus[t.data.status].title),1)])),_:1})])),_:1}),U("img",{class:"sl-img-box",src:_(x).$url.cdn(t.data.feeds_img),referrerpolicy:"no-referrer"},null,8,["src"]),p(u,{class:"sl-goods-content"},{default:n((()=>[p(u,{class:"sl-goods-title ss-line-1",style:y([{color:t.titleColor}])},{default:n((()=>[f(m(t.data.name),1)])),_:1},8,["style"]),p(u,{class:"sl-goods-subtitle ss-m-t-14 ss-line-1",style:y([{color:t.subTitleColor}])},{default:n((()=>[f(" 主播:"+m(t.data.anchor_name),1)])),_:1},8,["style"])])),_:1})])),_:1},8,["style"])):c("",!0)])),_:1})}}},[["__scopeId","data-v-630d95ca"]]),Lt=Y({__name:"s-live-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const e=k({liveList:[],mpLink:""}),s=t,{mode:a,goodsFields:l,mpliveIds:u}=s.data??{};function g(t){N({title:"提示",confirmText:"允许",content:"将打开小程序访问",success:async function(t){t.confirm&&async function(){if(""===e.mpLink){const{error:t,data:s}=await x.$api.app.mplive.getMpLink();0===t&&(e.mpLink=s)}window.location=e.mpLink}()}})}return s.styles,F((async()=>{e.liveList=await async function(t){const{data:e}=await x.$api.app.mplive.getRoomList(t);return e}(u)})),(s,u)=>{const f=o(i("s-live-card"),zt),m=h;return r(),d(m,null,{default:n((()=>[2===_(a)&&e.liveList.length?(r(),d(m,{key:0,class:"goods-md-wrap ss-flex ss-flex-wrap ss-col-top",style:y([{margin:"-"+t.data.space+"rpx"}])},{default:n((()=>[(r(!0),w(S,null,B(e.liveList,(e=>(r(),d(m,{style:y([{padding:t.data.space+"rpx"}]),class:"goods-list-box",key:e.id},{default:n((()=>{var s,a;return[p(f,{class:"goods-md-box",size:"md",goodsFields:_(l),data:e,titleColor:null==(s=_(l).name)?void 0:s.color,subTitleColor:null==(a=_(l).anchor_name)?void 0:a.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>g(e.roomid)},null,8,["goodsFields","data","titleColor","subTitleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1},8,["style"])):c("",!0),1===_(a)&&e.liveList.length?(r(),d(m,{key:1,class:"goods-lg-box"},{default:n((()=>[(r(!0),w(S,null,B(e.liveList,(e=>(r(),d(m,{class:"goods-box",style:y([{marginBottom:t.data.space+"px"}]),key:e.id},{default:n((()=>{var s;return[p(f,{class:"goods-card",size:"sl",goodsFields:_(l),data:e,titleColor:null==(s=_(l).name)?void 0:s.color,subTitleColor:_(l).anchor_name.color,topRadius:t.data.borderRadiusTop,bottomRadius:t.data.borderRadiusBottom,onClick:t=>g(e.roomid)},null,8,["goodsFields","data","titleColor","subTitleColor","topRadius","bottomRadius","onClick"])]})),_:2},1032,["style"])))),128))])),_:1})):c("",!0)])),_:1})}}},[["__scopeId","data-v-56889146"]]),$t=Y({__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){O((e=>({"1cba8317":t.textColor,"0956aa8e":t.btnTextColor,"78bb65bc":t.btnBg})));const e=k({stateMap:{0:"立即领取",1:"去使用"}}),s=t,a=C((()=>({background:s.background})));return(l,o)=>{const i=h,g=M;return r(),d(i,{class:"ui-coupon-wrap"},{default:n((()=>["xs"===s.size?(r(),d(i,{key:0,class:"xs-coupon-card ss-flex ss-flex-col ss-row-between",style:y([a.value]),onClick:o[0]||(o[0]=e=>_(x).$router.go("/pages/coupon/detail",{id:t.couponId}))},{default:n((()=>[p(i,{class:"ss-flex ss-flex-col ss-row-center ss-col-center"},{default:n((()=>[p(i,{class:"face-value-box ss-flex ss-col-bottom ss-m-t-50 ss-m-b-28"},{default:n((()=>[p(i,{class:"value-text ss-m-r-4"},{default:n((()=>[f(m("reduce"===t.type?t.value:Number(t.value)),1)])),_:1}),p(i,{class:"value-unit"},{default:n((()=>[f(m("reduce"===t.type?"元":"折"),1)])),_:1})])),_:1}),p(i,{class:"title-text"},{default:n((()=>[f(m(s.title),1)])),_:1})])),_:1}),p(i,{class:"card-bottom ss-m-b-30 ss-flex ss-row-center"},{default:n((()=>[u(l.$slots,"btn",{},(()=>[p(g,{class:"ss-reset-button card-btn"},{default:n((()=>[f(m(e.stateMap[s.state]),1)])),_:1})]),!0)])),_:3})])),_:3},8,["style"])):c("",!0),"md"===s.size?(r(),d(i,{key:1,class:"md-coupon-card ss-flex ss-row-between",style:y([a.value]),onClick:o[1]||(o[1]=e=>_(x).$router.go("/pages/coupon/detail",{id:t.couponId}))},{default:n((()=>[p(i,{class:"card-left ss-flex ss-flex-col ss-row-between ss-col-top ss-m-l-40"},{default:n((()=>[p(i,{class:"face-value-box ss-flex ss-col-bottom ss-m-t-28"},{default:n((()=>[p(i,{class:"value-text ss-m-r-4"},{default:n((()=>[f(m("reduce"===t.type?t.value:Number(t.value)),1)])),_:1}),p(i,{class:"value-unit"},{default:n((()=>[f(m("reduce"===t.type?"元":"折"),1)])),_:1})])),_:1}),p(i,{class:"ss-m-b-28"},{default:n((()=>[p(i,{class:"title-text ss-m-b-10"},{default:n((()=>[f(m(s.title),1)])),_:1}),s.surplus?(r(),d(i,{key:0,class:"surplus-text"},{default:n((()=>[f("仅剩:"+m(s.surplus)+"张",1)])),_:1})):c("",!0)])),_:1})])),_:1}),p(i,{class:"card-right ss-flex ss-row-center"},{default:n((()=>[u(l.$slots,"btn",{},(()=>[p(g,{class:"ss-reset-button card-btn ss-flex ss-row-center ss-col-center"},{default:n((()=>[p(i,{class:"btn-text"},{default:n((()=>[f(m(e.stateMap[s.state]),1)])),_:1})])),_:1})]),!0)])),_:3})])),_:3},8,["style"])):c("",!0),"lg"===s.size?(r(),d(i,{key:2,class:"lg-coupon-card ss-flex ss-row-between",style:y([a.value]),onClick:o[2]||(o[2]=e=>_(x).$router.go("/pages/coupon/detail",{id:t.couponId}))},{default:n((()=>[p(i,{class:"card-left ss-flex ss-flex-col ss-row-between ss-col-top ss-m-l-40"},{default:n((()=>[p(i,{class:"face-value-box ss-flex ss-col-bottom ss-m-t-28"},{default:n((()=>[p(i,{class:"value-text ss-m-r-4"},{default:n((()=>[f(m("reduce"===t.type?t.value:Number(t.value)),1)])),_:1}),p(i,{class:"value-unit"},{default:n((()=>[f(m("reduce"===t.type?"元":"折"),1)])),_:1})])),_:1}),p(i,{class:"ss-m-b-20"},{default:n((()=>[p(i,{class:"title-text ss-m-b-10"},{default:n((()=>[f(m(s.title),1)])),_:1}),p(i,{class:"sellby-text"},{default:n((()=>[f("有效期:"+m(s.sellBy),1)])),_:1})])),_:1})])),_:1}),p(i,{class:"card-right ss-flex ss-flex-col ss-col-center ss-row-center"},{default:n((()=>[u(l.$slots,"btn",{},(()=>[p(g,{class:"ss-reset-button card-btn ss-flex ss-row-center ss-col-center"},{default:n((()=>[f(m(e.stateMap[s.state]),1)])),_:1})]),!0),s.surplus?(r(),d(i,{key:0,class:"surplus-text ss-m-t-24"},{default:n((()=>[f("仅剩:"+m(s.surplus)+"张",1)])),_:1})):c("",!0)])),_:3})])),_:3},8,["style"])):c("",!0)])),_:3})}}},[["__scopeId","data-v-0533717a"]]),jt=Y({__name:"s-coupon-block",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(s){const a=s,{columns:l,button:u}=a.data,c=["lg","md","xs"],g={background:`url(${x.$url.cdn(a.data.bgImg)}) no-repeat top center / 100% 100%`},m={background:u.bgColor,color:u.color},b=e=>e.discountType===at.PRICE.type?t(e.discountPrice):e.discountType===at.PERCENT.type?e.discountPercent:`未知【${e.discountType}】`,v=T([]);async function k(t){const{error:e,msg:s}=await G.takeCoupon(t);0!==e?await C():W({title:s,icon:"none"})}const C=async()=>{const{data:t}=await G.getCouponTemplateListByIds(a.data.couponIds.join(","));v.value=t};return F((()=>{C()})),(t,a)=>{const u=h,x=M,C=o(i("su-coupon"),$t),A=P;return r(),d(A,{class:"scroll-box","scroll-x":"","scroll-anchoring":""},{default:n((()=>[p(u,{class:"coupon-box ss-flex"},{default:n((()=>[(r(!0),w(S,null,B(v.value,((t,a)=>(r(),d(u,{class:"coupon-item",style:y([g,{marginLeft:`${s.data.space}px`}]),key:a},{default:n((()=>{return[p(C,{size:c[_(l)-1],textColor:s.data.textColor,background:"",couponId:t.id,title:t.name,type:(o=t,o.discountType===at.PRICE.type?"reduce":o.discountType===at.PERCENT.type?"percent":`未知【${o.discountType}】`),value:b(t),sellBy:(a=t,a.validityType===lt.DATE.type?`${e(a.validStartTime)} 至 ${e(a.validEndTime)}`:a.validityType===lt.TERM.type?`领取后第 ${a.fixedStartTerm} - ${a.fixedEndTerm} 天内可用`:"未知【"+a.validityType+"】")},{btn:n((()=>[2===_(l)?(r(),d(x,{key:0,onClick:L((e=>k(t.id)),["stop"]),class:"ss-reset-button card-btn vertical",style:y([m])},{default:n((()=>[p(u,{class:"btn-text"},{default:n((()=>[f("立即领取")])),_:1})])),_:2},1032,["onClick","style"])):(r(),d(x,{key:1,class:"ss-reset-button card-btn",style:y([m]),onClick:L((e=>k(t.id)),["stop"])},{default:n((()=>[f(" 立即领取 ")])),_:2},1032,["style","onClick"]))])),_:2},1032,["size","textColor","couponId","title","type","value","sellBy"])];var a,o})),_:2},1032,["style"])))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-8f010012"]]),Dt={__name:"s-richtext-block",props:{data:{type:Object,default:{}},styles:{type:Object,default(){}}},setup(t){const e=t,s=k({content:""});return F((async()=>{const{data:t}=await it.getArticle(e.data.id);s.content=t.content})),(e,a)=>{const l=o(i("mp-html"),ot),u=h;return r(),d(u,{style:y([{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:n((()=>[p(l,{class:"richtext",content:s.content},null,8,["content"])])),_:1},8,["style"])}}},Et=Y({__name:"s-user-card",props:{background:{type:String,default:""},avatar:{type:String,default:""},nickname:{type:String,default:"请登录"},username:{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=C((()=>x.$store("user").userInfo)),s=C((()=>x.$store("user").isLogin));return(a,l)=>{const o=v,i=h,u=M;return r(),d(i,{class:"ss-user-info-wrap ss-p-t-50"},{default:n((()=>[p(i,{class:"ss-flex ss-col-center ss-row-between ss-m-b-20"},{default:n((()=>[p(i,{class:"left-box ss-flex ss-col-center ss-m-l-36"},{default:n((()=>[p(i,{class:"avatar-box ss-m-r-24"},{default:n((()=>[p(o,{class:"avatar-img",src:s.value?_(x).$url.cdn(e.value.avatar):_(x).$url.static("/static/images/default_avatar.png"),mode:"aspectFill",onClick:l[0]||(l[0]=t=>_(x).$router.go("/pages/user/info"))},null,8,["src"])])),_:1}),p(i,null,{default:n((()=>[p(i,{class:"nickname-box ss-flex ss-col-center"},{default:n((()=>[p(i,{class:"nick-name ss-m-r-20"},{default:n((()=>{var s;return[f(m((null==(s=e.value)?void 0:s.nickname)||t.nickname),1)]})),_:1})])),_:1}),p(i,{class:"user-name ss-m-t-5"},{default:n((()=>{var s;return[f("用户名:"+m((null==(s=e.value)?void 0:s.username)||t.username),1)]})),_:1})])),_:1})])),_:1}),p(i,{class:"right-box ss-m-r-30"},{default:n((()=>[p(u,{class:"ss-reset-button",onClick:l[1]||(l[1]=t=>_(x).$router.go("/pages/user/setting"))},{default:n((()=>[p(o,{src:"data:image/png;base64,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",class:"audioPaly",style:{width:"40rpx",height:"40rpx"}})])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-d7577db9"]]),Ft=Y({__name:"s-order-card",setup(t){const e=[{title:"待付款",value:"1",icon:"/static/images/no_pay.png",path:"/pages/order/list",type:"unpaid",count:"unpaidCount"},{title:"待发货",value:"2",icon:"/static/images/change_order.png",path:"/pages/order/list",type:"undelivered",count:"undeliveredCount"},{title:"待收货",value:"3",icon:"/static/images/no_take.png",path:"/pages/order/list",type:"noget",count:"deliveredCount"},{title:"待评价",value:"4",icon:"/static/images/no_comment.png",path:"/pages/order/list",type:"nocomment",count:"uncommentedCount"},{title:"全部订单",value:"0",icon:"/static/images/all_order.png",path:"/pages/order/list"}],s=C((()=>x.$store("user").numData));return(t,a)=>{const l=v,u=o(i("uni-badge"),dt),c=h;return r(),d(c,{class:"ss-order-menu-wrap ss-flex ss-col-center"},{default:n((()=>[(r(),w(S,null,B(e,(t=>p(c,{class:"menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center",key:t.title,onClick:e=>_(x).$router.go(t.path,{type:t.value})},{default:n((()=>[p(u,{class:"uni-badge-left-margin",text:s.value.orderCount[t.count],absolute:"rightTop",size:"small"},{default:n((()=>[p(l,{class:"item-icon",src:_(x).$url.static(t.icon),mode:"aspectFit"},null,8,["src"])])),_:2},1032,["text"]),p(c,{class:"menu-title ss-m-t-28"},{default:n((()=>[f(m(t.title),1)])),_:2},1024)])),_:2},1032,["onClick"]))),64))])),_:1})}}},[["__scopeId","data-v-5ede6581"]]),Mt=Y({__name:"s-wallet-card",setup(t){const e=k({showProtocol:!1,navIndex:0}),a=C((()=>x.$store("user").userWallet));C((()=>x.$store("user").userInfo)),C((()=>x.$store("user").numData));const l=C((()=>{if(!a.value.socialStatusPoint&&!a.value.socialStatusPoint)return"0%";return a.value.socialStatusPoint/(a.value.socialStatusPoint+a.value.socialUpNeed)*100+"%"})),u=()=>{e.showProtocol=!1};function b(t){e.navIndex=t}return(t,v)=>{const k=h,C=P,w=o(i("su-popup"),V);return r(),d(k,null,{default:n((()=>[p(k,{class:"progress-box",onClick:v[0]||(v[0]=t=>e.showProtocol=!0)},{default:n((()=>[p(k,{class:"progress-container"},{default:n((()=>[p(k,{class:"progress-bar",style:y({width:l.value})},null,8,["style"]),p(k,{class:"progress-text"},{default:n((()=>[f(m(a.value.socialStatusLevel||"无等级"),1)])),_:1})])),_:1})])),_:1}),p(k,{class:"ss-wallet-menu-wrap ss-flex ss-col-center"},{default:n((()=>[p(k,{class:"menu-item ss-flex-1 ss-flex-col ss-col-center ss-row-center",onClick:v[1]||(v[1]=t=>_(x).$router.go("/pages/user/wallet/score"))},{default:n((()=>[p(k,{class:"value-box"},{default:n((()=>[p(k,{class:"value-text"},{default:n((()=>[f("积分")])),_:1})])),_:1}),p(k,{class:"menu-title ss-m-t-15"},{default:n((()=>[f("可用:"+m(_(s)(a.value.integralDO.currentQuota)),1)])),_:1}),p(k,{class:"menu-title ss-m-t-15"},{default:n((()=>[f("待确权:"+m(_(s)(a.value.integralDO.freezeQuota)),1)])),_:1})])),_:1}),p(k,{class:"menu-item ss-flex-1 ss-flex-col ss-col-center ss-row-center",onClick:v[2]||(v[2]=t=>_(x).$router.go("/pages/user/wallet/team"))},{default:n((()=>[p(k,{class:"value-box"},{default:n((()=>[p(k,{class:"value-text"},{default:n((()=>[f("团队")])),_:1})])),_:1}),p(k,{class:"menu-title ss-m-t-15"},{default:n((()=>[f(m(a.value.descNo)+"人",1)])),_:1})])),_:1})])),_:1}),p(w,{show:e.showProtocol,type:"center",round:"10",isMaskClick:!1,showClose:"",onClose:u},{default:n((()=>[p(k,{class:"head-nav"},{default:n((()=>[p(k,{class:g([0==e.navIndex?"activite":"","ss-m-l-20"]),onClick:v[3]||(v[3]=t=>b(0))},{default:n((()=>[f(" 身价产生规则 ")])),_:1},8,["class"]),p(k,{class:g([1==e.navIndex?"activite":"","ss-m-l-20"]),onClick:v[4]||(v[4]=t=>b(1))},{default:n((()=>[f(" 身价权益 ")])),_:1},8,["class"])])),_:1}),p(C,{class:"scroll-view_H","scroll-y":"true"},{default:n((()=>[0==e.navIndex?(r(),d(_(rt),{key:0,title:"身价产生规则",type:"tab"})):c("",!0),1==e.navIndex?(r(),d(_(rt),{key:1,title:"身价权益",type:"tab"})):c("",!0)])),_:1})])),_:1},8,["show"])])),_:1})}}},[["__scopeId","data-v-e398afa3"]]),Pt=Y({__name:"s-coupon-card",props:{list:{type:Array,default:()=>[{title:"已领取",value:"0",icon:"/static/images/nouse_coupon.png",path:"/pages/coupon/list",type:"geted"},{title:"已使用",value:"0",icon:"/static/images/useend_coupon.png",path:"/pages/coupon/list",type:"used"},{title:"已失效",value:"0",icon:"/static/images/out_coupon.png",path:"/pages/coupon/list",type:"expired"},{title:"领券中心",value:"0",icon:"/static/images/all_coupon.png",path:"/pages/coupon/list",type:"all"}]}},setup(t){const e=t;return(t,s)=>{const a=v,l=h;return r(),d(l,{class:"ss-coupon-menu-wrap ss-flex ss-col-center"},{default:n((()=>[(r(!0),w(S,null,B(e.list,(t=>(r(),d(l,{class:g(["menu-item ss-flex-col ss-row-center ss-col-center","all"===t.type?"menu-wallet":"ss-flex-1"]),key:t.title,onClick:e=>_(x).$router.go(t.path,{type:t.type})},{default:n((()=>[p(a,{class:"item-icon",src:_(x).$url.static(t.icon),mode:"aspectFit"},null,8,["src"]),p(l,{class:"menu-title ss-m-t-28"},{default:n((()=>[f(m(t.title),1)])),_:2},1024)])),_:2},1032,["onClick","class"])))),128))])),_:1})}}},[["__scopeId","data-v-88613dde"]]),Ut={__name:"s-block-item",props:{type:{type:String,default:""},data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup:t=>(e,s)=>{const l=o(i("s-search-block"),a),u=o(i("s-notice-block"),ut),p=o(i("s-menu-button"),ct),g=o(i("s-menu-list"),pt),y=o(i("s-menu-grid"),ft),f=o(i("s-popup-image"),mt),m=o(i("s-float-menu"),ht),b=o(i("s-image-block"),_t),_=o(i("s-image-banner"),xt),x=o(i("s-title-block"),vt),v=o(i("s-image-cube"),kt),k=o(i("s-video-block"),Ct),C=o(i("s-line-block"),St),w=o(i("s-hotzone-block"),Bt),S=o(i("s-goods-card"),At),B=o(i("s-goods-shelves"),Rt),A=o(i("s-groupon-block"),It),R=o(i("s-seckill-block"),Tt),I=o(i("s-live-block"),Lt),T=o(i("s-coupon-block"),jt),z=o(i("s-richtext-block"),Dt),L=o(i("s-user-card"),Et),$=o(i("s-order-card"),Ft),j=o(i("s-wallet-card"),Mt),D=o(i("s-coupon-card"),Pt),E=h;return r(),d(E,null,{default:n((()=>["SearchBar"===t.type?(r(),d(l,{key:0,data:t.data,styles:t.styles,navbar:!1},null,8,["data","styles"])):c("",!0),"NoticeBar"===t.type?(r(),d(u,{key:1,data:t.data},null,8,["data"])):c("",!0),"MenuSwiper"===t.type?(r(),d(p,{key:2,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"MenuList"===t.type?(r(),d(g,{key:3,data:t.data},null,8,["data"])):c("",!0),"MenuGrid"===t.type?(r(),d(y,{key:4,data:t.data},null,8,["data"])):c("",!0),"Popover"===t.type?(r(),d(f,{key:5,data:t.data},null,8,["data"])):c("",!0),"FloatingActionButton"===t.type?(r(),d(m,{key:6,data:t.data},null,8,["data"])):c("",!0),"ImageBar"===t.type?(r(),d(b,{key:7,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"Carousel"===t.type?(r(),d(_,{key:8,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"TitleBar"===t.type?(r(),d(x,{key:9,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"MagicCube"===t.type?(r(),d(v,{key:10,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"VideoPlayer"===t.type?(r(),d(k,{key:11,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"Divider"===t.type?(r(),d(C,{key:12,data:t.data},null,8,["data"])):c("",!0),"HotZone"===t.type?(r(),d(w,{key:13,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"ProductCard"===t.type?(r(),d(S,{key:14,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"ProductList"===t.type?(r(),d(B,{key:15,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"PromotionCombination"===t.type?(r(),d(A,{key:16,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"PromotionSeckill"===t.type?(r(),d(R,{key:17,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"MpLive"===t.type?(r(),d(I,{key:18,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"CouponCard"===t.type?(r(),d(T,{key:19,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"PromotionArticle"===t.type?(r(),d(z,{key:20,data:t.data,styles:t.styles},null,8,["data","styles"])):c("",!0),"UserCard"===t.type?(r(),d(L,{key:21})):c("",!0),"UserOrder"===t.type?(r(),d($,{key:22,data:t.data},null,8,["data"])):c("",!0),"UserWallet"===t.type?(r(),d(j,{key:23})):c("",!0),"UserCoupon"===t.type?(r(),d(D,{key:24})):c("",!0)])),_:1})}},Nt={__name:"s-block",props:{styles:{type:Object,default(){}}},setup(t){const e=t,s=C((()=>{if(e.styles){if("color"===e.styles.bgType)return{background:e.styles.bgColor};if("img"===e.styles.bgType)return{background:`url(${x.$url.cdn(e.styles.bgImage)}) no-repeat top center / 100% auto`}}})),a=C((()=>{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=h;return r(),d(l,{style:y([a.value,s.value])},{default:n((()=>[u(t.$slots,"default")])),_:3},8,["style"])}}};export{Ut as _,Nt as a};