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 @@ - +
- -Copyright © 2008-2023 技术支持:{{ctx.web_name}}
+ +