From 5dd8973e65fe2ed698b1dff272c149cd66cdd366 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 11:55:25 +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 --- controllers/web.py | 19 +- templates/cms/mxpro/detailContent.html | 395 ++++++++++++++++++++++++- templates/cms/mxpro/homeContent.html | 145 ++++----- templates/cms/mxpro/js/home.js | 4 +- 4 files changed, 483 insertions(+), 80 deletions(-) diff --git a/controllers/web.py b/controllers/web.py index 9975663..0a40de1 100644 --- a/controllers/web.py +++ b/controllers/web.py @@ -45,7 +45,18 @@ def web_index(web_name, theme): ctx['pwd'] = js0_password ctx['path'] = request.path ctx['url'] = request.url - try: - return render_template(f'cms/{theme}/homeContent.html', ctx=ctx) - except Exception as e: - return render_template('404.html', ctx=ctx, error=f'发生错误的原因可能是下面路径未找到:{e}') \ No newline at end of file + vod_id = getParmas('vod_id') + vod_name = getParmas('vod_name') + ctx['vod_id'] = vod_id + ctx['vod_name'] = vod_name + + if vod_id and vod_name: + try: + return render_template(f'cms/{theme}/detailContent.html', ctx=ctx) + except Exception as e: + return render_template('404.html', ctx=ctx, error=f'发生错误的原因可能是下面路径未找到:{e}') + else: + try: + return render_template(f'cms/{theme}/homeContent.html', ctx=ctx) + except Exception as e: + return render_template('404.html', ctx=ctx, error=f'发生错误的原因可能是下面路径未找到:{e}') \ No newline at end of file diff --git a/templates/cms/mxpro/detailContent.html b/templates/cms/mxpro/detailContent.html index 566549b..c79700b 100644 --- a/templates/cms/mxpro/detailContent.html +++ b/templates/cms/mxpro/detailContent.html @@ -1,10 +1,399 @@ - + - - Title +{{ctx.vod_name}}详情介绍-{{ctx.vod_name}}在线观看-{{ctx.vod_name}}迅雷下载 - {{ctx.web_name}} + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + +
+
+
+ +
+
+
+
+
+
+
+ + + +
+
+

{{ctx.vod_name}}

+ +

状态:{[dinfo.vod_remarks]}

+

{[dinfo.vod_area]}

+

{[dinfo.vod_year]}

+

{[dinfo.vod_director]}

+

{[dinfo.vod_actor]}

+ +

+ 简介: + {[vod_desc]} + + 详情 +

+
+ 立即播放 + +
+
+
+

+ 扫码用手机观看 +
+
+ +
+ 推荐线路!1080P超清画质无广告高速播放 +

LZ线路

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

QY线路

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

TX线路

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

YK线路

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

FF线路

+ +
+ + + +
    + + + + + + + + + + + + + +
+
+
+
+
+
+ + + + +
+
+
+ + +

Copyright © 2008-2023 技术支持:{{ctx.web_name}} 

+ +
+
+
+ +
+ +
+ + + +
+
+ +
+
+ + +
+
+ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/cms/mxpro/homeContent.html b/templates/cms/mxpro/homeContent.html index 0c24aca..57f7c2b 100644 --- a/templates/cms/mxpro/homeContent.html +++ b/templates/cms/mxpro/homeContent.html @@ -62,7 +62,7 @@