1 |
- import{_ as d,r as l,o as f,d as n,e as c,f as y,w as i,F as g,j as h,x as v,g as x,P as k,m as w}from"./index.57257863.js";/* empty css *//* empty css */import{E as B,a as E}from"./index.92195106.js";const b={class:"banner-container"},C=["src","alt","onClick"],N={__name:"index",props:{type:{type:String,require:!0},limit:{type:Number,default:5}},setup(_){const p=l(420),s=_,o=l([]);f(async()=>{try{const{msg:a,data:e}=await k({type:s.type,limit:s.limit});e&&Array.isArray(e)&&(o.value=e)}catch{}});const u=a=>{const{jump_type:e,jump_url:r}=a;e=="external"||e=="internal"?window.open(r):w.error("\u9519\u8BEF\u7684\u56FE\u7247")};return(a,e)=>{const r=B,m=E;return n(),c("div",b,[y(m,{height:`${p.value}px`},{default:i(()=>[(n(!0),c(g,null,h(o.value,t=>(n(),v(r,{key:t},{default:i(()=>[x("img",{src:t.image,alt:t.image,onClick:A=>t.is_jump?u(t):null},null,8,C)]),_:2},1024))),128))]),_:1},8,["height"])])}}};var M=d(N,[["__scopeId","data-v-d092edb4"]]);export{M as B};
|