From 925000f736896015c524c998d2d0787fff6deb80 Mon Sep 17 00:00:00 2001 From: make Date: Mon, 5 May 2025 13:09:19 +0800 Subject: [PATCH] debug --- code/app/home/view/videoDadi/base.html | 82 +++----------- code/app/home/view/videoDadi/index/index.html | 101 +++++++++++++----- .../view/videoDadi/public/video-list-shu.html | 4 +- .../view/videoDadi/public/video-panel.html | 10 +- .../view/videoDadi/video/getVideoInfo.html | 2 +- .../view/videoDadi/video/getVideoPlayUrl.html | 2 +- code/public/template/videodadi/cctv/index.js | 78 -------------- .../template/videodadi/cctv/json.js.back | 6 -- .../template/videodadi/css/stui_block.css | 2 +- 9 files changed, 104 insertions(+), 183 deletions(-) delete mode 100644 code/public/template/videodadi/cctv/index.js delete mode 100644 code/public/template/videodadi/cctv/json.js.back diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index 37b0e5d..a78a98c 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -26,9 +26,8 @@ const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`; - - - + {block name="head"}{/block} {block name="head-css"}{/block} @@ -39,9 +38,6 @@ - - -
@@ -49,34 +45,22 @@
- +
-
- + - +
- +
- +
@@ -145,37 +128,6 @@ {/block} - - - {site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/} @@ -183,7 +135,7 @@ {$DomainModel->d_statis|raw} - + \ No newline at end of file diff --git a/code/app/home/view/videoDadi/index/index.html b/code/app/home/view/videoDadi/index/index.html index 8130aa8..7fccb28 100644 --- a/code/app/home/view/videoDadi/index/index.html +++ b/code/app/home/view/videoDadi/index/index.html @@ -17,21 +17,74 @@ @@ -44,7 +97,7 @@

- {$DomainModel->d_name}-{$DomainModel->d_text_logo} + {$DomainModel->d_name}-{$DomainModel->d_text_logo}

{site:replace code="VIDEO@GETCATEGORYINDEX@TEXT"}

@@ -57,24 +110,24 @@
- 更多更多 -

+

火爆推荐 -

+ href='{site:vclurl parent_category="all" category="all" area="all" lang="all" year="all" order="tuijian" page="1"/}'>火爆推荐 +
    - {video:list count="12" sort_type="tuijian" d_key="d_key" d_val="Video" cache_life="86400"} + {video:list count="2" sort_type="tuijian" d_key="d_key" d_val="Video" cache_life="86400"} {include file="public/video-list-shu" /} {/video:list}
@@ -90,9 +143,9 @@
    - {video:list count="18" + {video:list count="2" sort_type="piaofang" - d_key="key" d_val="Video" cache_life="86400"} + d_key="key" d_val="Video" cache_life="86400"} {include file="public/video-list-phb2" /} {/video:list}
@@ -118,7 +171,7 @@
    - {video:ranklist count="10" + {video:ranklist count="10" sort_type="$key" d_key="key" d_val="Video" cache_life="86400"} {include file="public/video-list-phb" /} diff --git a/code/app/home/view/videoDadi/public/video-list-shu.html b/code/app/home/view/videoDadi/public/video-list-shu.html index 795f324..2088c09 100644 --- a/code/app/home/view/videoDadi/public/video-list-shu.html +++ b/code/app/home/view/videoDadi/public/video-list-shu.html @@ -9,10 +9,10 @@
    -

    +

    {$Video.v_name} -

    + diff --git a/code/app/home/view/videoDadi/public/video-panel.html b/code/app/home/view/videoDadi/public/video-panel.html index a77d704..0ff0790 100644 --- a/code/app/home/view/videoDadi/public/video-panel.html +++ b/code/app/home/view/videoDadi/public/video-panel.html @@ -5,8 +5,8 @@
    - 更多更多

    @@ -21,12 +21,12 @@

      - {video:list count="12" v_category="$val.v_category_en" sort_type="news" d_key="key" d_val="Video" cache_life="86400"} + {video:list count="2" v_category="$val.v_category_en" sort_type="news" d_key="key" d_val="Video" cache_life="86400"} {include file="public/video-list-shu" /} {/video:list}
    @@ -42,7 +42,7 @@
      - {video:ranklist count="18" + {video:ranklist count="2" v_category_en="$val.v_category_en" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"} diff --git a/code/app/home/view/videoDadi/video/getVideoInfo.html b/code/app/home/view/videoDadi/video/getVideoInfo.html index 557e8f8..687fada 100644 --- a/code/app/home/view/videoDadi/video/getVideoInfo.html +++ b/code/app/home/view/videoDadi/video/getVideoInfo.html @@ -122,7 +122,7 @@ {$arrVideo.v_year} + href='{site:vclurl parent_category="all" category="all" area="all" lang="all" year="$arrVideo.v_year" order="all" page="1"/}'>{$arrVideo.v_year}  

      diff --git a/code/app/home/view/videoDadi/video/getVideoPlayUrl.html b/code/app/home/view/videoDadi/video/getVideoPlayUrl.html index 61f44dc..b97385c 100644 --- a/code/app/home/view/videoDadi/video/getVideoPlayUrl.html +++ b/code/app/home/view/videoDadi/video/getVideoPlayUrl.html @@ -202,7 +202,7 @@ 年份: {$arrVideo.v_year} + href='{site:vclurl parent_category="all" category="all" area="all" lang="all" year="$arrVideo.v_year" order="all" page="1"/}'>{$arrVideo.v_year}  

diff --git a/code/public/template/videodadi/cctv/index.js b/code/public/template/videodadi/cctv/index.js deleted file mode 100644 index 5df7746..0000000 --- a/code/public/template/videodadi/cctv/index.js +++ /dev/null @@ -1,78 +0,0 @@ -document.addEventListener("DOMContentLoaded", function () { - // setTimeout(function () { - // if (CctvTopHf && CctvTopHf.length > 0) { - - // var CctvTopHfDom = document.querySelector('.cctv-hf-list-top .swiper-wrapper '); // 获取容器元素 - - // // 遍历数组并生成 HTML - // CctvTopHf.forEach(function (ad) { - // var html = ` - //
- // - // - // - //
- // `; - // CctvTopHfDom.innerHTML += html; // 将 HTML 添加到容器中 - // }); - // } - // }, 1500) - -}); - -function history() { - if ($("#stui_history").length) { - let historyData = localStorage.getItem("recente"); - let list = ""; - - if (historyData) { - let json = JSON.parse(historyData); - console.log("本地存储数据:", json); - - for (let i = 0; i < json.length; i++) { - list += `
  • - - ${json[i].vod_part} - ${json[i].vod_name} - -
  • `; - } - } else { - list = "

    您还没有看过影片哦

    "; - } - - $("#stui_history").html(list); - - // 清空历史记录 - $(".historyclean").on("click", function () { - localStorage.removeItem("recente"); - $("#stui_history").html("

    您还没有看过影片哦

    "); - }); - } -} - -// 添加新历史记录 -function addHistory(vod_name, vod_url, vod_part) { - let historyData = localStorage.getItem("recente"); - let historyList = historyData ? JSON.parse(historyData) : []; - - // 查找是否已有该视频 - let index = historyList.findIndex(item => item.vod_name === vod_name); - - if (index !== -1) { - // 如果已存在,更新集数 - historyList[index].vod_part = vod_part; - historyList[index].vod_url = vod_url; // 可能最新观看的是其他来源 - } else { - // 追加新记录(最多存 10 条) - if (historyList.length >= 10) { - historyList.shift(); // 移除最早的一条 - } - historyList.push({ vod_name, vod_url, vod_part }); - } - - localStorage.setItem("recente", JSON.stringify(historyList)); -} - - - diff --git a/code/public/template/videodadi/cctv/json.js.back b/code/public/template/videodadi/cctv/json.js.back deleted file mode 100644 index e8b4852..0000000 --- a/code/public/template/videodadi/cctv/json.js.back +++ /dev/null @@ -1,6 +0,0 @@ -var CctvTopHf = [ - { - 'img' :'/assets/images/zxtv/375-50.png', - 'href' : 'https://baidu.com' - } -]; \ No newline at end of file diff --git a/code/public/template/videodadi/css/stui_block.css b/code/public/template/videodadi/css/stui_block.css index c8d251a..8cdd1ec 100644 --- a/code/public/template/videodadi/css/stui_block.css +++ b/code/public/template/videodadi/css/stui_block.css @@ -456,7 +456,7 @@ textarea.form-control{ height: auto;} .stui-pannel__head.active{height: 30px;} .stui-pannel__head .title,.stui-pannel__head .title a{font-size: 16px;} .stui-pannel__head .title img{ width: 18px; height: 18px; margin-right: 5px; vertical-align: -3px;} - .stui-pannel__head .more{ line-height: 20px;} + .stui-pannel__head .more{ line-height: 20px;color: #ff9900;} /* vod-list */ .stui-vodlist__thumb .tag{ padding: 0 5px;}