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-BMyxVMbF.js";import{a as I,b as j}from"./s-menu-tools.BS-sy7yW.js";import{_ as b,a as f}from"./s-block.DOoKrT1e.js";import{_ as $}from"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.uDphw_n5.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.W0aeD08g.js";import"./_plugin-vue_export-helper.BCo6x5W8.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.CcjAPXa7.js";import"./uni-icons.DIbeqKDq.js";import"./s-search-block._qoMdfrT.js";import"./uni-list.CsB8OZBz.js";import"./uni-badge.Cg8vjbxX.js";import"./su-image.Ntqa4ut8.js";import"./s-image-banner.Cif7DA5W.js";import"./su-swiper.9-bLgshq.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.BqLkAD2k.js";import"./s-goods-column.Cd9kDGwM.js";import"./points.DDTOnulC.js";import"./useGoods.BVTCuxZo.js";/* empty css */import"./uni-load-more.DdHp2CCp.js";/* empty css *//* empty css */import"./const.C5lasz75.js";import"./mp-html.B3S_vHae.js";import"./pages-public-richtext.Cwh84fSA.js";import"./s-layout.CpS5AI4B.js";import"./phone-international-input.DwHEWXPw.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};
|