1 |
- import{h as t,r as e,v as s,t as o,s as a,o as p,$ as r,bY as l,C as i,a as c,b as n,d as m,w as d,x as u,i as _,e as h,f as y,y as g,z as v,F as I}from"./index-BLALXZJn.js";import{a as x,b as j}from"./s-menu-tools.DpjJNo32.js";import{_ as b,a as f}from"./s-block.v4G31bHJ.js";import{_ as $}from"./s-tabbar.C9ILligM.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.Dmaq6MgA.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.LdNRyayK.js";import"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-layout.BAwB0xOl.js";import"./useGoods.CmDC4iN8.js";import"./phone-international-input.B26l1LU5.js";import"./uni-list.Da1XpJZ7.js";import"./uni-badge.DSGO_4Ou.js";import"./su-image.DGXh9RuR.js";import"./s-image-banner.C3rmN7e3.js";import"./su-swiper.C3qQh-Ey.js";import"./s-goods-column.BH-1yRsl.js";import"./points.DDTOnulC.js";/* empty css */import"./uni-load-more.Duq-4dIV.js";/* empty css *//* empty css */import"./const.C9iDUzuj.js";import"./mp-html.O7GacZey.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.DJ-h-VpH.js";import"./pages-public-richtext.D-gBORI8.js";/* empty css */const U={__name:"index",setup(U){t();const N=e({});e("");const C=s({shopName:"",merchantId:0,shopId:0}),k=e({theme:"red",style:{bgType:"color",bgColor:"#ffffff",color:"#3c3c3c",activeColor:"#1fa380"},items:[{text:o("common.shop_index"),url:"/pages/shop/index",iconUrl:a.$url.static("/static/shopIndex/shopIndex.svg"),activeIconUrl:a.$url.static("/static/shopIndex/shopIndex-active.svg")},{text:o("common.shop_category"),url:"/pages/shop/category",iconUrl:a.$url.static("/static/shopIndex/category.svg"),activeIconUrl:a.$url.static("/static/shopIndex/category-active.svg")},{text:o("common.all_product"),url:"/pages/shop/allproduct",iconUrl:a.$url.static("/static/shopIndex/allProduct.svg"),activeIconUrl:a.$url.static("/static/shopIndex/allProduct-active.svg")}]});return p((async t=>{t.templateId&&a.$store("app").init(t.templateId),t.spm&&r.decryptSpm(t.spm),t.page&&a.$router.go(decodeURIComponent(t.page)),C.merchantId=t.merchantId,C.shopId=t.shopId,C.shopName=t.shopName,k.value.items=k.value.items.map((t=>(t.url=`${t.url}?shopId=${C.shopId}&shopName=${encodeURIComponent(C.shopName)}&merchantId=${C.merchantId}`,t)));const{code:e,data:s}=await l.getPage({shopId:t.shopId,merchantId:t.merchantId});N.value=s.property})),i((()=>{})),(t,e)=>{const s=c(n("su-navbar"),x),o=c(n("s-block-item"),b),a=c(n("s-block"),f),p=c(n("s-tabbar"),$),r=c(n("s-menu-tools"),j),l=_;return N.value?(h(),m(l,{key:0},{default:d((()=>[y(s,{title:C.shopName,statusBar:"",color:t.color,tools:t.tools,opacityBgUi:t.opacityBgUi,onSearch:e[0]||(e[0]=e=>t.emits("search",e)),defaultSearch:t.defaultSearch},null,8,["title","color","tools","opacityBgUi","defaultSearch"]),(h(!0),g(I,null,v(N.value.components,((t,e)=>(h(),m(a,{key:e,styles:t.property.style},{default:d((()=>[y(o,{type:t.id,data:t.property,styles:t.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128)),y(p,{path:"/pages/shop/index",tabbar:k.value},null,8,["tabbar"]),y(r)])),_:1})):u("",!0)}}};export{U as default};
|