From 93bb0735bcb7076922ae7f4dc9604e72ecbc4cd8 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Sun, 6 May 2018 23:25:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E7=82=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/version.txt | 2 +- static/embed.js | 11 +++++++---- tpl/user/header.php | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/functions/version.txt b/functions/version.txt index 03298bf..8b0ed5d 100644 --- a/functions/version.txt +++ b/functions/version.txt @@ -1 +1 @@ -v1.1(20180504) \ No newline at end of file +v1.1(20180506) \ No newline at end of file diff --git a/static/embed.js b/static/embed.js index 35b1a4b..0a70140 100644 --- a/static/embed.js +++ b/static/embed.js @@ -9,10 +9,13 @@ layui.use(['layer', 'form','element','upload','flow'], function(){ var element = layui.element; var upload = layui.upload; var flow = layui.flow; - //当你执行这样一个方法时,即对页面中的全部带有lay-src的img元素开启了懒加载(当然你也可以指定相关img) - // flow.lazyimg({ - // elem:'#found-img img' - // }); + //图片懒加载 + flow.lazyimg({ + elem:'#found-img img' + }); + flow.lazyimg({ + elem:'#adminpic img' + }); //首页拖拽上传 upload.render({ diff --git a/tpl/user/header.php b/tpl/user/header.php index d9a0846..0aec3d1 100644 --- a/tpl/user/header.php +++ b/tpl/user/header.php @@ -12,7 +12,7 @@ - +