86 lines
4.2 KiB
HTML
86 lines
4.2 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/rank.css?v=4">
|
|
</head>
|
|
<body class="page-list page-rank">
|
|
{{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 only-pc">{{if .seoInfo.Description}}{{.seoInfo.Description}}{{else}}每小时更新一次,数据来自全站播放、收藏与解锁{{end}}</p>
|
|
<p class="list-hero__desc only-h5">每小时更新一次</p>
|
|
</div>
|
|
|
|
<nav class="rank-tabs" aria-label="榜单类型">
|
|
{{range .rankTabs}}
|
|
<a class="rank-tabs__item{{if .Active}} is-active{{end}}" href="{{.URL}}" {{externalLinkAttrs .URL}}>{{.Label}}</a>
|
|
{{end}}
|
|
</nav>
|
|
</section>
|
|
|
|
<section class="list-body list-body--rank" aria-label="{{if .tabTitle}}{{.tabTitle}}{{else}}热播榜{{end}}列表">
|
|
<h2 class="visually-hidden">{{if .tabTitle}}{{.tabTitle}}{{else}}热播榜{{end}}作品列表</h2>
|
|
{{if .list}}
|
|
<div class="grid--rank-list">
|
|
{{range $i, $item := .list}}
|
|
{{$rank := add $.rankOffset (add $i 1)}}
|
|
<article class="rank-card">
|
|
<div class="rank-card__rank">
|
|
<span class="rank-card__no{{if le $rank 3}} is-top{{end}}">{{rankNo $rank}}</span>
|
|
</div>
|
|
<div class="rank-card__body">
|
|
<a class="rank-card__cover lazy" href="{{playURL $item.Slug $item.ID}}" style="{{cssCoverPlaceholder}}" data-src="{{$item.Cover}}"></a>
|
|
<div class="rank-card__info">
|
|
<h3 class="rank-card__title">
|
|
<a href="{{playURL $item.Slug $item.ID}}">{{if $item.PlayName}}{{$item.PlayName}}{{else}}{{$item.Title}}{{end}}</a>
|
|
</h3>
|
|
<p class="rank-card__meta card__meta--ep">{{template "cardEpChip" $item}}<span class="card__meta-tags">{{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}}</span></p>
|
|
<p class="rank-card__heat only-h5">
|
|
<img decoding="async" loading="lazy" class="icon" src="/static/images/placeholder.png?v=2" data-src="/static/images/trending-up.svg" alt="热门趋势">
|
|
{{if $.isBinge}}{{formatLikeCount $item.CountCollect}}{{else}}{{formatLikeCount $item.HeatValue}}{{end}}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<a class="rank-card__play only-h5" href="{{playURL $item.Slug $item.ID}}">
|
|
<img decoding="async" loading="lazy" class="icon" src="/static/images/placeholder.png?v=2" data-src="/static/images/play_hollow.svg" alt="播放">
|
|
播放
|
|
</a>
|
|
</article>
|
|
{{end}}
|
|
</div>
|
|
{{template "pagination" .}}
|
|
{{else}}
|
|
<p class="list-count">暂无榜单数据</p>
|
|
{{end}}
|
|
</section>
|
|
</main>
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
</body>
|
|
</html>
|