data_center/public/mobile/assets/news-card.bf9d4267.js

2 lines
1.4 KiB
JavaScript
Raw Normal View History

2023-09-18 09:11:13 +08:00
import{_ as e}from"./u-image.e15c05f6.js";import{d as t,r as s,a,o as l,c as r,w as i,b as c,h as d,l as f,t as m,k as n,n as u,i as x}from"./index.26a6cf84.js";import{_ as p}from"./icon_visit.9ad00ab7.js";import{_}from"./plugin-vue_export-helper.21dcd24c.js";var o=_(t({__name:"news-card",props:{item:{default:{}},newsId:{default:""}},setup:t=>(_,o)=>{const w=s(a("u-image"),e),g=n,h=u,j=x;return l(),r(j,{url:`/pages/news_detail/news_detail?id=${t.newsId}`},{default:i((()=>[c(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((()=>[c(w,{src:t.item.image,width:"240",height:"180"},null,8,["src"])])),_:1})):d("v-if",!0),c(g,{class:"news-card-content flex flex-col justify-between flex-1"},{default:i((()=>[c(g,{class:"news-card-content-title text-lg font-medium"},{default:i((()=>[f(m(t.item.title),1)])),_:1}),c(g,{class:"news-card-content-intro text-gray-400 text-sm mt-[16rpx]"},{default:i((()=>[f(m(t.item.desc),1)])),_:1}),c(g,{class:"text-muted text-xs w-full flex justify-between mt-[12rpx]"},{default:i((()=>[c(g,null,{default:i((()=>[f(m(t.item.create_time),1)])),_:1}),c(g,{class:"flex items-center"},{default:i((()=>[c(h,{src:p,class:"w-[30rpx] h-[30rpx]"}),c(g,{class:"ml-[10rpx]"},{default:i((()=>[f(m(t.item.click),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["url"])}}),[["__scopeId","data-v-4508fd44"]]);export{o as _};