From 437b64698bbdac353332f3aaf20cd7f505476619 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: Wed, 10 May 2023 18:49:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=B8=80=E7=BA=A7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/web.py | 2 + js/version.txt | 2 +- templates/cms/mxpro/categoryContent.html | 685 ++++++++--------------- templates/cms/mxpro/detailContent.html | 2 +- templates/cms/mxpro/homeContent.html | 8 +- templates/cms/mxpro/js/commonUI.js | 57 +- templates/cms/mxpro/searchContent.html | 2 +- 7 files changed, 297 insertions(+), 461 deletions(-) diff --git a/controllers/web.py b/controllers/web.py index 8b18605..f55c0b9 100644 --- a/controllers/web.py +++ b/controllers/web.py @@ -50,11 +50,13 @@ def web_index(web_name, theme): wd = getParmas('wd') pg = getParmas('pg') or '1' tid = getParmas('tid') + tname = getParmas('tname') ctx['vod_id'] = vod_id ctx['vod_name'] = vod_name ctx['wd'] = wd ctx['pg'] = pg ctx['tid'] = tid + ctx['tname'] = tname try: if vod_id and vod_name: diff --git a/js/version.txt b/js/version.txt index ab16cce..0691c72 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.41beta19 \ No newline at end of file +3.9.41beta20 \ No newline at end of file diff --git a/templates/cms/mxpro/categoryContent.html b/templates/cms/mxpro/categoryContent.html index 256c8c6..f1f2d82 100644 --- a/templates/cms/mxpro/categoryContent.html +++ b/templates/cms/mxpro/categoryContent.html @@ -1,109 +1,257 @@ - 电影 - 我爱电影网 +{{ctx.tname}} - {{ctx.web_name}} - - - - - - - - - + + + + + + + + + + + + + + + +
-
-
-
- - - + + +
+ +
+
+
+ 展开 + + 已选择:最新-{{ctx.tname}} + + ,共检索到“{[sitems.total]}”条结果 +
+ + + +
+ + +
+ +
+ + +
+ +
+ +
+
+ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + -
-
- - -
-
-
- 展开 - - 已选择:最新-电影 - - ,共检索到“48838”条结果 -
- - -
- -
-
- - -
- - - - -
- - -
- - -
-
-
- - -

Copyright © 2008-2022 技术支持:我爱电影网 

- -
-
-
- -
- -
- - - -
-
- -
-
- - -
- - - - - - - - - - - - + \ No newline at end of file diff --git a/templates/cms/mxpro/detailContent.html b/templates/cms/mxpro/detailContent.html index 2444c73..4c991ad 100644 --- a/templates/cms/mxpro/detailContent.html +++ b/templates/cms/mxpro/detailContent.html @@ -161,7 +161,7 @@ const app = createApp({ console.log('---setup---'); //获取当前实例 - // const {ctx, proxy} = getCurrentInstance(); + const {self, proxy} = getCurrentInstance(); const web_name = '{{ctx.web_name}}'; const pwd = '{{ctx.pwd}}'; const vod_id = '{{ctx.vod_id}}'; diff --git a/templates/cms/mxpro/homeContent.html b/templates/cms/mxpro/homeContent.html index fedb87e..e49b91f 100644 --- a/templates/cms/mxpro/homeContent.html +++ b/templates/cms/mxpro/homeContent.html @@ -40,7 +40,7 @@
- +
@@ -260,7 +260,7 @@ const app = createApp({ console.log('---setup---'); //获取当前实例 - // const {ctx, proxy} = getCurrentInstance(); + const {self, proxy} = getCurrentInstance(); const web_name = '{{ctx.web_name}}'; const pwd = '{{ctx.pwd}}'; console.log(web_name); @@ -280,6 +280,7 @@ const app = createApp({ const hotsuggs = ref({ data:[] }); + const isHome = ref(true); try { items.value = JSON.parse(sessionStorage.getItem('items'))||items.value; hotsuggs.value = JSON.parse(sessionStorage.getItem('hotsuggs'))||hotsuggs.value; @@ -288,7 +289,8 @@ const app = createApp({ ctx:ctx, items:items, hotsuggs:hotsuggs, - web_name:web_name + web_name:web_name, + isHome:isHome, } }, }); diff --git a/templates/cms/mxpro/js/commonUI.js b/templates/cms/mxpro/js/commonUI.js index 39cee17..db81635 100644 --- a/templates/cms/mxpro/js/commonUI.js +++ b/templates/cms/mxpro/js/commonUI.js @@ -114,9 +114,9 @@ const stuheaderComponent = {
  • @@ -144,9 +144,9 @@ const stuheaderComponent = {
    @@ -163,6 +163,8 @@ const stuheaderComponent = { ctx:{}, items:{class:[],list:[]}, hotsuggs:{data:[]}, + tid:String, + isHome:Boolean, }, //配置需要传入的属性 delimiters: ['{[', ']}'],//delimiters:改变默认的插值符号 }; @@ -203,6 +205,49 @@ const stubannerComponent = { delimiters: ['{[', ']}'],//delimiters:改变默认的插值符号 } +const stufilterComponent = { + template:` + + `, + setup(props, context) { + console.log('stufilter组件加载完毕'); + // console.log(props); + const items = props.items; + const tid = props.tid; + const now_filters = computed(() => { + console.log('计算now_filters'); + // items.value.class.find(it=>it.type_id===tid); + let now_filters = items&&items.filters? items.filters[tid]:[]; + console.log(now_filters); + return now_filters + }); + return { + now_filters:now_filters + } + }, + props:{ + items:{}, + now_filters:[], + tid:String, + ctx:{}, + item:{}, + }, //配置需要传入的属性 + delimiters: ['{[', ']}'],//delimiters:改变默认的插值符号 +} + //下面的注册组件方法无法使用,需要在app里去注册 // Vue.component('copy-right', copyrightComponent); // Vue.component('foot-button', footbuttonComponent); diff --git a/templates/cms/mxpro/searchContent.html b/templates/cms/mxpro/searchContent.html index 5c86a68..498cf26 100644 --- a/templates/cms/mxpro/searchContent.html +++ b/templates/cms/mxpro/searchContent.html @@ -139,7 +139,7 @@ const app = createApp({ console.log('---setup---'); //获取当前实例 - // const {ctx, proxy} = getCurrentInstance(); + const {self, proxy} = getCurrentInstance(); const web_name = '{{ctx.web_name}}'; const pwd = '{{ctx.pwd}}'; const wd = '{{ctx.wd}}';