1 |
- import{h as e,r as s,v as t,t as o,s as a,o as p,$ as r,b$ as l,C as i,a as c,b as n,d as m,w as d,z as _,i as u,e as h,f as y,x as g,y as v,F as x}from"./index-DNuNVpwk.js";import{a as I,b as j}from"./s-menu-tools.CEs7fo1o.js";import{_ as b,a as f}from"./s-block.CQwnydPl.js";import{_ as $}from"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.nx0iNK_l.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.C_5j2fBR.js";import"./_plugin-vue_export-helper.BCo6x5W8.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.CZSqjCi7.js";import"./uni-icons.BwI1_kKT.js";import"./s-search-block.DtORRFbA.js";import"./uni-list.B9LLe9AY.js";import"./uni-badge.CMavRt5I.js";import"./su-image.CEWkxdrE.js";import"./s-image-banner.CQCofTtk.js";import"./su-swiper.iJtkIP10.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.DLRgampy.js";import"./s-goods-column.DQiGGKS9.js";import"./points.DDTOnulC.js";import"./useGoods.CrGbmvFq.js";/* empty css */import"./uni-load-more.Dn3a6J_F.js";/* empty css *//* empty css */import"./const.BZ3OfWoD.js";import"./mp-html.0mPGjy4W.js";import"./pages-public-richtext.C6SnjpGo.js";import"./s-layout.D9p6eCz-.js";import"./phone-international-input.CCPqViBY.js";/* empty css */const U={__name:"index",setup(U){e();const k=s({});s("");const N=t({shopName:"",merchantId:0,shopId:0}),C=s({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 e=>{e.templateId&&a.$store("app").init(e.templateId),e.spm&&r.decryptSpm(e.spm),e.page&&a.$router.go(decodeURIComponent(e.page)),N.merchantId=e.merchantId,N.shopId=e.shopId,N.shopName=e.shopName,C.value.items=C.value.items.map((e=>(e.url=`${e.url}?shopId=${N.shopId}&shopName=${encodeURIComponent(N.shopName)}&merchantId=${N.merchantId}`,e))),console.log(e);const{code:s,data:t}=await l.getPage({shopId:e.shopId,merchantId:e.merchantId});console.log(t),k.value=t.property})),i((()=>{})),(e,s)=>{const t=c(n("su-navbar"),I),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=u;return k.value?(h(),m(l,{key:0},{default:d((()=>[y(t,{title:N.shopName,statusBar:"",color:e.color,tools:e.tools,opacityBgUi:e.opacityBgUi,onSearch:s[0]||(s[0]=s=>e.emits("search",s)),defaultSearch:e.defaultSearch},null,8,["title","color","tools","opacityBgUi","defaultSearch"]),(h(!0),g(x,null,v(k.value.components,((e,s)=>(h(),m(a,{key:s,styles:e.property.style},{default:d((()=>[y(o,{type:e.id,data:e.property,styles:e.property.style},null,8,["type","data","styles"])])),_:2},1032,["styles"])))),128)),y(p,{path:"/pages/shop/index",tabbar:C.value},null,8,["tabbar"]),y(r)])),_:1})):_("",!0)}}};export{U as default};
|