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-X8PNMhkS.js";import{a as x,b as j}from"./s-menu-tools.ArsIXUlO.js";import{_ as b,a as f}from"./s-block.CXkADokO.js";import{_ as $}from"./s-tabbar.CBBx4PGk.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.B2C9lkVq.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.Btmcxmrw.js";import"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-layout.CabBKdO3.js";import"./useGoods.B3RWw6_i.js";import"./phone-international-input.BNFSuQBr.js";import"./uni-list.BPyOh8eP.js";import"./uni-badge.CrHuTAki.js";import"./su-image.D5OmdPZj.js";import"./s-image-banner.BOS65JlO.js";import"./su-swiper.DsFuqhIk.js";import"./s-goods-column.9d6Sk8lq.js";import"./points.DDTOnulC.js";/* empty css */import"./uni-load-more.BvhdfHnf.js";/* empty css *//* empty css */import"./const.Bz2g6bEQ.js";import"./mp-html.Bu0Nh6Lw.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.CTAibQO4.js";import"./pages-public-richtext.c9Yy8tNS.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};
|