master
zhaocheng 4 years ago
parent 5bf3aba90f
commit a2c5890cbd
  1. 2
      public/static/.gitignore
  2. 46
      public/static/css/default.css
  3. 69
      public/static/js/default.js
  4. 4
      public/static/plugins/jquery/jquery.min.js
  5. 2
      public/static/plugins/layui/css/layui.css
  6. 2
      public/static/plugins/layui/css/layui.mobile.css
  7. 2
      public/static/plugins/layui/css/modules/code.css
  8. 2
      public/static/plugins/layui/css/modules/laydate/default/laydate.css
  9. BIN
      public/static/plugins/layui/css/modules/layer/default/icon-ext.png
  10. BIN
      public/static/plugins/layui/css/modules/layer/default/icon.png
  11. 2
      public/static/plugins/layui/css/modules/layer/default/layer.css
  12. BIN
      public/static/plugins/layui/css/modules/layer/default/loading-0.gif
  13. BIN
      public/static/plugins/layui/css/modules/layer/default/loading-1.gif
  14. BIN
      public/static/plugins/layui/css/modules/layer/default/loading-2.gif
  15. BIN
      public/static/plugins/layui/font/iconfont.eot
  16. 554
      public/static/plugins/layui/font/iconfont.svg
  17. BIN
      public/static/plugins/layui/font/iconfont.ttf
  18. BIN
      public/static/plugins/layui/font/iconfont.woff
  19. BIN
      public/static/plugins/layui/font/iconfont.woff2
  20. BIN
      public/static/plugins/layui/images/face/0.gif
  21. BIN
      public/static/plugins/layui/images/face/1.gif
  22. BIN
      public/static/plugins/layui/images/face/10.gif
  23. BIN
      public/static/plugins/layui/images/face/11.gif
  24. BIN
      public/static/plugins/layui/images/face/12.gif
  25. BIN
      public/static/plugins/layui/images/face/13.gif
  26. BIN
      public/static/plugins/layui/images/face/14.gif
  27. BIN
      public/static/plugins/layui/images/face/15.gif
  28. BIN
      public/static/plugins/layui/images/face/16.gif
  29. BIN
      public/static/plugins/layui/images/face/17.gif
  30. BIN
      public/static/plugins/layui/images/face/18.gif
  31. BIN
      public/static/plugins/layui/images/face/19.gif
  32. BIN
      public/static/plugins/layui/images/face/2.gif
  33. BIN
      public/static/plugins/layui/images/face/20.gif
  34. BIN
      public/static/plugins/layui/images/face/21.gif
  35. BIN
      public/static/plugins/layui/images/face/22.gif
  36. BIN
      public/static/plugins/layui/images/face/23.gif
  37. BIN
      public/static/plugins/layui/images/face/24.gif
  38. BIN
      public/static/plugins/layui/images/face/25.gif
  39. BIN
      public/static/plugins/layui/images/face/26.gif
  40. BIN
      public/static/plugins/layui/images/face/27.gif
  41. BIN
      public/static/plugins/layui/images/face/28.gif
  42. BIN
      public/static/plugins/layui/images/face/29.gif
  43. BIN
      public/static/plugins/layui/images/face/3.gif
  44. BIN
      public/static/plugins/layui/images/face/30.gif
  45. BIN
      public/static/plugins/layui/images/face/31.gif
  46. BIN
      public/static/plugins/layui/images/face/32.gif
  47. BIN
      public/static/plugins/layui/images/face/33.gif
  48. BIN
      public/static/plugins/layui/images/face/34.gif
  49. BIN
      public/static/plugins/layui/images/face/35.gif
  50. BIN
      public/static/plugins/layui/images/face/36.gif
  51. BIN
      public/static/plugins/layui/images/face/37.gif
  52. BIN
      public/static/plugins/layui/images/face/38.gif
  53. BIN
      public/static/plugins/layui/images/face/39.gif
  54. BIN
      public/static/plugins/layui/images/face/4.gif
  55. BIN
      public/static/plugins/layui/images/face/40.gif
  56. BIN
      public/static/plugins/layui/images/face/41.gif
  57. BIN
      public/static/plugins/layui/images/face/42.gif
  58. BIN
      public/static/plugins/layui/images/face/43.gif
  59. BIN
      public/static/plugins/layui/images/face/44.gif
  60. BIN
      public/static/plugins/layui/images/face/45.gif
  61. BIN
      public/static/plugins/layui/images/face/46.gif
  62. BIN
      public/static/plugins/layui/images/face/47.gif
  63. BIN
      public/static/plugins/layui/images/face/48.gif
  64. BIN
      public/static/plugins/layui/images/face/49.gif
  65. BIN
      public/static/plugins/layui/images/face/5.gif
  66. BIN
      public/static/plugins/layui/images/face/50.gif
  67. BIN
      public/static/plugins/layui/images/face/51.gif
  68. BIN
      public/static/plugins/layui/images/face/52.gif
  69. BIN
      public/static/plugins/layui/images/face/53.gif
  70. BIN
      public/static/plugins/layui/images/face/54.gif
  71. BIN
      public/static/plugins/layui/images/face/55.gif
  72. BIN
      public/static/plugins/layui/images/face/56.gif
  73. BIN
      public/static/plugins/layui/images/face/57.gif
  74. BIN
      public/static/plugins/layui/images/face/58.gif
  75. BIN
      public/static/plugins/layui/images/face/59.gif
  76. BIN
      public/static/plugins/layui/images/face/6.gif
  77. BIN
      public/static/plugins/layui/images/face/60.gif
  78. BIN
      public/static/plugins/layui/images/face/61.gif
  79. BIN
      public/static/plugins/layui/images/face/62.gif
  80. BIN
      public/static/plugins/layui/images/face/63.gif
  81. BIN
      public/static/plugins/layui/images/face/64.gif
  82. BIN
      public/static/plugins/layui/images/face/65.gif
  83. BIN
      public/static/plugins/layui/images/face/66.gif
  84. BIN
      public/static/plugins/layui/images/face/67.gif
  85. BIN
      public/static/plugins/layui/images/face/68.gif
  86. BIN
      public/static/plugins/layui/images/face/69.gif
  87. BIN
      public/static/plugins/layui/images/face/7.gif
  88. BIN
      public/static/plugins/layui/images/face/70.gif
  89. BIN
      public/static/plugins/layui/images/face/71.gif
  90. BIN
      public/static/plugins/layui/images/face/8.gif
  91. BIN
      public/static/plugins/layui/images/face/9.gif
  92. 2
      public/static/plugins/layui/lay/modules/carousel.js
  93. 2
      public/static/plugins/layui/lay/modules/code.js
  94. 2
      public/static/plugins/layui/lay/modules/colorpicker.js
  95. 2
      public/static/plugins/layui/lay/modules/element.js
  96. 2
      public/static/plugins/layui/lay/modules/flow.js
  97. 2
      public/static/plugins/layui/lay/modules/form.js
  98. 5
      public/static/plugins/layui/lay/modules/jquery.js
  99. 2
      public/static/plugins/layui/lay/modules/laydate.js
  100. 2
      public/static/plugins/layui/lay/modules/layedit.js
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,2 +0,0 @@
*
!.gitignore

