Просмотр исходного кода

为融媒头条视频卡片增加播放图标

在融媒头条“视频”类型文字前增加红色播放三角图标,仅命中视频卡片;微信作品和图集保持原样。\n\nValidation:\n- 视频卡片small应用is-video并生成8px红色三角\n- 微信作品、图集不生成图标
非繁 2 месяцев назад
Родитель
Сommit
727337617f

+ 5 - 0
WebRoot/main/ffkj-portal/news-red.css

@@ -223,3 +223,8 @@ body.screen-red-theme{--hx-red:#941c1e;--hx-red-dark:#580b0c;--hx-footer-soft:#f
 
 
 /* 下载专栏文章描述缩小一号 */
 /* 下载专栏文章描述缩小一号 */
 .download-row small{font-size:12px;line-height:18px}
 .download-row small{font-size:12px;line-height:18px}
+
+
+/* 融媒头条视频卡片:类型文字前显示红色播放图标 */
+.media-card .meta small.is-video{display:inline-flex;align-items:center;gap:6px}
+.media-card .meta small.is-video::before{content:"";width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid #d40000}

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-catalog.jsp

@@ -8,7 +8,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-title-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-video-play-icon">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-details.jsp

@@ -7,7 +7,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-title-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-video-play-icon">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>

+ 2 - 2
WebRoot/web/upload/ffkj-template/news-red-index.jsp

@@ -12,7 +12,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${website.seoTitle}</title>
 	<title>${website.seoTitle}</title>
 	<meta name="description" content="${website.seoDescription}">
 	<meta name="description" content="${website.seoDescription}">
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-title-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-video-play-icon">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>
@@ -69,7 +69,7 @@
 				<c:forEach items="${newsRedConvergedCards}" var="card">
 				<c:forEach items="${newsRedConvergedCards}" var="card">
 					<a class="media-card" href="${card.article.url}" target="${card.article.target}">
 					<a class="media-card" href="${card.article.url}" target="${card.article.target}">
 						<img src="${empty card.article.thumbnail ? defaultMediaImage : card.article.thumbnail}" alt="${card.article.title}">
 						<img src="${empty card.article.thumbnail ? defaultMediaImage : card.article.thumbnail}" alt="${card.article.title}">
-						<div class="meta"><small>${card.typeName}</small><h3>${card.article.title}</h3><time>${fn:substring(card.article.release_time, 0, 10)}</time></div>
+						<div class="meta"><small class="${card.typeName eq '视频' ? 'is-video' : ''}">${card.typeName}</small><h3>${card.article.title}</h3><time>${fn:substring(card.article.release_time, 0, 10)}</time></div>
 					</a>
 					</a>
 				</c:forEach>
 				</c:forEach>
 				<c:if test="${empty newsRedConvergedCards}"><div class="empty-line">暂无融媒内容</div></c:if>
 				<c:if test="${empty newsRedConvergedCards}"><div class="empty-line">暂无融媒内容</div></c:if>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-list.jsp

@@ -15,7 +15,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-title-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-video-play-icon">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-search.jsp

@@ -8,7 +8,7 @@
 	<meta charset="UTF-8">
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${website.seoTitle}</title>
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-media-title-18">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-video-play-icon">
 </head>
 </head>
 <body class="screen-red-theme">
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
 	<%@ include file="news-red-header.jsp"%>