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 @@
@@ -118,7 +171,7 @@
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;}