@ -0,0 +1,46 @@
.layui-card-header.layui-card-header-auto {
padding-top: 15px;
padding-bottom: 15px;
height: auto;
}
.layui-layout-admin .layui-footer {
left: 0;
}
.layui-container-fluid {
height: calc(100% - 104px);
overflow-y: auto;
}
.layui-form-radio,.layui-form-switch {
margin-top: 0;
}
.layui-text-right {
text-align: right;
}
#lock-screen {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 9999;
background: rgba(0,0,0,.8);
display: none;
align-items: center;
justify-content: center;
}
#lock-screen .lock-screen {
background: #fff;
padding: 80px 30px;
padding-right: 75px;
border-radius: 5px;
}
#password {
width: 240px;
}

@ -0,0 +1,69 @@
$.fn.serializeObject = function() {
var obj = {};
var arr = this.serializeArray();
$.each(arr, function() {
if (obj[this.name]) {
if (!obj[this.name].push) {
obj[this.name] = [ obj[this.name] ];
}
obj[this.name].push(this.value || '');
} else {
obj[this.name] = this.value || '';
}
});
return obj;
};
$.ajaxSetup({
async : false,
global: true,
complete: function (xhr,status) {
if(xhr.responseJSON.code == -1){
$('#lock-screen').css('display','flex');
}
}
});
function login(event){
$.post('/index/login', {password: $('#password').val()}, function (ret) {
if(ret.code <= 0){
layer.msg(ret.msg);
}else {
layer.msg(ret['msg'],function(){
location.reload();
});
}
})
}
function getUrlParam(type){
var url = location.href;
var urlStrArr = url.slice((url.indexOf('?') + 1));
var ret;
if(type === 'String'){
return urlStrArr;
}
if(type === 'Array'){
ret = [];
}else if(type === 'Object'){
ret = {};
}
$.each(urlStrArr.split('&'), function (i, d) {
var temp = d.split('=');
ret[temp[0]] = temp[1];
});
return ret;
}
$(function(){
$('.layui-nav-item a').each(function(i,elem){
console.log(elem.href);
if(location.href.indexOf(elem.href) != -1){
$(elem).closest('.layui-nav-item').addClass('layui-this');
}
if(location.href == 'http://www.excelhandle.com/' && elem.href == 'http://www.excelhandle.com/index/index.html'){
$(elem).closest('.layui-nav-item').addClass('layui-this');
}
});
$('#layui-content').height($(window).height() - 140);
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
/** layui-v2.5.6 MIT License By https://www.layui.com */
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 299 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

@ -0,0 +1,2 @@
/** layui-v2.5.6 MIT License By https://www.layui.com */
;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"&#xe619;":"&#xe603;")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"&#xe61a;":"&#xe602;")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});

@ -0,0 +1,2 @@
/** layui-v2.5.6 MIT License By https://www.layui.com */
;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
/** layui-v2.5.6 MIT License By https://www.layui.com */
;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;</i>';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="<cite>加载更多</cite>",h=l('<div class="layui-flow-more"><a href="javascript:;">'+d+"</a></div>");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),!i&&f.width()&&(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;s<t.lazyimg.elem.length;s++){var v=t.lazyimg.elem.eq(s),y=a?function(){return v.offset().top-n.offset().top+m}():v.offset().top;if(c(v,f),i=s,y>u)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save