From 8708d531dfe30ffc3ca1563a0c1fb1b8b7c3bf88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=9A=E9=A3=8E=E6=8B=82=E6=9F=B3=E9=A2=9C?= <434857005@qq.com> Date: Tue, 9 May 2023 13:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/更新日志.md | 3 ++ js/version.txt | 2 +- templates/cms/mxpro/detailContent.html | 74 +++++++++++++------------- templates/cms/mxpro/homeContent.html | 8 ++- 4 files changed, 47 insertions(+), 40 deletions(-) diff --git a/doc/更新日志.md b/doc/更新日志.md index 33bd40f..ab7b876 100644 --- a/doc/更新日志.md +++ b/doc/更新日志.md @@ -1,3 +1,6 @@ +###### 2023/05/09 +- [X] 3.9.41beta16 后台管理预览源增加详情页 + ###### 2023/05/08 - [X] 3.9.41beta15 后台管理增加预览源功能,更换后台管理操作图标 diff --git a/js/version.txt b/js/version.txt index 8a04501..3e7675e 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.41beta15 \ No newline at end of file +3.9.41beta16 \ No newline at end of file diff --git a/templates/cms/mxpro/detailContent.html b/templates/cms/mxpro/detailContent.html index c79700b..e000e2e 100644 --- a/templates/cms/mxpro/detailContent.html +++ b/templates/cms/mxpro/detailContent.html @@ -54,7 +54,7 @@ @@ -84,7 +84,7 @@ @@ -119,7 +119,7 @@ 详情

- 立即播放 + 立即播放
@@ -129,41 +129,13 @@ -
- 推荐线路!1080P超清画质无广告高速播放 -

LZ线路

- -
-
+
无需安装任何插件 -

QY线路

- -
-
- 无需安装任何插件 -

TX线路

- -
-
- 无需安装任何插件 -

YK线路

- -
-
- 推荐线路!1080P超清画质无广告高速播放 -

FF线路

-
@@ -280,6 +252,7 @@ const app = createApp({ dinfo.value = details.value.list[0]; dinfo.value.vod_desc = dinfo.value.vod_content.slice(0,100)+'...'; + $('meta[name="description"]').attr('content',dinfo.value.vod_name+'剧情:'+dinfo.value.vod_content); setTimeout(function (){ stui.images.lazyload(); stui.images.carousel(); @@ -339,6 +312,30 @@ const app = createApp({ return dinfo.value.vod_content?dinfo.value.vod_content.slice(0,100)+'...':''; }); + const vod_tabs = computed(() => { + console.log('计算vod_tabs'); + return dinfo.value.vod_play_from?dinfo.value.vod_play_from.split('$$$'):[]; + }); + + const vod_urls = computed(() => { + console.log('计算vod_urls'); + let urls = []; + if(dinfo.value.vod_play_url){ + let tab_urls = dinfo.value.vod_play_url.split('$$$'); + tab_urls.forEach(((tab_url,index)=>{ + let vurls = tab_url.split('#').map(it=>{return {name:it.split('$')[0],url:it.split('$')[1]}}); + urls.push(vurls); + })); + } + console.log(urls); + return urls + }); + + const fast_play = computed(() => { + console.log('fast_play'); + return vod_urls.value&&vod_urls.value.length>0?vod_urls.value[0][0].url:''; + }); + return { items:items, hotsuggs:hotsuggs, @@ -348,6 +345,9 @@ const app = createApp({ details:details, dinfo:dinfo, vod_desc:vod_desc, + vod_tabs:vod_tabs, + vod_urls:vod_urls, + fast_play:fast_play, } }, }); diff --git a/templates/cms/mxpro/homeContent.html b/templates/cms/mxpro/homeContent.html index 57f7c2b..026b800 100644 --- a/templates/cms/mxpro/homeContent.html +++ b/templates/cms/mxpro/homeContent.html @@ -64,7 +64,7 @@ @@ -94,7 +94,7 @@ @@ -402,6 +402,10 @@ const app = createApp({ const hotsuggs = ref({ data:[] }); + try { + items.value = JSON.parse(sessionStorage.getItem('items')); + hotsuggs.value = JSON.parse(sessionStorage.getItem('hotsuggs')); + }catch (e) {} return { items:items, hotsuggs:hotsuggs,