import{_ as s}from"./uv-navbar.c519dc25.js";import{O as t,o as e,j as a,w as i,G as o,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 y,l as j,A as g}from"./index-9bec188e.js";import{_ as b}from"./uv-sticky.2d93d618.js";import{_ as k}from"./uv-count-down.f054f6ae.js";import{_ as x}from"./goods.1796f368.js";import{_ as h}from"./layout.62460c6d.js";import{e as w}from"./product.0ff691f6.js";import{u as F}from"./useActivity.8194a6a0.js";import{L as A,a as I}from"./index.afd705a5.js";import{V as L,F as C}from"./images.52fc6216.js";import{E as H}from"./index.036a38bb.js";import"./index.2f3cf70a.js";import{_ as E}from"./_plugin-vue_export-helper.1b428a4d.js";import"./uv-status-bar.6dc37cad.js";/* empty css                                                                      */import"./uv-icon.27c7246d.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.1b208e51.js";import"./uv-button.9242bdc2.js";import"./uv-loading-icon.bfbe6dc1.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.96595f56.js";import"./uv-image.6bda10b1.js";import"./uv-transition.b971e856.js";import"./createAnimation.e5fefaf6.js";import"./space.a9e7e18e.js";import"./useInterface.982c71ba.js";import"./index.9b540af7.js";/* empty css                                                               */const G=E({__name:"discount",setup(E){const{refresh:G,dataList:B,loading:P,loadend:S,listEmpty:T,otherQuery:q,activeIndex:z,timesList:D,timeChange:M,countDownFinish:N,handleGetTimeList:O}=F(w);return t((async s=>{q.value={type:3},await O()})),(t,w)=>{const F=o(d("uv-navbar"),s),E=o(d("uv-sticky"),b),G=c,q=v,O=g,Q=o(d("uv-count-down"),k),V=o(d("goods"),x),W=o(d("layout"),h);return e(),a(W,null,{default:i((()=>[r(E,{customNavHeight:"0"},{default:i((()=>[r(F,{fixed:!1,safeAreaInsetTop:!0,autoBack:"",title:"折扣专区"})])),_:1}),r(q,{class:"swiper"},{default:i((()=>[r(G,{class:"image",src:u(L),mode:"widthFix"},null,8,["src"])])),_:1}),r(q,{class:"time-bar"},{default:i((()=>[(e(!0),n(l,null,_(u(D),((s,t)=>(e(),n("div",{class:f(["time-bar-item",u(z)===t&&"on"]),key:t,onClick:e=>u(M)(s,t)},[y("div",{class:"time"},j(s.time),1),y("div",{class:"status"},[0===s.status?(e(),a(O,{key:0},{default:i((()=>[m("已结束")])),_:1})):p("",!0),1===s.status?(e(),a(O,{key:1},{default:i((()=>[m("抢购中")])),_:1})):p("",!0),2===s.status?(e(),a(O,{key:2},{default:i((()=>[m("未开始")])),_:1})):p("",!0)]),1===s.status?(e(),n("div",{key:0,class:"countdown"},[r(O,null,{default:i((()=>[m("已结束")])),_:1}),r(Q,{time:s.countdown,format:"HH:mm:ss",onFinish:u(N)},null,8,["time","onFinish"])])):p("",!0)],10,["onClick"])))),128))])),_:1}),u(T)?(e(),a(H,{key:1,iconSrc:u(C)},{default:i((()=>[m(" 这里空空如也~ ")])),_:1},8,["iconSrc"])):(e(),a(q,{key:0,class:"product-box"},{default:i((()=>[(e(!0),n(l,null,_(u(B),((s,t)=>(e(),a(q,{key:s.id,class:f(["product-item",0===t&&"isFirst"])},{default:i((()=>[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(P)?(e(),a(A,{key:2})):p("",!0),u(S)?(e(),a(I,{key:3})):p("",!0)])),_:1})}}},[["__scopeId","data-v-c82b4ac7"]]);export{G as default};
