import{h as s,c as t,o as e,s as a,$ as o,a as p,b as i,d as l,e as r,f as n,g as u,w as m,i as d,j as _,k as y,l as c,m as v,t as j,n as g,p as b,r as f,F as x,q as S,u as h}from"./index-007bf156.js";import{_ as k,a as $}from"./s-block.7185b9f8.js";import{_ as w}from"./s-layout.19bedb43.js";import"./phone-international-input.3617e4e0.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./uni-list.eab7382e.js";import"./uni-badge.cf8b6051.js";import"./su-image.d90fd751.js";import"./su-swiper.228e56d7.js";import"./s-goods-column.dca4f2a3.js";import"./points.c381a8e1.js";import"./useGoods.ac3bf93e.js";/* empty css                                                                     */import"./uni-load-more.4c025ab2.js";/* empty css                                                                *//* empty css                                                                      */import"./const.268e8d60.js";import"./mp-html.a102e735.js";import"./pages-public-richtext.73b9c7a6.js";const I={__name:"index",setup(I){s();const q=t((()=>{var s;return null==(s=a.$store("app").template)?void 0:s.home})),A=t((()=>_())),C=t((()=>y()));return e((s=>{s.templateId&&a.$store("app").init(s.templateId),s.spm&&o.decryptSpm(s.spm),s.page&&a.$router.go(decodeURIComponent(s.page)),void 0===s.points&&void 0===s.scoialStatus||p({points:s.points,socialStatus:s.socialStatus})})),i((()=>{a.$store("app").init(),setTimeout((function(){l()}),800)})),r((()=>{})),(s,t)=>{const e=S(h("s-block-item"),k),a=S(h("s-block"),$),o=S(h("s-layout"),w),p=c;return q.value?(n(),u(p,{key:0},{default:m((()=>{var s;return[v(j(A.value)+" "+j(C.value)+" ",1),g(o,{title:"首页",navbar:"custom",tabbar:"/pages/index/index",bgStyle:q.value.page,navbarStyle:null==(s=q.value.style)?void 0:s.navbar,onShareAppMessage:""},{default:m((()=>[(n(!0),b(x,null,f(q.value.components,((s,t)=>(n(),u(a,{key:t,styles:s.property.style},{default:m((()=>[g(e,{type:s.id,data:s.property,styles:s.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128))])),_:1},8,["bgStyle","navbarStyle"])]})),_:1})):d("",!0)}}};export{I as default};
