import{_ as e}from"./u-image.777f39e2.js";import{d as t,r as s,a,o as l,b as r,w as i,e as d,f as c,l as m,t as f,p as n,m as u,i as p}from"./index-cca0a918.js";import{_ as x}from"./icon_visit.713e13e8.js";import{_}from"./_plugin-vue_export-helper.1b428a4d.js";const o=_(t({__name:"news-card",props:{item:{default:{}},newsId:{default:""}},setup:t=>(_,o)=>{const w=s(a("u-image"),e),g=n,b=u,h=p;return l(),r(h,{url:`/pages/news_detail/news_detail?id=${t.newsId}`},{default:i((()=>[d(g,{class:"news-card flex bg-white px-[20rpx] py-[32rpx]"},{default:i((()=>[t.item.image?(l(),r(g,{key:0,class:"mr-[20rpx]"},{default:i((()=>[d(w,{src:t.item.image,width:"240",height:"180"},null,8,["src"])])),_:1})):c("v-if",!0),d(g,{class:"news-card-content flex flex-col justify-between flex-1"},{default:i((()=>[d(g,{class:"news-card-content-title text-base"},{default:i((()=>[m(f(t.item.title),1)])),_:1}),d(g,{class:"news-card-content-intro text-gray-400 text-sm mt-[16rpx]"},{default:i((()=>[m(f(t.item.desc),1)])),_:1}),d(g,{class:"text-muted text-xs w-full flex justify-between mt-[12rpx]"},{default:i((()=>[d(g,null,{default:i((()=>[m(f(t.item.create_time),1)])),_:1}),d(g,{class:"flex items-center"},{default:i((()=>[d(b,{src:x,class:"w-[30rpx] h-[30rpx]"}),d(g,{class:"ml-[10rpx]"},{default:i((()=>[m(f(t.item.click),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["url"])}}),[["__scopeId","data-v-b7f5d2da"]]);export{o as _};
