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-kw-tZ77g.js";import{a as x,b as j}from"./s-menu-tools.4dScmyfV.js";import{_ as b,a as f}from"./s-block.DW84xN_Y.js";import{_ as $}from"./s-tabbar.RrHIPgnx.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.CIEUJaOO.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.DqENk7PU.js";import"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-layout.CFD14jWZ.js";import"./useGoods.CD6Odl8W.js";import"./phone-international-input.pGH-amlt.js";import"./uni-list.ColC5mCL.js";import"./uni-badge.xRC3wI6l.js";import"./su-image.CulOuRDf.js";import"./s-image-banner.DiqfINc6.js";import"./su-swiper.sAArN6hI.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.DWFK8Tjf.js";import"./s-goods-column.EgXWvgT4.js";import"./points.DDTOnulC.js";/* empty css */import"./uni-load-more._XtxWuU1.js";/* empty css *//* empty css */import"./const.BrwcfqKn.js";import"./mp-html.7QTl5sDI.js";import"./pages-public-richtext.CEhSSk4T.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};
|