import{_ as s}from"./uv-navbar.5b015b6c.js";import{O as t,o as e,j as a,w as o,G as i,h as r,i as u,e as n,k as _,F as l,I as m,z as p,H as d,p as c,B as v,m as f,f as j,l as y,A as g}from"./index-d4baa715.js";import{_ as k}from"./uv-sticky.2c055a66.js";import{_ as b}from"./uv-count-down.49c977a7.js";import{_ as x}from"./goods.c9518c7a.js";import{_ as h}from"./layout.53ff64f8.js";import{e as w}from"./product.280a3345.js";import{u as F}from"./useActivity.cd2eac2f.js";import{L as A,a as I}from"./index.f7879302.js";import{U as L,F as C}from"./images.f0a6f614.js";import{E as H}from"./index.7dcbea25.js";import"./index.6c6cd02e.js";import{_ as E}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";import"./uv-line-progress.9ba483c2.js";import"./uv-button.4742932f.js";import"./uv-loading-icon.1a9e10db.js";import"./uv-loading-icon.vue_vue_type_style_index_0_scoped_bad0efbf_lang.8998f762.js";import"./uv-button.vue_vue_type_style_index_0_scoped_bc0e850d_lang.79bfdc50.js";import"./good-attr-select.827f4d84.js";import"./uv-image.cfd78d3c.js";import"./uv-transition.e8fc5cb3.js";import"./createAnimation.a561e009.js";import"./space.587a4c0a.js";import"./useInterface.2c7749ae.js";import"./index.dcf9623e.js";/* empty css                                                               */const G=E({__name:"seckilling",setup(E){const{refresh:G,dataList:B,loading:S,loadend:T,listEmpty:q,otherQuery:z,activeIndex:D,timesList:M,timeChange:N,countDownFinish:O,handleGetTimeList:P}=F(w);return t((async s=>{z.value={type:2},await P()})),(t,w)=>{const F=i(d("uv-navbar"),s),E=i(d("uv-sticky"),k),G=c,z=v,P=g,Q=i(d("uv-count-down"),b),U=i(d("goods"),x),W=i(d("layout"),h);return e(),a(W,null,{default:o((()=>[r(E,{customNavHeight:"0"},{default:o((()=>[r(F,{fixed:!1,safeAreaInsetTop:!0,autoBack:"",title:"秒杀专区"})])),_:1}),r(z,{class:"swiper"},{default:o((()=>[r(G,{class:"image",src:u(L),mode:"widthFix"},null,8,["src"])])),_:1}),r(z,{class:"time-bar"},{default:o((()=>[(e(!0),n(l,null,_(u(M),((s,t)=>(e(),n("div",{class:f(["time-bar-item",u(D)===t&&"on"]),key:t,onClick:e=>u(N)(s,t)},[j("div",{class:"time"},y(s.time),1),j("div",{class:"status"},[0===s.status?(e(),a(P,{key:0},{default:o((()=>[m("已结束")])),_:1})):p("",!0),1===s.status?(e(),a(P,{key:1},{default:o((()=>[m("抢购中")])),_:1})):p("",!0),2===s.status?(e(),a(P,{key:2},{default:o((()=>[m("未开始")])),_:1})):p("",!0)]),1===s.status?(e(),n("div",{key:0,class:"countdown"},[r(P,null,{default:o((()=>[m("已结束")])),_:1}),r(Q,{time:s.countdown,format:"HH:mm:ss",onFinish:u(O)},null,8,["time","onFinish"])])):p("",!0)],10,["onClick"])))),128))])),_:1}),u(q)?(e(),a(H,{key:1,iconSrc:u(C)},{default:o((()=>[m(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(e(),a(z,{key:0,class:"product-box"},{default:o((()=>[(e(!0),n(l,null,_(u(B),((s,t)=>(e(),a(z,{key:s.id,class:"product-item"},{default:o((()=>[r(U,{link:"",data:s,price:s.price,buyProgress:!0,total:!0},null,8,["data","price"])])),_:2},1024)))),128))])),_:1})),u(S)?(e(),a(A,{key:2})):p("",!0),u(T)?(e(),a(I,{key:3})):p("",!0)])),_:1})}}},[["__scopeId","data-v-7863414b"]]);export{G as default};
