import{ap as B,h as E,a5 as I,a4 as w}from"./element-plus-yhtdTbPD.js";import{_ as C,u as D,j as L}from"./index-D5k4QILW.js";/* empty css                    *//* empty css                   *//* empty css                       */import{aA as P,r as n,L as i,P as o,M as a,O as r,Z as S,u as c,H as l,F as A,ab as F}from"./vue-vendor-C1ve1r-r.js";const H={class:"promotion-page"},N={style:{"background-color":"#1e1e1e",padding:"16px 10px","border-radius":"6px"}},R={class:"text-large font-600 mr-3"},V={class:"promotion-page-list"},j={class:"promotion-page-list-item"},q=["onClick"],M={__name:"index",setup(O){const{t:m}=D(),p=P(),d=n(null),_=n([]),t=n(!0);function g(){t.value=!0,L({type:3}).then(e=>{var s;_.value=e.data.list||[],(s=d.value)==null||s.complete(!0),t.value=!1}).catch(()=>{var e;(e=d.value)==null||e.complete(!0),t.value=!1})}function h(e){p.push({name:"PromotionDetail",query:{id:e.id}})}function f(){p.back()}return g(),(e,s)=>{const v=B,k=I,x=E,y=w;return l(),i("div",H,[o("div",N,[a(v,{onBack:f},{content:r(()=>[o("span",R,S(c(m)("优惠活动")),1)]),_:1})]),o("div",V,[a(y,{loading:c(t),animated:"",count:4},{template:r(()=>[o("div",j,[a(k,{variant:"image",style:{width:"100%",height:"180px","border-radius":"8px"}})])]),default:r(()=>[(l(!0),i(A,null,F(c(_),(u,b)=>(l(),i("div",{class:"promotion-page-list-item",key:b,onClick:Q=>h(u)},[a(x,{src:u.pc_image,style:{width:"100%","border-radius":"8px"}},null,8,["src"])],8,q))),128))]),_:1},8,["loading"])])])}}},T=C(M,[["__scopeId","data-v-392a40d7"]]);export{T as default};
