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参数)
+ });
+ })