pages-shop-index.Drigzl3-.js 3.3 KB

1
  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-BQrTen7m.js";import{a as x,b as j}from"./s-menu-tools.BvmfAPX1.js";import{_ as b,a as f}from"./s-block.BA0-cpx-.js";import{_ as $}from"./s-tabbar.C7WctdFu.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.CpBhnmZI.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.C3B74uio.js";import"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-layout.Drn8I1SB.js";import"./useGoods.lQfNAxN4.js";import"./phone-international-input.BYl8fxMN.js";import"./uni-list.Bx1qhtDF.js";import"./uni-badge.CYKF-JO9.js";import"./su-image.D-hIOncW.js";import"./s-image-banner.CWHkldYM.js";import"./su-swiper.Cyvdjai3.js";import"./s-goods-column.Bliins3L.js";import"./points.DDTOnulC.js";/* empty css */import"./uni-load-more.CQi0J97H.js";/* empty css *//* empty css */import"./const.CMLdOkYo.js";import"./mp-html.DQQ7ppHa.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.c-q6Zlwo.js";import"./pages-public-richtext.Brl_ZYoU.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};