From 851f80e83dfa34ce90283b096b72ce91bee18fc6 Mon Sep 17 00:00:00 2001 From: zeekling Date: Mon, 17 Aug 2020 22:59:07 +0800 Subject: [PATCH] =?UTF-8?q?bolo-fantastic=E5=9B=BE=E7=89=87=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bolo-fantastic/footer.ftl | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/bolo-fantastic/footer.ftl b/bolo-fantastic/footer.ftl index 5af8e86..83658f3 100644 --- a/bolo-fantastic/footer.ftl +++ b/bolo-fantastic/footer.ftl @@ -89,21 +89,23 @@ $(document).ready(function(){ var w = img.width; var h = img.height; var url = $(img).attr("src"); - showImage(w, h, url); + var alt = $(img).attr("alt"); + showImage(w, h, url, alt); }); }); - -function showImage(w, h,url){ - layer.open({ - type:1, - maxmin:true, - offset: 'auto', - area: [w, h], - title: "${blogTitle!}图片显示", - content: '${blogTitle!}图片' +function showImage(w, h,url, alt){ + layer.photos({ + photos:{ + "title":"${blogTitle!}图片显示", + "id":"", + "data":[{ + "alt":alt, + "src":url, + "thumb":url + }] + },anim: 5 }); } - function enterSearch(event){ if(event.keyCode == "13"){ search();