Browse Source

一点优化

pull/16/head
xiaoz 7 years ago
parent
commit
93bb0735bc
  1. 2
      functions/version.txt
  2. 11
      static/embed.js
  3. 2
      tpl/user/header.php

2
functions/version.txt

@ -1 +1 @@ @@ -1 +1 @@
v1.1(20180504)
v1.1(20180506)

11
static/embed.js

@ -9,10 +9,13 @@ layui.use(['layer', 'form','element','upload','flow'], function(){ @@ -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({

2
tpl/user/header.php

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="Bookmark" href="favicon.ico" />
<link rel="stylesheet" href="./static/layui/css/layui.css">
<link rel="stylesheet" href="./static/style.css?v=1.1">
<link rel="stylesheet" href="./static/style.css?v=1.10506">
<script src = "https://libs.xiaoz.top/clipBoard.js/clipBoard.min.js"></script>
</head>
<body>

Loading…
Cancel
Save