1 |
- import{h as e,r as s,v as t,t as o,s as a,o as p,$ as r,c2 as l,C as c,a as i,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-CRW3onsz.js";import{a as I,b as j}from"./s-menu-tools.CNNsOrh3.js";import{_ as f,a as b}from"./s-block.MsfxpHYt.js";import{_ as $}from"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.CiL8L9B_.js";import"./s-layout.vue_vue_type_style_index_0_scoped_c1143e8c_lang.HuwOimZj.js";import"./_plugin-vue_export-helper.BCo6x5W8.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_0f0268ff_lang.Dctrwx6t.js";import"./uni-icons.CkO1HN9g.js";import"./s-search-block.9OtJrST_.js";import"./uni-list.CwF3x2Ye.js";import"./uni-badge.DHvqM2H-.js";import"./su-image.BuaMS5L_.js";import"./s-image-banner.Cl-NI51r.js";import"./su-swiper.D28St6v7.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.BzDm-2iZ.js";import"./s-goods-column.Cvd5M7PN.js";import"./useGoods.Dxoq0xk-.js";/* empty css */import"./uni-load-more.DqGEuLGm.js";/* empty css *//* empty css */import"./const.DbGtMdOP.js";import"./mp-html.B-3YcqpZ.js";import"./pages-public-richtext.BQKo0jqw.js";import"./s-layout.DKC65HXL.js";import"./phone-international-input.vKvR7wTz.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})),c((()=>{})),(e,s)=>{const t=i(n("su-navbar"),I),o=i(n("s-block-item"),f),a=i(n("s-block"),b),p=i(n("s-tabbar"),$),r=i(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};
|