import{_ as s}from"./uv-navbar.59911b60.js";import{y as a,o as e,c as t,w as o,a as r,u as l,b as i,r as u,F as d,h as c,m,g as p,i as _,d as n,S as f,e as v,t as j}from"./index-d76b1e7a.js";import{o as y,r as g}from"./useRouter.2bdb47a0.js";import{_ as x}from"./uv-sticky.44ddc756.js";import{_ as w}from"./layout.f8e9d577.js";import{_ as b}from"./banner.9c00ef69.js";import{g as k}from"./product.b13622dd.js";import{u as h}from"./usePage.e20fbf49.js";import{G as F}from"./Goods.6b69fc1c.js";import{L as S,a as E}from"./index.bfb14c71.js";import{e as G}from"./收藏.f26ff3a3.js";import{E as I}from"./index.81294ba6.js";import{_ as H}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.66ab7702.js";/* empty css                                                                      */import"./uv-icon.5730d4d2.js";import"./uv-navbar.vue_vue_type_style_index_0_scoped_8d8b32e4_lang.3fde2b65.js";import"./api.9246a192.js";const L=H({__name:"newGoods",setup(H){const{news:L,refresh:P,dataList:R,loading:T,loadend:A,listEmpty:B}=h(k);y((async s=>{L.value=1,await P()}));const M=a((()=>[{name:"all",data:R.value}]));return(a,y)=>{const k=g(p("uv-navbar"),s),h=g(p("uv-sticky"),x),H=_,L=n,P=f,R=v,N=g(p("layout"),w);return e(),t(N,null,{default:o((()=>[r(h,{customNavHeight:"0"},{default:o((()=>[r(k,{fixed:!1,safeAreaInsetTop:!0,autoBack:"",title:"新品首发"})])),_:1}),r(L,{class:"swiper"},{default:o((()=>[r(R,{class:"swiper",circular:"","indicator-dots":"",autoplay:""},{default:o((()=>[r(P,null,{default:o((()=>[r(L,{class:"swiper-item"},{default:o((()=>[r(H,{class:"image",src:b,mode:"widthFix"})])),_:1})])),_:1}),r(P,null,{default:o((()=>[r(L,{class:"swiper-item"},{default:o((()=>[r(H,{class:"image",src:b,mode:"widthFix"})])),_:1})])),_:1}),r(P,null,{default:o((()=>[r(L,{class:"swiper-item"},{default:o((()=>[r(H,{class:"image",src:b,mode:"widthFix"})])),_:1})])),_:1})])),_:1})])),_:1}),l(B)?(e(),t(I,{key:1,iconSrc:l(G)},{default:o((()=>[c(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(e(),t(L,{key:0,class:"product-box"},{default:o((()=>[(e(!0),i(d,null,u(l(M),(s=>(e(),t(L,{key:s.name,class:"col left-col"},{default:o((()=>[(e(!0),i(d,null,u(s.data,(s=>(e(),t(L,{key:s.id,class:"product-item"},{default:o((()=>[r(F,{goods:s,infoPadding:"10rpx 10rpx"},{options:o((()=>[r(L,{class:"good-bottom"},{default:o((()=>[r(L,{class:"price"},{default:o((()=>[c(" ￥"+j(s.price),1)])),_:2},1024),r(L,{class:"sale"},{default:o((()=>[c(" 仅剩"+j(s.stock)+"件 ",1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["goods"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1})),l(T)?(e(),t(S,{key:2})):m("",!0),l(A)?(e(),t(E,{key:3})):m("",!0)])),_:1})}}},[["__scopeId","data-v-c1a379dc"]]);export{L as default};
