驭风行PC站
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
2.8 KiB

import{E as S}from"./CaXrkGgF.js";import{E,a as z}from"./FCEUtix4.js";import"./BPRC2v3K.js";import{o as h}from"./PFP8Cci7.js";import{u as U}from"./B6GSEys7.js";import{f as B,k as v,l as D,c as s,a as l,t as n,u as i,b as c,w as m,g as f,o,F as w,y,z as k,_ as N}from"./Ca9y1zsW.js";import"./CeUmO8rY.js";import"./BAT_Brgp.js";import"./B3sO6I2n.js";import"./BUADUvnR.js";import"./BBIc9hyf.js";import"./aPBqHQcn.js";import"./DYOBeiWW.js";import"./BWx9aQRD.js";import"./BR6Cm0N-.js";import"./Ch8OMI22.js";/* empty css */import"./Ak2swtwV.js";import"./Immh241S.js";import"./YeUNH851.js";const T={class:"w-full bg-gray-100 pb-20"},V={class:"text-center flex flex-col items-center py-15 relative"},j={class:"sub-title"},F={class:"text-gray-200 text-5xl font-bold dark:text-gray-700 py-0 line-height-5"},$={class:"text-3xl font-bold tracking-tight text-[#ff0000] dark:text-white sm:text-4xl lg:text-5xl"},q={key:0,class:"xl:w-screen-xl m-auto text-xl right-to-left hidden-sm-and-down"},L=["onClick"],R={class:"xl:w-screen-xl m-auto text-xl right-to-left hidden-sm-and-up"},A={key:0,class:"absolute bg-[#e65a01]/75 w-full py-2 z-100 text-center text-sm text-white bottom-0"},G=B({__name:"Djzt",props:{config:{},groupId:{},title:{default:"卡片标题"},comments:{default:"卡片描述"},scrollTop:{}},emits:["done"],setup(b,{emit:H}){const p=b,d=v([]),C=async()=>{var u,a,r;const{data:e}=await U("/cms/cms-article/page",{params:{categoryId:990,limit:8}});(u=e.value)!=null&&u.data&&(a=e.value)!=null&&a.data.list&&(d.value=(r=e.value)==null?void 0:r.data.list)},x=v(!1);return D(()=>[p.groupId,p.scrollTop],()=>{C(),p.scrollTop>=2240&&(x.value=!0)},{immediate:!0}),(e,u)=>{const a=S,r=z,g=E;return o(),s("div",T,[l("div",V,[l("div",j,[l("p",F,n(e.comments),1)]),l("h2",$,n(e.title),1)]),i(x)?(o(),s("div",q,[c(g,{interval:4e3,type:"card",height:"450px",arrow:"never","indicator-position":"none"},{default:m(()=>[(o(!0),s(w,null,y(i(d),(t,_)=>(o(),k(r,{class:"relative",key:_},{default:m(()=>[c(a,{src:t.image,class:"cursor-pointer scale-img w-full"},null,8,["src"]),t.comments?(o(),s("div",{key:0,class:"absolute bg-[#e65a01]/75 w-full py-2 z-100 text-center text-sm text-white bottom-0",onClick:I=>("openSpmUrl"in e?e.openSpmUrl:i(h))("/detail",t,t.articleId,!0)},n(t.comments),9,L)):f("",!0)]),_:2},1024))),128))]),_:1})])):f("",!0),l("div",R,[c(g,{interval:4e3,type:"card",height:"350px",arrow:"never","indicator-position":"none"},{default:m(()=>[(o(!0),s(w,null,y(i(d),(t,_)=>(o(),k(r,{class:"relative",key:_},{default:m(()=>[c(a,{src:t.image,class:"cursor-pointer scale-img w-full",onClick:I=>("openSpmUrl"in e?e.openSpmUrl:i(h))("/detail",t,t.articleId,!0)},null,8,["src","onClick"]),t.comments?(o(),s("div",A,n(t.comments),1)):f("",!0)]),_:2},1024))),128))]),_:1})])])}}}),mt=N(G,[["__scopeId","data-v-be7cb312"]]);export{mt as default};