import{_ as s}from"./uv-navbar.5b015b6c.js";import{O as a,x as e,o as t,j as o,w as l,G as i,h as r,i as u,e as d,k as _,F as c,I as p,z as n,H as m,p as f,B as v,S as y,q as j,l as x}from"./index-d4baa715.js";import{_ as g}from"./uv-sticky.2c055a66.js";import{_ as w}from"./layout.53ff64f8.js";import{d as k}from"./product.280a3345.js";import{u as b}from"./usePage.48b817d3.js";import{G as h}from"./Goods.ed14922a.js";import{L as F,a as G}from"./index.f7879302.js";import{S,F as E}from"./images.f0a6f614.js";import{E as I}from"./index.7dcbea25.js";import{_ as L}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.c500a724.js";/* empty css                                                                      */import"./uv-icon.b5ddbe11.js";import"./uv-icon.vue_vue_type_style_index_0_scoped_23936b10_lang.7145f5b2.js";import"./uv-navbar.vue_vue_type_style_index_0_scoped_4c301e25_lang.553ed1e6.js";/* empty css                                                               */import"./index.6c6cd02e.js";import"./utils.052a93d2.js";const A=L({__name:"newGoods",setup(L){const{news:A,refresh:B,dataList:H,loading:P,loadend:q,listEmpty:z}=b(k);a((async s=>{A.value=1,await B()}));const C=e((()=>[{name:"all",data:H.value}]));return(a,e)=>{const k=i(m("uv-navbar"),s),b=i(m("uv-sticky"),g),L=f,A=v,B=y,H=j,M=i(m("layout"),w);return t(),o(M,null,{default:l((()=>[r(b,{customNavHeight:"0"},{default:l((()=>[r(k,{fixed:!1,safeAreaInsetTop:!0,autoBack:"",title:"新品首发"})])),_:1}),r(A,{class:"swiper"},{default:l((()=>[r(H,{class:"swiper",circular:"","indicator-dots":"",autoplay:""},{default:l((()=>[r(B,null,{default:l((()=>[r(A,{class:"swiper-item"},{default:l((()=>[r(L,{class:"image",src:u(S),mode:"widthFix"},null,8,["src"])])),_:1})])),_:1}),r(B,null,{default:l((()=>[r(A,{class:"swiper-item"},{default:l((()=>[r(L,{class:"image",src:u(S),mode:"widthFix"},null,8,["src"])])),_:1})])),_:1}),r(B,null,{default:l((()=>[r(A,{class:"swiper-item"},{default:l((()=>[r(L,{class:"image",src:u(S),mode:"widthFix"},null,8,["src"])])),_:1})])),_:1})])),_:1})])),_:1}),u(z)?(t(),o(I,{key:1,iconSrc:u(E)},{default:l((()=>[p(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(t(),o(A,{key:0,class:"product-box"},{default:l((()=>[(t(!0),d(c,null,_(u(C),(s=>(t(),o(A,{key:s.name,class:"col left-col"},{default:l((()=>[(t(!0),d(c,null,_(s.data,(s=>(t(),o(A,{key:s.id,class:"product-item"},{default:l((()=>[r(h,{goods:s,infoPadding:"10rpx 10rpx"},{options:l((()=>[r(A,{class:"good-bottom"},{default:l((()=>[r(A,{class:"price"},{default:l((()=>[p(" ￥"+x(s.price),1)])),_:2},1024),r(A,{class:"sale"},{default:l((()=>[p(" 仅剩"+x(s.stock)+"件 ",1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["goods"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1})),u(P)?(t(),o(F,{key:2})):n("",!0),u(q)?(t(),o(G,{key:3})):n("",!0)])),_:1})}}},[["__scopeId","data-v-d9d1f337"]]);export{A as default};
