Files
2026-10-28 17:40:27 +07:00

83 lines
3.8 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{.metaTitle}}</title>
{{template "seoCommon" .}}
<link rel="stylesheet" href="/static/css/base.css?v=2">
<link rel="stylesheet" href="/static/css/list.css?v=3">
<link rel="stylesheet" href="/static/css/popularRecommend.css">
</head>
<body class="page-list page-popular">
{{template "header" .}}
<header class="page-subheader only-h5" aria-label="热播榜顶栏">
<a class="page-subheader__btn" href="javascript:history.back()" aria-label="返回">
<img decoding="async" loading="lazy" class="icon" src="/static/images/placeholder.png?v=2" data-src="/static/images/chevron-left.svg" alt="返回">
</a>
<div class="page-subheader__title">{{if .tabTitle}}{{.tabTitle}}{{else}}热播榜{{end}}</div>
<a class="page-subheader__btn" href="/search-mobile" aria-label="搜索">
<img decoding="async" loading="lazy" class="icon" src="/static/images/placeholder.png?v=2" data-src="/static/images/search_h5.svg" alt="搜索">
</a>
</header>
<div class="page list-page">
<main class="main">
<section class="list-hero" aria-label="热播榜">
<div class="list-hero__intro">
<p class="eyebrow list-hero__eyebrow">
<span class="eyebrow__bar" aria-hidden="true"></span>
热播榜
</p>
<h1 class="list-hero__title">{{if .tabTitle}}{{.tabTitle}}{{else}}热播榜{{end}}</h1>
<p class="list-hero__desc">{{if .seoInfo.Description}}{{.seoInfo.Description}}{{else}}根据播放、收藏与解锁综合排序{{end}}</p>
</div>
</section>
<section class="list-filters" aria-label="筛选">
<div class="filter-row">
<span class="filter-row__label only-pc">榜单</span>
<div class="filter-row__options">
{{range .rankTabs}}
<a class="filter-chip{{if .Active}} is-active{{end}}" href="{{.URL}}" {{externalLinkAttrs .URL}}>{{.Label}}</a>
{{end}}
</div>
</div>
</section>
<section class="list-body" aria-label="{{if .tabTitle}}{{.tabTitle}}{{else}}热播榜{{end}}列表">
<h2 class="visually-hidden">{{if .tabTitle}}{{.tabTitle}}{{else}}热播榜{{end}}作品列表</h2>
<p class="list-count">{{.listCount}}</p>
{{if .list}}
{{$total := len .list}}
<div class="grid--list">
{{range $i, $item := .list}}
<article class="card card--list">
<a class="card__cover lazy" href="{{playURL $item.Slug $item.ID}}" style="{{cssCoverPlaceholder}}" data-src="{{$item.Cover}}">
{{if eq $item.UpdateStatus 1}}
<span class="card__ep">连载中</span>
{{else if $item.TotalEpisode}}
<span class="card__ep">全 {{$item.TotalEpisode}} 集</span>
{{else}}
<span class="card__ep">{{updateStatusText $item.UpdateStatus}}</span>
{{end}}
{{if $item.IsFeatured}}<span class="badge badge--hot">爆剧</span>{{else if eq $item.Anchor "原创"}}<span class="badge badge--original">原创</span>{{end}}
</a>
<h3 class="card__title"><a href="{{playURL $item.Slug $item.ID}}">{{if $item.PlayName}}{{$item.PlayName}}{{else}}{{$item.Title}}{{end}}</a></h3>
<p class="card__meta">{{range $ti, $tag := cardTags $item}}{{if $ti}} {{end}}{{if $tag.URL}}<a href="{{$tag.URL}}" {{externalLinkAttrs $tag.URL}}>{{$tag.Name}}</a>{{else}}{{$tag.Name}}{{end}}{{end}}</p>
</article>
{{end}}
</div>
{{template "pagination" .}}
{{else}}
<p class="list-count">暂无榜单数据</p>
{{end}}
</section>
</main>
</div>
{{template "footer" .}}
</body>
</html>