import{al as B,h as E,a2 as I,$ as w}from"./element-plus-BjmnhcWI.js";import{_ as C,u as D,j as L}from"./index-CAoOLuwd.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"},$={class:"promotion-page-list-item"},j=["onClick"],q={__name:"index",setup(M){const{t:m}=D(),d=P(),p=n(null),_=n([]),t=n(!0);function g(){t.value=!0,L({type:3}).then(e=>{var s;_.value=e.data.list||[],(s=p.value)==null||s.complete(!0),t.value=!1}).catch(()=>{var e;(e=p.value)==null||e.complete(!0),t.value=!1})}function h(e){d.push({name:"PromotionDetail",query:{id:e.id}})}function f(){d.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",$,[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:O=>h(u)},[a(x,{src:u.pc_image,style:{width:"100%","border-radius":"8px"}},null,8,["src"])],8,j))),128))]),_:1},8,["loading"])])])}}},T=C(q,[["__scopeId","data-v-392a40d7"]]);export{T as default};
