logo和配置修改

This commit is contained in:
谢宇宁
2026-09-23 16:50:34 +07:00
parent bef9f8b4ed
commit 0db8087765
163 changed files with 393 additions and 20366 deletions
+14 -112
View File
@@ -26,8 +26,8 @@
<script type="application/ld+json">{{.jsonLD}}</script>
{{end}}
<link rel="stylesheet" href="/static/css/index.css?v=27">
<link rel="stylesheet" href="/static/css/detail.css?v=29">
<link rel="stylesheet" href="/static/css/play.css?v=26">
<link rel="stylesheet" href="/static/css/detail.css?v=30">
<link rel="stylesheet" href="/static/css/play.css?v=27">
<link rel="stylesheet" href="/static/common/DPlayer.min.css">
<script defer src="/static/common/hls.min.js"></script>
<script defer src="/static/common/DPlayer.min.js"></script>
@@ -43,24 +43,12 @@
{{$canWatch := false}}
{{$needUnlock := false}}
{{$needVip := false}}
{{$unlockCost := 0}}
{{if $chapter}}
{{$canWatch = $chapter.AllowWatch}}
{{$needUnlock = $chapter.NeedUnlock}}
{{$needVip = $chapter.NeedVip}}
{{$unlockCost = $chapter.UnlockCost}}
{{end}}
{{if or $chapter $playlet}}
{{$isLike := 2}}
{{$isCollect := 2}}
{{$countLike := 0}}
{{$countCollect := 0}}
{{if $playlet}}
{{$isLike = $playlet.IsLike}}
{{$isCollect = $playlet.IsCollect}}
{{$countLike = $playlet.CountLike}}
{{$countCollect = $playlet.CountCollect}}
{{end}}
<main
class="page-shell play-page"
data-play-page
@@ -92,7 +80,7 @@
</nav>
<div class="play-layout">
<div class="play-main">
<div class="play-player" data-play-player data-playlet-id="{{$playletID}}"{{if $chapter}} data-chapter-id="{{$chapter.ID}}" data-pay-type="{{$chapter.PayType}}" data-single-coins="{{$unlockCost}}" data-can-watch="{{if $canWatch}}1{{else}}0{{end}}" data-need-unlock="{{if $needUnlock}}1{{else}}0{{end}}" data-need-vip="{{if $needVip}}1{{else}}0{{end}}" data-is-unlocked="{{if $chapter.IsUnlocked}}1{{else}}0{{end}}"{{end}}>
<div class="play-player" data-play-player data-playlet-id="{{$playletID}}"{{if $chapter}} data-chapter-id="{{$chapter.ID}}" data-pay-type="{{$chapter.PayType}}" data-can-watch="{{if $canWatch}}1{{else}}0{{end}}" data-need-unlock="{{if $needUnlock}}1{{else}}0{{end}}" data-need-vip="{{if $needVip}}1{{else}}0{{end}}"{{end}}>
{{if and $chapter $canWatch $chapter.VideoURL}}
<div class="dplayer-video"
data-url="{{$chapter.VideoURL}}"
@@ -107,6 +95,11 @@
<button class="play-player-center" type="button" aria-label="播放" data-play-poster-play>
<img src="/static/images/figma-play/control-center-play.svg" alt="播放" />
</button>
{{else if and $chapter (not $canWatch)}}
<div class="play-player-locked" data-play-locked-cta>
<p class="play-player-locked-text">本集为APP专享剧集</p>
<button class="play-player-locked-btn" type="button" data-play-download-app>下载APP观看完整剧集</button>
</div>
{{end}}
<div class="play-player-gradient play-player-gradient--top" aria-hidden="true"></div>
@@ -129,18 +122,10 @@
</div>
<div class="play-h5-side">
<button class="play-h5-side-item{{if eq $isLike 1}} play-h5-side-item--active{{end}}" type="button" data-detail-like data-playlet-id="{{$playletID}}" data-liked="{{$isLike}}" data-count-like="{{$countLike}}" aria-label="点赞" aria-pressed="{{if eq $isLike 1}}true{{else}}false{{end}}">
<img src="/static/images/{{if eq $isLike 1}}h5_liked.svg{{else}}like.svg{{end}}" alt="点赞" data-h5-like-icon />
<span data-detail-like-label>{{$countLike}}</span>
</button>
<button class="play-h5-side-item" type="button" data-play-comment-open>
<img src="/static/images/comment.svg" alt="评论" />
<span data-play-comment-count>{{if $chapter}}{{$chapter.CountComment}}{{else}}0{{end}}</span>
</button>
<button class="play-h5-side-item{{if eq $isCollect 1}} play-h5-side-item--active{{end}}" type="button" data-detail-collect data-playlet-id="{{$playletID}}" data-collected="{{$isCollect}}" data-count-collect="{{$countCollect}}" aria-label="收藏" aria-pressed="{{if eq $isCollect 1}}true{{else}}false{{end}}">
<img src="/static/images/{{if eq $isCollect 1}}h5_collected.svg?v=2{{else}}collect.svg{{end}}" alt="收藏" data-h5-collect-icon />
<span data-detail-collect-label>{{if eq $isCollect 1}}已收藏{{else}}收藏{{end}}</span>
</button>
<button class="play-h5-side-item" type="button" data-detail-share data-playlet-id="{{$playletID}}">
<img src="/static/images/h5_share.svg" alt="分享" />
<span>分享</span>
@@ -215,20 +200,6 @@
{{end}}
</div>
<div class="play-info-actions">
<button class="detail-action{{if eq $isLike 1}} detail-action--active{{end}}" type="button" data-detail-like data-playlet-id="{{$playletID}}" data-liked="{{$isLike}}" data-count-like="{{$countLike}}" data-like-label-mode="state">
<span class="detail-action-icon">
<img src="/static/images/like.svg" alt="点赞" />
</span>
<span data-detail-like-label>{{if eq $isLike 1}}已点赞{{else}}点赞{{end}}</span>
</button>
<span class="detail-action-sep"></span>
<button class="detail-action{{if eq $isCollect 1}} detail-action--active{{end}}" type="button" data-detail-collect data-playlet-id="{{$playletID}}" data-collected="{{$isCollect}}" data-count-collect="{{$countCollect}}">
<span class="detail-action-icon">
<img src="/static/images/collect.svg" alt="收藏" />
</span>
<span data-detail-collect-label>{{if eq $isCollect 1}}已收藏{{else}}收藏{{end}}</span>
</button>
<span class="detail-action-sep"></span>
<button class="detail-action" type="button" data-detail-share data-playlet-id="{{$playletID}}">
<span class="detail-action-icon">
<img src="/static/images/share.svg" alt="分享" />
@@ -266,21 +237,10 @@
<a class="play-ep{{if $active}} play-ep--active{{end}}" href="{{chapterPlayURL $playletSlug $playletID .ID}}" data-ep="{{.CurrentEpisode}}" data-chapter-id="{{.ID}}" data-play-switch>
<span class="play-ep-num">{{.CurrentEpisode}}</span>
</a>
{{else if .NeedCoinGate}}
<a class="play-ep{{if $active}} play-ep--active{{end}}" href="javascript:;" data-ep="{{.CurrentEpisode}}" data-coin-dialog-open data-playlet-id="{{$playletID}}" data-chapter-id="{{.ID}}" data-single-coins="{{.UnlockCost}}" aria-label="第{{.CurrentEpisode}}集,金币解锁">
<span class="play-ep-num">{{.CurrentEpisode}}</span>
<span class="play-ep-coin" aria-hidden="true">
<img src="/static/images/coin.png?v=2" alt="" />
</span>
</a>
{{else if .NeedVipGate}}
<a class="play-ep{{if $active}} play-ep--active{{end}}" href="javascript:;" data-ep="{{.CurrentEpisode}}" data-vip-dialog-open data-chapter-id="{{.ID}}" aria-label="第{{.CurrentEpisode}}集,VIP专享">
<span class="play-ep-num">{{.CurrentEpisode}}</span>
<img class="play-ep-lock" src="/static/images/vip.png" alt="" />
</a>
{{else}}
<a class="play-ep{{if $active}} play-ep--active{{end}}" href="{{chapterPlayURL $playletSlug $playletID .ID}}" data-ep="{{.CurrentEpisode}}" data-chapter-id="{{.ID}}" data-play-switch>
<a class="play-ep{{if $active}} play-ep--active{{end}}" href="javascript:;" data-ep="{{.CurrentEpisode}}" data-chapter-id="{{.ID}}" data-play-locked aria-label="第{{.CurrentEpisode}}集,下载APP观看">
<span class="play-ep-num">{{.CurrentEpisode}}</span>
<span class="play-ep-lock" aria-hidden="true">APP</span>
</a>
{{end}}
{{else}}
@@ -305,31 +265,6 @@
<button class="detail-sort-btn" type="button" data-comment-sort="2">最新</button>
</div>
</div>
{{if $.isLoggedIn}}
<div class="detail-comment-composer">
{{if $.avatar}}
<img class="detail-comment-composer-avatar lazy" src="/static/images/placeholder.png?v=2" data-src="{{$.avatar}}" alt="我的头像" />
{{else}}
<img class="detail-comment-composer-avatar" src="/static/images/avatar.png" alt="默认用户头像" />
{{end}}
<div class="detail-comment-composer-main">
<textarea class="detail-comment-composer-input" maxlength="200" placeholder="说说你对这部剧的看法…" rows="2"></textarea>
<div class="detail-comment-composer-footer">
<div class="detail-comment-composer-status">
<span class="detail-comment-composer-logged">已登录</span>
{{if $.userName}}<span class="detail-comment-composer-user">{{$.userName}}</span>{{end}}
<span class="detail-comment-composer-count">0 / 200</span>
</div>
<button class="detail-comment-composer-submit" type="button" data-comment-send>发表评论</button>
</div>
</div>
</div>
{{else}}
<div class="detail-comments-login">
<a class="detail-comments-login-link" href="#login" data-login-dialog-open>登录</a>
<span class="detail-comments-login-hint"> 后参与讨论</span>
</div>
{{end}}
<div class="detail-comment-list" data-comment-list>
<div class="section-empty" data-comment-loading>评论加载中…</div>
</div>
@@ -373,9 +308,6 @@
<div class="play-ep-sheet-drama-status">{{updateStatusText $playlet.UpdateStatus}}{{if $playlet.TotalEpisode}} 共{{$playlet.TotalEpisode}}集{{end}}</div>
</div>
</div>
<button class="play-ep-sheet-collect{{if eq $isCollect 1}} is-collected{{end}}" type="button" data-detail-collect data-playlet-id="{{$playletID}}" data-collected="{{$isCollect}}" data-count-collect="{{$countCollect}}">
<span data-detail-collect-label>{{if eq $isCollect 1}}已收藏{{else}}收藏{{end}}</span>
</button>
</div>
{{end}}
<div class="play-ep-sheet-tabs">
@@ -394,21 +326,10 @@
<a class="play-ep-sheet-item{{if $active}} play-ep-sheet-item--active{{end}}" href="{{chapterPlayURL $playletSlug $playletID .ID}}" data-ep="{{.CurrentEpisode}}" data-chapter-id="{{.ID}}" data-play-switch>
<span class="play-ep-sheet-num">{{.CurrentEpisode}}</span>
</a>
{{else if .NeedCoinGate}}
<a class="play-ep-sheet-item{{if $active}} play-ep-sheet-item--active{{end}}" href="javascript:;" data-ep="{{.CurrentEpisode}}" data-coin-dialog-open data-playlet-id="{{$playletID}}" data-chapter-id="{{.ID}}" data-single-coins="{{.UnlockCost}}" aria-label="第{{.CurrentEpisode}}集,金币解锁">
<span class="play-ep-sheet-num">{{.CurrentEpisode}}</span>
<span class="play-ep-sheet-coin" aria-hidden="true">
<img src="/static/images/coin.png?v=2" alt="" />
</span>
</a>
{{else if .NeedVipGate}}
<a class="play-ep-sheet-item{{if $active}} play-ep-sheet-item--active{{end}}" href="javascript:;" data-ep="{{.CurrentEpisode}}" data-vip-dialog-open data-chapter-id="{{.ID}}" aria-label="第{{.CurrentEpisode}}集,VIP专享">
<span class="play-ep-sheet-num">{{.CurrentEpisode}}</span>
<img class="play-ep-sheet-lock" src="/static/images/vip.png" alt="" />
</a>
{{else}}
<a class="play-ep-sheet-item{{if $active}} play-ep-sheet-item--active{{end}}" href="{{chapterPlayURL $playletSlug $playletID .ID}}" data-ep="{{.CurrentEpisode}}" data-chapter-id="{{.ID}}" data-play-switch>
<a class="play-ep-sheet-item{{if $active}} play-ep-sheet-item--active{{end}}" href="javascript:;" data-ep="{{.CurrentEpisode}}" data-chapter-id="{{.ID}}" data-play-locked aria-label="第{{.CurrentEpisode}}集,下载APP观看">
<span class="play-ep-sheet-num">{{.CurrentEpisode}}</span>
<span class="play-ep-sheet-lock" aria-hidden="true">APP</span>
</a>
{{end}}
{{else}}
@@ -462,23 +383,6 @@
<button class="detail-comments-more play-comment-sheet-more" type="button" data-comment-more hidden>加载更多</button>
</section>
</div>
<div class="play-comment-composer">
{{if $.isLoggedIn}}
<div class="play-comment-composer-box">
<input class="play-comment-composer-input" type="text" maxlength="200" placeholder="发表评论…" autocomplete="off" />
<button class="play-comment-composer-emoji" type="button" data-comment-send aria-label="发表评论">
<img src="/static/images/smile.svg" alt="表情" />
</button>
</div>
{{else}}
<a class="play-comment-composer-box play-comment-composer-box--login" href="#login" data-login-dialog-open>
<span class="play-comment-composer-placeholder">发表评论…</span>
<span class="play-comment-composer-emoji" aria-hidden="true">
<img src="/static/images/smile.svg" alt="表情" />
</span>
</a>
{{end}}
</div>
</div>
{{end}}
{{else}}
@@ -489,9 +393,7 @@
{{end}}
{{template "footer" .}}
{{template "vipDialog" .}}
{{template "coinDialog" .}}
<script src="/static/js/pages/detail.js?v=14"></script>
<script src="/static/js/pages/play.js?v=13"></script>
<script src="/static/js/pages/detail.js?v=15"></script>
<script src="/static/js/pages/play.js?v=15"></script>
</body>
</html>