import{_ as s}from"./uv-navbar.917fb540.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-90c12cc1.js";import{_ as g}from"./uv-sticky.7ebad6a8.js";import{_ as k}from"./layout.e3de63ac.js";import{d as w}from"./product.4783a646.js";import{u as b}from"./usePage.8865205f.js";import{G as h}from"./Goods.94b8dae8.js";import{L as F,a as G}from"./index.867e23f4.js";import{S,F as B}from"./images.cf3befb9.js";import{E}from"./index.ed915e92.js";import{_ as I}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.acda7a2c.js";/* empty css                                                                      */import"./uv-icon.c815b875.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.d156dd8a.js";import"./utils.80a0ac72.js";const L=I({__name:"newGoods",setup(I){const{news:L,refresh:z,dataList:H,loading:P,loadend:q,listEmpty:A}=b(w);a((async s=>{L.value=1,await z()}));const D=e((()=>[{name:"all",data:H.value}]));return(a,e)=>{const w=i(m("uv-navbar"),s),b=i(m("uv-sticky"),g),I=f,L=v,z=y,H=j,M=i(m("layout"),k);return t(),o(M,null,{default:l((()=>[r(b,{customNavHeight:"0"},{default:l((()=>[r(w,{fixed:!1,safeAreaInsetTop:!0,autoBack:"",title:"新品首发"})])),_:1}),r(L,{class:"swiper"},{default:l((()=>[r(H,{class:"swiper",circular:"","indicator-dots":"",autoplay:""},{default:l((()=>[r(z,null,{default:l((()=>[r(L,{class:"swiper-item"},{default:l((()=>[r(I,{class:"image",src:u(S),mode:"widthFix"},null,8,["src"])])),_:1})])),_:1}),r(z,null,{default:l((()=>[r(L,{class:"swiper-item"},{default:l((()=>[r(I,{class:"image",src:u(S),mode:"widthFix"},null,8,["src"])])),_:1})])),_:1}),r(z,null,{default:l((()=>[r(L,{class:"swiper-item"},{default:l((()=>[r(I,{class:"image",src:u(S),mode:"widthFix"},null,8,["src"])])),_:1})])),_:1})])),_:1})])),_:1}),u(A)?(t(),o(E,{key:1,iconSrc:u(B)},{default:l((()=>[p(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(t(),o(L,{key:0,class:"product-box"},{default:l((()=>[(t(!0),d(c,null,_(u(D),(s=>(t(),o(L,{key:s.name,class:"col left-col"},{default:l((()=>[(t(!0),d(c,null,_(s.data,(s=>(t(),o(L,{key:s.id,class:"product-item"},{default:l((()=>[r(h,{goods:s,infoPadding:"10rpx 10rpx"},{options:l((()=>[r(L,{class:"good-bottom"},{default:l((()=>[r(L,{class:"price"},{default:l((()=>[p(" ￥"+x(s.price),1)])),_:2},1024),r(L,{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{L as default};
