import{_ as s}from"./uv-navbar.917fb540.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 d,H as p,p as c,B as v,m as y,f,l as j,A as g}from"./index-90c12cc1.js";import{_ as k}from"./uv-sticky.7ebad6a8.js";import{_ as b}from"./uv-count-down.5c9a7268.js";import{_ as x}from"./goods.6639d2a3.js";import{_ as h}from"./layout.e3de63ac.js";import{e as F}from"./product.4783a646.js";import{u as w}from"./useActivity.f4573bb3.js";import{L as I,a as L}from"./index.867e23f4.js";import{V as H,F as A}from"./images.cf3befb9.js";import{E as B}from"./index.ed915e92.js";import"./index.d156dd8a.js";import{_ as C}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";import"./uv-line-progress.f06101e5.js";import"./uv-button.8e862d87.js";import"./uv-loading-icon.ad70964c.js";import"./uv-loading-icon.vue_vue_type_style_index_0_scoped_bad0efbf_lang.de7e0d02.js";import"./uv-button.vue_vue_type_style_index_0_scoped_bc0e850d_lang.79bfdc50.js";import"./good-attr-select.3f64fa6c.js";import"./uv-image.b3f882de.js";import"./space.af0e7a6e.js";import"./useInterface.bd4f041a.js";import"./index.188c29d6.js";/* empty css                                                               */const E=C({__name:"discount",setup(C){const{refresh:E,dataList:z,loading:D,loadend:G,listEmpty:P,otherQuery:S,activeIndex:T,timesList:q,timeChange:M,countDownFinish:N,handleGetTimeList:O}=w(F);return t((async s=>{S.value={type:3},await O()})),(t,F)=>{const w=i(p("uv-navbar"),s),C=i(p("uv-sticky"),k),E=c,S=v,O=g,Q=i(p("uv-count-down"),b),V=i(p("goods"),x),W=i(p("layout"),h);return e(),a(W,null,{default:o((()=>[r(C,{customNavHeight:"0"},{default:o((()=>[r(w,{fixed:!1,safeAreaInsetTop:!0,autoBack:"",title:"折扣专区"})])),_:1}),r(S,{class:"swiper"},{default:o((()=>[r(E,{class:"image",src:u(H),mode:"widthFix"},null,8,["src"])])),_:1}),r(S,{class:"time-bar"},{default:o((()=>[(e(!0),n(l,null,_(u(q),((s,t)=>(e(),n("div",{class:y(["time-bar-item",u(T)===t&&"on"]),key:t,onClick:e=>u(M)(s,t)},[f("div",{class:"time"},j(s.time),1),f("div",{class:"status"},[0===s.status?(e(),a(O,{key:0},{default:o((()=>[m("已结束")])),_:1})):d("",!0),1===s.status?(e(),a(O,{key:1},{default:o((()=>[m("抢购中")])),_:1})):d("",!0),2===s.status?(e(),a(O,{key:2},{default:o((()=>[m("未开始")])),_:1})):d("",!0)]),1===s.status?(e(),n("div",{key:0,class:"countdown"},[r(O,null,{default:o((()=>[m("已结束")])),_:1}),r(Q,{time:s.countdown,format:"HH:mm:ss",onFinish:u(N)},null,8,["time","onFinish"])])):d("",!0)],10,["onClick"])))),128))])),_:1}),u(P)?(e(),a(B,{key:1,iconSrc:u(A)},{default:o((()=>[m(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(e(),a(S,{key:0,class:"product-box"},{default:o((()=>[(e(!0),n(l,null,_(u(z),((s,t)=>(e(),a(S,{key:s.id,class:y(["product-item",0===t&&"isFirst"])},{default:o((()=>[r(V,{link:"",hasFirst:0===t,data:s,price:s.price,buyProgress:0===t,original:!0,total:0!==t},null,8,["hasFirst","data","price","buyProgress","total"])])),_:2},1032,["class"])))),128))])),_:1})),u(D)?(e(),a(I,{key:2})):d("",!0),u(G)?(e(),a(L,{key:3})):d("",!0)])),_:1})}}},[["__scopeId","data-v-c82b4ac7"]]);export{E as default};
