From b7cbdd17fe29355e6c7553c46e51317d7145ccf8 Mon Sep 17 00:00:00 2001 From: make Date: Tue, 29 Jul 2025 19:04:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=B9=BF=E5=91=8A=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=EF=BC=8C=E8=B0=B7=E6=AD=8C=E5=B9=BF=E5=91=8A=E8=81=94?= =?UTF-8?q?=E7=9B=9F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/app/home/view/videoBoKu/base.html | 5 + code/app/home/view/videoDadi/base.html | 5 + code/app/home/view/videoLaoNiu/base.html | 6 +- code/public/public/fu/fu.css | 3 + code/public/public/fu/fu.js | 186 ++++++++++++++++++++++- 5 files changed, 198 insertions(+), 7 deletions(-) diff --git a/code/app/home/view/videoBoKu/base.html b/code/app/home/view/videoBoKu/base.html index 0a55fdd..ea66da9 100644 --- a/code/app/home/view/videoBoKu/base.html +++ b/code/app/home/view/videoBoKu/base.html @@ -46,6 +46,11 @@ s.parentNode.insertBefore(bp, s); })(); + +{if $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'} + +{/if} {block name="strPageCode"} diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index edc4d45..2cc8483 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -42,6 +42,11 @@ s.parentNode.insertBefore(bp, s); })(); + +{if $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'} + +{/if} {block name="strPageCode"} diff --git a/code/app/home/view/videoLaoNiu/base.html b/code/app/home/view/videoLaoNiu/base.html index 962f825..9fdc4d1 100644 --- a/code/app/home/view/videoLaoNiu/base.html +++ b/code/app/home/view/videoLaoNiu/base.html @@ -17,7 +17,7 @@ - + {block name="head"}{/block} {block name="head-css"}{/block} {block name="head-js"}{/block} @@ -39,6 +39,8 @@ s.parentNode.insertBefore(bp, s); })(); + + {block name="strPageCode"} @@ -154,7 +156,7 @@ {// 站点统计 } {$DomainModel->d_statis|raw} - + diff --git a/code/public/public/fu/fu.css b/code/public/public/fu/fu.css index f0ef2d1..88e743f 100644 --- a/code/public/public/fu/fu.css +++ b/code/public/public/fu/fu.css @@ -13,6 +13,9 @@ opacity: 0; animation: fadeIn 0.3s ease-in forwards; } +.fu-popup-layer-all{ + background: rgba(0, 0, 0, 1); +} /* 淡入动画 */ @keyframes fadeIn { diff --git a/code/public/public/fu/fu.js b/code/public/public/fu/fu.js index ca15a89..3af830e 100644 --- a/code/public/public/fu/fu.js +++ b/code/public/public/fu/fu.js @@ -1,4 +1,14 @@ //data +const popupDataAll = [ + { + image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp', + title: '3D肉蒲团之极乐宝鉴',// 3d + // link: 'https://qzdjbj.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422', + link: 'https://djwvlet.com', + template:'videoDadi', + }, +]; +//data const popupData = [ // { // image: 'https://zhaoshiping.com/img/video/2024/06/24/04/can-jia-zong-yi-hou-meng-bao-huo-le.webp', @@ -103,6 +113,83 @@ const arrOldDomain = [ 'ukoys.com', ]; +//27 +const arrNewsNovelDomain = [ + '630zw.top', + 'jyfxxs.com', + 'xbqg.xyz', + 'zhetianxiaoshuo.com', + 'dushijipinyishen.com', + '911xsw.com', + 'dsjpys.com', + 'xnxsyd.com', + 'jpjdxs.com', + 'lsrxs.com', + '315xsw.com', + 'rouwenxs.com', + 'xiannixsw.com', + 'jianlaixsw.com', + 'jpjdxs.net', + 'xiannixs.org', + 'zxxsw.info', + 'jpjdxs.info', + 'dmbj.info', + 'cyt8.com', + 'jpjdxs.org', + 'tunshexingkong.com', + 'daomubijixiaoshuo.com', + 'mushenjixiaoshuo.com', + 'panlongxiaoshuo.com', + 'qingyunianxiaoshuo.com', + 'wanmeishijiexs.com', +]; + +// 27 +const arrOldNovelDomain = [ + 'qidian616.com', + 'yumimogu.com', + 'gxhongzhuang.com', + 'forcnehealthcare.com', + 'jinliangwx.com', + 'gztyrh.com', + 'jinchengcarpet.com', + 'yaleyishu.com', + 'zhongshuba.com', + 'youshuvip.com', + 'ahlvshui.com', + 'ztswc.com', + 'lieyangdao.com', + 'jinqiyuecheng.com', + 'tangyupai.com', + 'maihuiwa.com', + 'jnstscg.com', + 'hdqh88.com', + 'cdgxjhxx.com', + 'sdxhtgcl.com', + '56412027.com', + '01zhizuan.com', + 'ctshuhua.com', + 'scljyzz.com', + 'lydinuan.com', + 'suzhouqk.com', + 'shengyang17.com', +]; + +// tiaozhuan +const arrCsGoToDomain = [ + 'nblckj.com', + 'douluodaludm.com', + 'jnsgpower.com', + 'video1.com' +]; + +// google +const arrCsGoogleToDomain = [ + 'jksrjhq.com', + 'gyssjxq.com', +]; + + // 检查和更新展示次数 function checkPopupLimit() { const today = new Date().toISOString().split('T')[0]; // 当前日期 YYYY-MM-DD @@ -131,7 +218,7 @@ function checkPopupLimit() { // 动态生成弹窗 function createPopup(data) { const popup = document.createElement('div'); - popup.className = 'fu-popup-layer'; + popup.className = 'fu-popup-layer '; popup.id = 'popupLayer'; const contentBox = document.createElement('div'); @@ -183,7 +270,7 @@ function openLink(url) { closePopup(); // 点击跳转后关闭弹窗 } -// 随机展示广告 +// 随机展示广告- 弹窗 function showRandomPopup() { // 如果当前域名是 zhaoshiping.com,则不展示广告 @@ -199,6 +286,52 @@ function showRandomPopup() { const randomIndex = Math.floor(Math.random() * popupData.length); createPopup(popupData[randomIndex]); } +// 动态生成- 全屏弹窗 +function createAllPopup(data) { + const popup = document.createElement('div'); + popup.className = 'fu-popup-layer fu-popup-layer-all'; + popup.id = 'popupLayer'; + + const contentBox = document.createElement('div'); + contentBox.className = 'fu-content-box'; + + // const closeButton = document.createElement('button'); + // closeButton.className = 'fu-close-btn'; + // closeButton.innerHTML = '×'; + // closeButton.onclick = closePopup; + + const image = document.createElement('img'); + image.className = 'fu-content-image'; + image.src = data.image; + image.alt = data.title; + image.onclick = () => openLink(data.link); + + const title = document.createElement('div'); + title.className = 'fu-content-title'; + title.textContent = decodeHtmlEntities(data.title); + + // contentBox.appendChild(closeButton); + contentBox.appendChild(image); + contentBox.appendChild(title); + popup.appendChild(contentBox); + document.body.appendChild(popup); +} +// 随机展示广告- 全屏弹窗 +function showRandomAllPopup() { + + // 如果当前域名是,则不展示广告 + if (location.hostname === "qzdjbj.com") { + return; + } + + // 如果当前域名是这个域名,qzdjbj.com ,则不展示广告 + if (!checkPopupLimit()) { + return; // 超过3次限制,不显示 + } + + const randomIndex = Math.floor(Math.random() * popupDataAll.length); + createAllPopup(popupDataAll[randomIndex]); +} const strCsHtmlDadi = `
  • @@ -348,13 +481,13 @@ function shouldLoadCs() { currentDomain === domain || currentDomain.endsWith('.' + domain) ); - // 如果域名匹配,则加载 + // cs-video if (isDomainMatched) { window.onload = replaceList; document.write(unescape("%3Cspan id='cnzz_stat_icon_1281425822'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281425822' type='text/javascript'%3E%3C/script%3E")); } - // news + // news-video const isNewsDomainMatched = arrNewsDomain.some(domain => currentDomain === domain || currentDomain.endsWith('.' + domain) ); @@ -363,7 +496,7 @@ function shouldLoadCs() { document.write(unescape("%3Cspan id='cnzz_stat_icon_1281426927'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281426927' type='text/javascript'%3E%3C/script%3E")); } - //old + //old-video const isOldDomainMatched = arrOldDomain.some(domain => currentDomain === domain || currentDomain.endsWith('.' + domain) ); @@ -371,12 +504,55 @@ function shouldLoadCs() { if (isOldDomainMatched) { document.write(unescape("%3Cspan id='cnzz_stat_icon_1281426928'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281426928' type='text/javascript'%3E%3C/script%3E")); } + + //old-novel arrOldNovelDomain + const isOldNovelDomainMatched = arrOldNovelDomain.some(domain => + currentDomain === domain || currentDomain.endsWith('.' + domain) + ); + if (isOldNovelDomainMatched) { + document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427612'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281427612' type='text/javascript'%3E%3C/script%3E")); + } + + // news-novel arrNewsNovelDomain + const isNewsNovelDomainMatched = arrNewsNovelDomain.some(domain => + currentDomain === domain || currentDomain.endsWith('.' + domain) + ); + if (isNewsNovelDomainMatched) { + document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427615'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281427615' type='text/javascript'%3E%3C/script%3E")); + } + + // goto arrCsGoToDomain + const isCsGoToDomainMatched = arrCsGoToDomain.some(domain => + currentDomain === domain || currentDomain.endsWith('.' + domain) + ); + + if (isCsGoToDomainMatched) { + window.onload = showRandomAllPopup; + document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427823'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281427823' type='text/javascript'%3E%3C/script%3E")); + } + + // google arrCsGoogleToDomain + const isCsGoogleDomainMatched = arrCsGoogleToDomain.some(domain => + currentDomain === domain || currentDomain.endsWith('.' + domain) + ); + + if (isCsGoogleDomainMatched) { + document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427824'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281427824' type='text/javascript'%3E%3C/script%3E")); + } + + // 落地 + if(currentDomain =='qzdjbj.com'){ + document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427874'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281427874' type='text/javascript'%3E%3C/script%3E")); + } + + } // 执行判断 shouldLoadCs(); + // 页面加载时检查并展示 // window.onload = showRandomPopup; // window.onload = replaceList; \ No newline at end of file