From e29357a612da43d6366e65e3c90b88d3536e4bb5 Mon Sep 17 00:00:00 2001 From: Ricky Date: Fri, 30 Apr 2021 14:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E4=BE=8B=E6=BC=94=E7=A4=BA=E5=BC=B9?= =?UTF-8?q?=E5=B1=82=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0=E7=9B=B8=E5=86=8C?= =?UTF-8?q?=E5=B1=82=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/demo/modal/layer.html | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/ruoyi-admin/src/main/resources/templates/demo/modal/layer.html b/ruoyi-admin/src/main/resources/templates/demo/modal/layer.html index 31c642480..aeba630ef 100644 --- a/ruoyi-admin/src/main/resources/templates/demo/modal/layer.html +++ b/ruoyi-admin/src/main/resources/templates/demo/modal/layer.html @@ -2,6 +2,10 @@ +
@@ -103,6 +107,7 @@ +
@@ -251,6 +256,33 @@ // 需要关闭窗口的url $.modal.closeTab(prefix + "/form"); }) + + $("#button-open-16").click(function(){ + var json = { + "title": "若依相册", //相册标题 + "id": 123, //相册id + "start": 0, //初始显示的图片序号,默认0 + "data": [ //相册包含的图片,数组格式 + { + "alt": "默认头像", + "pid": 1, //图片id + "src": "/img/profile.jpg", //原图地址 + "thumb": "/img/profile.jpg" //缩略图地址 + }, + { + "alt": "打赏", + "pid": 2, //图片id + "src": "/img/pay.png", //原图地址 + "thumb": "/img/pay.png" //缩略图地址 + } + ] + }; + layer.photos({ + photos: json, + closeBtn: 0, //右上角按钮,可通过配置1和2来展示,如果不显示,则closeBtn: 0 + anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数) + }); + })