import{_ as s}from"./uv-navbar.31c484ad.js";import{M as a,o as t,c as e,w as o,a as r,u as l,b as i,r as u,F as d,h as m,m as c,g as p,i as f,d as n,S as _,e as j,t as g}from"./index-3714412c.js";import{o as v,r as y}from"./useRouter.f44141c1.js";import{_ as w}from"./uv-sticky.53c0e026.js";import{_ as x}from"./layout.99605750.js";import{_ as k}from"./banner.9c00ef69.js";import{g as b}from"./product.d7200236.js";import{u as h}from"./usePage.b4ec4df0.js";import{G as F}from"./Goods.b9413306.js";import{L as E,a as G}from"./index.17afd7bc.js";import{e as I}from"./收藏.f26ff3a3.js";import{E as L}from"./index.573aa2d3.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.b515a02d.js";import"./uv-icon.c593f91d.js";import"./api.966d6934.js";const H=S({__name:"newGoods",setup(S){const{news:H,refresh:M,dataList:P,loading:A,loadend:B,listEmpty:D}=h(b);v((async s=>{H.value=1,await M()}));const J=a((()=>[{name:"all",data:P.value}]));return(a,v)=>{const b=y(p("uv-navbar"),s),h=y(p("uv-sticky"),w),S=f,H=n,M=_,P=j,N=y(p("layout"),x);return t(),e(N,null,{default:o((()=>[r(h,{customNavHeight:"0"},{default:o((()=>[r(b,{fixed:!1,safeAreaInsetTop:!0,autoBack:"",title:"新品首发"})])),_:1}),r(H,{class:"swiper"},{default:o((()=>[r(P,{class:"swiper",circular:"","indicator-dots":"",autoplay:""},{default:o((()=>[r(M,null,{default:o((()=>[r(H,{class:"swiper-item"},{default:o((()=>[r(S,{class:"image",src:k,mode:"widthFix"})])),_:1})])),_:1}),r(M,null,{default:o((()=>[r(H,{class:"swiper-item"},{default:o((()=>[r(S,{class:"image",src:k,mode:"widthFix"})])),_:1})])),_:1}),r(M,null,{default:o((()=>[r(H,{class:"swiper-item"},{default:o((()=>[r(S,{class:"image",src:k,mode:"widthFix"})])),_:1})])),_:1})])),_:1})])),_:1}),l(D)?(t(),e(L,{key:1,iconSrc:l(I)},{default:o((()=>[m(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(t(),e(H,{key:0,class:"product-box"},{default:o((()=>[(t(!0),i(d,null,u(l(J),(s=>(t(),e(H,{key:s.name,class:"col left-col"},{default:o((()=>[(t(!0),i(d,null,u(s.data,(s=>(t(),e(H,{key:s.id,class:"product-item"},{default:o((()=>[r(F,{goods:s,infoPadding:"10rpx 10rpx"},{options:o((()=>[r(H,{class:"good-bottom"},{default:o((()=>[r(H,{class:"price"},{default:o((()=>[m(" ￥"+g(s.price),1)])),_:2},1024),r(H,{class:"sale"},{default:o((()=>[m(" 仅剩"+g(s.stock)+"件 ",1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["goods"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1})),l(A)?(t(),e(E,{key:2})):c("",!0),l(B)?(t(),e(G,{key:3})):c("",!0)])),_:1})}}},[["__scopeId","data-v-7c5053f0"]]);export{H as default};
