广告修改
This commit is contained in:
@@ -104,6 +104,8 @@
|
||||
</section>
|
||||
{{end}}
|
||||
|
||||
{{template "appIcons" dict "Items" .appConfig.BList "Label" "首页小图标"}}
|
||||
|
||||
<!-- 短剧标签:GET /api/app/playlet/tag/options → /tags/{slug}/ → tags.html -->
|
||||
<nav class="category" aria-label="短剧标签">
|
||||
<a class="category__item is-active" href="/list">全部</a>
|
||||
@@ -116,7 +118,6 @@
|
||||
homeConfigData:按接口顺序渲染;type 1短剧 / 2视频 / 3题材;
|
||||
名称为「热播榜」时用热播榜专用 UI;除 type=3 外下方插入 advitise.detailbannerList(每次 2 条)
|
||||
-->
|
||||
{{$adIdx := 0}}
|
||||
{{range $cfg := .homeConfigData}}
|
||||
{{if and (eq $cfg.Type 1) (eq $cfg.Name "热播榜") $.hotRankPlaylets}}
|
||||
<section class="block block--rank" data-id="{{$cfg.ID}}" data-type="{{$cfg.Type}}" aria-label="热播榜">
|
||||
@@ -158,8 +159,6 @@
|
||||
{{end}}
|
||||
</div>
|
||||
</section>
|
||||
{{template "ads" (adSlice $.advitise.DetailBannerList $adIdx 2)}}
|
||||
{{$adIdx = add $adIdx 2}}
|
||||
|
||||
{{else if eq $cfg.Type 1}}
|
||||
<section class="block block--featured" data-id="{{$cfg.ID}}" data-type="{{$cfg.Type}}">
|
||||
@@ -187,8 +186,6 @@
|
||||
</div>
|
||||
{{end}}
|
||||
</section>
|
||||
{{template "ads" (adSlice $.advitise.DetailBannerList $adIdx 2)}}
|
||||
{{$adIdx = add $adIdx 2}}
|
||||
|
||||
{{else if eq $cfg.Type 2}}
|
||||
<section class="block block--series" data-id="{{$cfg.ID}}" data-type="{{$cfg.Type}}">
|
||||
@@ -236,8 +233,6 @@
|
||||
</div>
|
||||
{{end}}
|
||||
</section>
|
||||
{{template "ads" (adSlice $.advitise.DetailBannerList $adIdx 2)}}
|
||||
{{$adIdx = add $adIdx 2}}
|
||||
|
||||
{{else if eq $cfg.Type 3}}
|
||||
<section class="block block--topic" data-id="{{$cfg.ID}}" data-type="{{$cfg.Type}}">
|
||||
|
||||
Reference in New Issue
Block a user