diff --git a/code/app/home/view/videoBoKu/base.html b/code/app/home/view/videoBoKu/base.html index 1191ea9..b09d4f7 100644 --- a/code/app/home/view/videoBoKu/base.html +++ b/code/app/home/view/videoBoKu/base.html @@ -14,7 +14,7 @@ - + {// PWA 支持(Chrome/安卓)和 SEO 不是强关联 } @@ -26,7 +26,7 @@ - + @@ -209,6 +209,7 @@ +
{block name="main"} {/block} diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index c885c2a..ba2fdb4 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -13,7 +13,7 @@ - + {// PWA 支持(Chrome/安卓)和 SEO 不是强关联 } @@ -24,7 +24,7 @@ - + {// 提前加载 CSS } @@ -118,6 +118,7 @@ + {block name="main"} {/block} {include file="public/footer" /} diff --git a/code/app/home/view/videoDingZhu/base.html b/code/app/home/view/videoDingZhu/base.html index 202b8c5..c2ec1b8 100644 --- a/code/app/home/view/videoDingZhu/base.html +++ b/code/app/home/view/videoDingZhu/base.html @@ -14,7 +14,8 @@ - + + {// PWA 支持(Chrome/安卓)和 SEO 不是强关联 } @@ -26,17 +27,31 @@ - + + + + + + + + + + + - - - - - - - - - {block name="head"}{/block} {block name="head-css"}{/block} {block name="head-js"}{/block} @@ -214,6 +229,8 @@ + + {block name="main"} {/block} diff --git a/code/app/home/view/videoFengNiao/base.html b/code/app/home/view/videoFengNiao/base.html index 25a92f6..01add6e 100644 --- a/code/app/home/view/videoFengNiao/base.html +++ b/code/app/home/view/videoFengNiao/base.html @@ -19,7 +19,7 @@ - + {block name="head"}{/block} {block name="head-css"}{/block} @@ -108,7 +108,7 @@ - + {block name="main"} {/block} diff --git a/code/app/home/view/videoLaoNiu/base.html b/code/app/home/view/videoLaoNiu/base.html index 1602819..421148e 100644 --- a/code/app/home/view/videoLaoNiu/base.html +++ b/code/app/home/view/videoLaoNiu/base.html @@ -14,7 +14,7 @@ - + {// PWA 支持(Chrome/安卓)和 SEO 不是强关联 } @@ -26,7 +26,7 @@ - + @@ -146,7 +146,8 @@ - + + {block name="main"} {/block} diff --git a/code/app/home/view/videoNuNu/base.html b/code/app/home/view/videoNuNu/base.html index 6011385..0826b31 100644 --- a/code/app/home/view/videoNuNu/base.html +++ b/code/app/home/view/videoNuNu/base.html @@ -14,7 +14,8 @@ - + + {// PWA 支持(Chrome/安卓)和 SEO 不是强关联 } @@ -26,7 +27,7 @@ - + @@ -127,7 +128,7 @@ - + {block name="main"} {/block} diff --git a/code/public/public/fu/fu.js b/code/public/public/fu/fu.js index 8e62bde..c0932cb 100644 --- a/code/public/public/fu/fu.js +++ b/code/public/public/fu/fu.js @@ -330,7 +330,20 @@ function replaceList() { } } + // banner 1 + let listbsA = document.querySelectorAll('.cs-list-a'); + listbsA.forEach(item => { + const randomIndex = Math.floor(Math.random() * bannerDataTop.length); + const CsData = bannerDataTop[randomIndex] + // 替换模板中的占位符 + const renderedTemplate = strCsHtmlBanner + .replace(/{{image}}/g, CsData.image) + .replace(/{{title}}/g, escapeHtml(decodeHtmlEntities(CsData.title))) // 防止XSS + .replace(/{{link}}/g, escapeHtml(CsData.link)); + + item.innerHTML = renderedTemplate.trim(); + }); // banner let listbs = document.querySelectorAll('.cs-list-b'); @@ -345,9 +358,9 @@ function replaceList() { .replace(/{{link}}/g, escapeHtml(CsData.link)); item.innerHTML = renderedTemplate.trim(); - - }); + + } function shouldTrigger(probability = 0.5) {