import{g as s,r as e,c as t,s as a,a as o,b as l,d as r,o as p,e as n,w as i,f as u,F as d,h as m,u as c,i as _,j as y,k as v,l as g,m as b,n as f,p as h,$ as j,q as k,t as w,v as x}from"./index-520dfaee.js";import{_ as S,a as C}from"./s-block.321f998a.js";import{_ as $,a as I}from"./s-layout.5146c957.js";import{_ as F}from"./_plugin-vue_export-helper.1b428a4d.js";import"./su-image.ba5fb633.js";import"./su-swiper.9f671df5.js";import"./uni-list-item.7e908453.js";import"./uni-list.39b1057f.js";import"./s-goods-column.9bd716a4.js";import"./useGoods.7c6b9280.js";/* empty css                                                                     */import"./uni-load-more.ba4f287c.js";/* empty css                                                                *//* empty css                                                                      */import"./s-score-card.470ae7b0.js";import"./mp-html.30fd211a.js";const M=F({__name:"s-popup-image",setup(f){const h=JSON.parse(s("modal-store")||"{}").advHistory||[],j=e(0),k=t((()=>{var s,e;const t=(null==(e=null==(s=a.$store("app").template.basic)?void 0:s.popupImage)?void 0:e.list)||[],l=[];return t.length>0&&t.forEach((s=>{1===s.show&&h.includes(s.src)?s.isShow=!1:(s.isShow=!0,l.push(s)),o(s)})),l}));return(s,e)=>{const t=g,o=b,f=l(r("su-popup"),$);return p(),n(o,null,{default:i((()=>[(p(!0),u(d,null,m(c(k),((s,e)=>(p(),n(o,{key:s.src},{default:i((()=>[e===j.value?(p(),n(f,{key:0,show:s.isShow,type:"center",backgroundColor:"none",round:"0",showClose:!0,isMaskClick:!1,onClose:s=>function(s){j.value=s+1,k.value[s].isShow=!1}(e)},{default:i((()=>[_(o,{class:"img-box"},{default:i((()=>[_(t,{class:"modal-img",src:c(a).$url.cdn(s.src),mode:"widthFix",onClick:y((e=>{return t=s.url,void a.$router.go(t);var t}),["stop"])},null,8,["src","onClick"])])),_:2},1024)])),_:2},1032,["show","onClose"])):v("",!0)])),_:2},1024)))),128))])),_:1})}}},[["__scopeId","data-v-fcdc831a"]]),q={__name:"index",setup(s){f();const e=t((()=>{var s;return null==(s=a.$store("app").template)?void 0:s.home}));return h((s=>{s.templateId&&a.$store("app").init(s.templateId),s.spm&&j.decryptSpm(s.spm),s.page&&a.$router.go(decodeURIComponent(s.page))})),k((()=>{a.$store("app").init(),setTimeout((function(){w()}),800)})),x((()=>{})),(s,t)=>{const a=l(r("s-block-item"),S),o=l(r("s-block"),C),y=l(r("s-popup-image"),M),g=l(r("s-layout"),I),f=b;return c(e)?(p(),n(f,{key:0},{default:i((()=>{var s,t;return[_(g,{title:"首页",navbar:"custom",tabbar:"/pages/index/index",bgStyle:null==(s=c(e).style)?void 0:s.background,navbarStyle:null==(t=c(e).style)?void 0:t.navbar,onShareAppMessage:""},{default:i((()=>[(p(!0),u(d,null,m(c(e).data,((s,e)=>(p(),n(o,{key:e,styles:s.style},{default:i((()=>[_(a,{type:s.type,data:s.data,styles:s.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128)),_(y)])),_:1},8,["bgStyle","navbarStyle"])]})),_:1})):v("",!0)}}};export{q as default};
