import{_ as s}from"./uv-navbar.5b015b6c.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-d4baa715.js";import{_ as b}from"./uv-sticky.2c055a66.js";import{_ as k}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{V 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:"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};
