From 494516f58b4271ce68f19ffa5c90c478e938bcbd 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: Thu, 11 May 2023 16:55:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E5=8A=9F=E8=83=BD=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/更新日志.md | 4 ++ js/version.txt | 2 +- templates/cms/mxpro/css/commonUI.css | 22 +++++- templates/cms/mxpro/detailContent.html | 95 ++++++++++++++++++++++++-- templates/cms/mxpro/js/commonUI.js | 35 ++++++++++ 5 files changed, 150 insertions(+), 8 deletions(-) diff --git a/doc/更新日志.md b/doc/更新日志.md index bf3317b..8140aa6 100644 --- a/doc/更新日志.md +++ b/doc/更新日志.md @@ -1,3 +1,7 @@ +###### 2023/05/11 +- [X] 3.9.41beta23 完成播放功能 +- [X] 优化部分显示bug + ###### 2023/05/10 - [X] 3.9.41beta18 后台管理预览源增加搜索页 - [X] 修复js0搜索不支持翻页问题 diff --git a/js/version.txt b/js/version.txt index 4f1d812..7c87d9d 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.41beta22 \ No newline at end of file +3.9.41beta23 \ No newline at end of file diff --git a/templates/cms/mxpro/css/commonUI.css b/templates/cms/mxpro/css/commonUI.css index 83b72d3..24d7ad0 100644 --- a/templates/cms/mxpro/css/commonUI.css +++ b/templates/cms/mxpro/css/commonUI.css @@ -6,5 +6,25 @@ a.links{ max-width: 100%; border-radius: 2px;height:155px; overflow: hidden; -pointer-events: none; +/*pointer-events: none;*/ +} + +.showPhoto { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + z-index: 99999; + display: flex; + align-items: center; + justify-content: center; +} + +.showPhoto .img { + display: block; + margin: auto 0; + max-width: 100%; + text-align: center; } \ No newline at end of file diff --git a/templates/cms/mxpro/detailContent.html b/templates/cms/mxpro/detailContent.html index 7f2ca64..bc07cd1 100644 --- a/templates/cms/mxpro/detailContent.html +++ b/templates/cms/mxpro/detailContent.html @@ -44,9 +44,15 @@
@@ -65,7 +71,7 @@ 详情

@@ -124,7 +130,7 @@ diff --git a/templates/cms/mxpro/js/commonUI.js b/templates/cms/mxpro/js/commonUI.js index f3fa53a..8ecfb15 100644 --- a/templates/cms/mxpro/js/commonUI.js +++ b/templates/cms/mxpro/js/commonUI.js @@ -322,6 +322,41 @@ const stuLinksComponent = { delimiters: ['{[', ']}'],//delimiters:改变默认的插值符号 }; +const StuImageComponent = { + template:` +
+ 图片加载失败 +
+ `, + setup(props, context) { + console.log('StuImage组件加载完毕'); + const methods = { + closeImage(e) { + //子组件可以使用 context.emit 触发父组件的自定义事件 + // console.log(context.emit); + // console.log('调用父组件 closeImage'); + context.emit('close_image'); + }, + }; + return { + ...methods, + // visible + } + }, + props: { + url: { + type: String, + default: "", + }, + visible: { + type: Boolean, + default: false, + }, + },//配置需要传入的属性 + emits :['close_image'], + delimiters: ['{[', ']}'],//delimiters:改变默认的插值符号 +} + //下面的注册组件方法无法使用,需要在app里去注册 // Vue.component('copy-right', copyRightComponent); // Vue.component('foot-button', footButtonComponent);