Commit 9105d7a2 by mushishixian

temp

parent a047dfb1
Showing with 12 additions and 1775 deletions
layui.use(['layer', 'form', 'table', 'util', 'admin', 'xmSelect'], function () {
var $ = layui.jquery;
var layer = layui.layer;
var form = layui.form;
var table = layui.table;
var util = layui.util;
var admin = layui.admin;
var xmSelect = layui.xmSelect;
/* 渲染表格 */
var insTb = table.render({
elem: '#userTable',
url: '../../json/user.json',
page: true,
toolbar: ['<p>',
'<button lay-event="add" class="layui-btn layui-btn-sm icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>&nbsp;',
'<button lay-event="del" class="layui-btn layui-btn-sm layui-btn-danger icon-btn"><i class="layui-icon">&#xe640;</i>删除</button>',
'</p>'].join(''),
cellMinWidth: 100,
cols: [[
{type: 'checkbox'},
{type: 'numbers'},
{field: 'username', title: '账号', sort: true},
{field: 'nickName', title: '用户名', sort: true},
{field: 'sex', title: '性别', sort: true},
{field: 'phone', title: '手机号', sort: true},
{
field: 'roleName', title: '角色', templet: function (d) {
return d.roles.map(function (item) {
return '<span class="layui-badge layui-badge-gray">' + item.roleName + '</span>';
}).join('&nbsp;&nbsp;');
}, sort: true, width: 150
},
{
field: 'createTime', title: '创建时间', templet: function (d) {
return util.toDateString(d.createTime);
}, sort: true
},
{field: 'state', title: '状态', templet: '#userTbState', sort: true, width: 100},
{title: '操作', toolbar: '#userTbBar', align: 'center', minWidth: 200}
]]
});
/* 表格搜索 */
form.on('submit(userTbSearch)', function (data) {
insTb.reload({where: data.field, page: {curr: 1}});
return false;
});
/* 表格工具条点击事件 */
table.on('tool(userTable)', function (obj) {
if (obj.event === 'edit') { // 修改
showEditModel(obj.data);
} else if (obj.event === 'del') { // 删除
doDel(obj);
} else if (obj.event === 'reset') { // 重置密码
resetPsw(obj);
}
});
/* 表格头工具栏点击事件 */
table.on('toolbar(userTable)', function (obj) {
if (obj.event === 'add') { // 添加
showEditModel();
} else if (obj.event === 'del') { // 删除
var checkRows = table.checkStatus('userTable');
if (checkRows.data.length === 0) {
layer.msg('请选择要删除的数据', {icon: 2});
return;
}
var ids = checkRows.data.map(function (d) {
return d.userId;
});
doDel({ids: ids});
}
});
/* 显示表单弹窗 */
function showEditModel(mData) {
admin.open({
type: 1,
title: (mData ? '修改' : '添加') + '用户',
content: $('#userEditDialog').html(),
success: function (layero, dIndex) {
// 回显表单数据
form.val('userEditForm', mData);
// 表单提交事件
form.on('submit(userEditSubmit)', function (data) {
data.field.roleIds = insRoleSel.getValue('valueStr');
var loadIndex = layer.load(2);
$.get(mData ? '../../json/ok.json' : '../../json/ok.json', data.field, function (res) { // 实际项目这里url可以是mData?'user/update':'user/add'
layer.close(loadIndex);
if (res.code === 200) {
layer.close(dIndex);
layer.msg(res.msg, {icon: 1});
insTb.reload({page: {curr: 1}});
} else {
layer.msg(res.msg, {icon: 2});
}
}, 'json');
return false;
});
// 渲染多选下拉框
var insRoleSel = xmSelect.render({
el: '#userEditRoleSel',
name: 'userEditRoleSel',
layVerify: 'required',
layVerType: 'tips',
data: [{
name: '管理员',
value: 1
}, {
name: '普通用户',
value: 2
}, {
name: '游客',
value: 3
}]
});
// 回显选中角色
if (mData && mData.roles) {
insRoleSel.setValue(mData.roles.map(function (item) {
return item.roleId;
}));
}
// 禁止弹窗出现滚动条
$(layero).children('.layui-layer-content').css('overflow', 'visible');
}
});
}
/* 删除 */
function doDel(obj) {
layer.confirm('确定要删除选中数据吗?', {
skin: 'layui-layer-admin',
shade: .1
}, function (i) {
layer.close(i);
var loadIndex = layer.load(2);
$.get('../../json/ok.json', {
id: obj.data ? obj.data.userId : '',
ids: obj.ids ? obj.ids.join(',') : ''
}, function (res) {
layer.close(loadIndex);
if (res.code === 200) {
layer.msg(res.msg, {icon: 1});
insTb.reload({page: {curr: 1}});
} else {
layer.msg(res.msg, {icon: 2});
}
}, 'json');
});
}
/* 修改用户状态 */
form.on('switch(userTbStateCk)', function (obj) {
var loadIndex = layer.load(2);
$.get('../../json/ok.json', {
userId: obj.elem.value,
state: obj.elem.checked ? 0 : 1
}, function (res) {
layer.close(loadIndex);
if (res.code === 200) {
layer.msg(res.msg, {icon: 1});
} else {
layer.msg(res.msg, {icon: 2});
$(obj.elem).prop('checked', !obj.elem.checked);
form.render('checkbox');
}
}, 'json');
});
/* 重置密码 */
function resetPsw(obj) {
layer.confirm('确定要重置“' + obj.data.nickName + '”的登录密码吗?', {
skin: 'layui-layer-admin',
shade: .1
}, function (i) {
layer.close(i);
var loadIndex = layer.load(2);
$.get('../../json/ok.json', {
userId: obj.data.userId
}, function (res) {
layer.close(loadIndex);
if (res.code === 200) {
layer.msg(res.msg, {icon: 1});
} else {
layer.msg(res.msg, {icon: 2});
}
}, 'json');
});
}
});
\ No newline at end of file
This diff could not be displayed because it is too large.
/** layui-v2.5.6 MIT License By https://www.layui.com */
;layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='<li lay-id="'+(i.id||"")+'"'+(i.attr?' lay-attr="'+i.attr+'"':"")+">"+(i.title||"unnaming")+"</li>";return s[0]?s.before(r):n.append(r),o.append('<div class="layui-tab-item">'+(i.content||"")+"</div>"),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('<span class="layui-unselect layui-tab-bar" '+r+"><i "+r+' class="layui-icon">&#xe61a;</i></span>');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('<i class="layui-icon layui-unselect '+l+'">&#x1006;</i>');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html("&#xe602;"),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"&#xe61a;":"&#xe602;"),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a('<span class="'+c+'"></span>'),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append('<span class="'+y+'"></span>'),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after("<span "+i+">"+e+"</span>")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html('<span class="'+t+'-text">'+l+"</span>")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append('<i class="layui-icon layui-colla-icon">'+(l?"&#xe602;":"&#xe61a;")+"</i>"),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)});
\ No newline at end of file
/** layui-v2.5.6 MIT License By https://www.layui.com */
;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=this,n=t(r+'[lay-filter="'+e+'"]');return n.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e),a.getValue(e)},u.prototype.getValue=function(e,i){i=i||t(r+'[lay-filter="'+e+'"]').eq(0);var a={},n={},l=i.find("input,select,textarea");return layui.each(l,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];a[i]=0|a[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+a[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(n[t.name]=t.value)}}),n},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),g=i.find("dl"),x=g.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=g.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),x.removeClass(o),y=null,x.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),T()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},T=function(){var e=g.children("dd."+s);if(e[0]){var t=e.position().top,i=g.height(),a=e.height();t>i&&g.scrollTop(t+g.scrollTop()-i+a-5),t<0&&g.scrollTop(t+g.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),g.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=g.children("dd."+s);if(g.children("dd."+o)[0]&&"next"===t){var i=g.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n<e.index()&&!i.hasClass(s))return i.eq(0).prev()[0]?i.eq(0).prev():g.children(":last")}return a&&a[0]?a:y&&y[0]?y:e}();return l=r[t](),n=r[t]("dd:not(."+o+")"),l[0]?(y=r[t](),n[0]&&!n.hasClass(c)||!y[0]?(n.addClass(s).siblings().removeClass(s),void T()):i(t,y)):y=null};38===t&&i("prev"),40===t&&i("next"),13===t&&(e.preventDefault(),g.children("dd."+s).trigger("click"))});var $=function(e,i,a){var n=0;layui.each(x,function(){var i=t(this),l=i.text(),r=l.indexOf(e)===-1;(""===e||"blur"===a?e!==l:r)&&n++,"keyup"===a&&i[r?"addClass":"removeClass"](o)});var l=n===x.length;return i(l),l},q=function(e){var t=this.value,i=e.keyCode;return 9!==i&&13!==i&&37!==i&&38!==i&&39!==i&&40!==i&&($(t,function(e){e?g.find("."+r)[0]||g.append('<p class="'+r+'">无匹配项</p>'):g.find("."+r).remove()},"keyup"),""===t&&g.find("."+r).remove(),void T())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),x.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['<div class="'+(h?"":"layui-unselect ")+a,(u?" layui-select-disabled":"")+'">','<div class="'+n+'">','<input type="text" placeholder="'+p+'" '+('value="'+(d?f.html():"")+'"')+(!u&&h?"":" readonly")+' class="layui-input'+(h?"":" layui-unselect")+(u?" "+c:"")+'">','<i class="layui-edge"></i></div>','<dl class="layui-anim layui-anim-upbit'+(r.find("optgroup")[0]?" layui-select-group":"")+'">',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("<dt>"+a.label+"</dt>"):t.push('<dd lay-value="'+a.value+'" class="'+(d===a.value?s:"")+(a.disabled?" "+c:"")+'">'+a.innerHTML+"</dd>"):t.push('<dd lay-value="" class="layui-select-tips">'+(a.innerHTML||i)+"</dd>")}),0===t.length&&t.push('<dd lay-value="" class="'+c+'">没有选项</dd>'),t.join("")}(r.find("*"))+"</dl>","</div>"].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['<div class="layui-unselect '+u[0],n.checked?" "+u[1]:"",o?" layui-checkbox-disbaled "+c:"",'"',r?' lay-skin="'+r+'"':"",">",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?"<span>"+n.title+"</span>":"",'<i class="layui-icon layui-icon-ok"></i>'].join(""),_switch:"<em>"+((n.checked?s[0]:s[1])||"")+"</em><i></i>"};return t[r]||t.checkbox}(),"</div>"].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["&#xe643;","&#xe63f;"],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['<div class="layui-unselect '+e,l.checked?" "+e+"ed":"",(o?" layui-radio-disbaled "+c:"")+'">','<i class="layui-anim layui-icon">'+i[l.checked?0:1]+"</i>","<div>"+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"</div>","</div>"].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=null,a=f.config.verify,s="layui-form-danger",o={},c=t(this),u=c.parents(r),d=u.find("*[lay-verify]"),v=c.parents("form")[0],h=c.attr("lay-filter");return layui.each(d,function(l,r){var o=t(this),c=o.attr("lay-verify").split("|"),u=o.attr("lay-verType"),d=o.val();if(o.removeClass(s),layui.each(c,function(t,l){var c,f="",v="function"==typeof a[l];if(a[l]){var c=v?f=a[l](d,r):!a[l][0].test(d);if(f=f||a[l][1],"required"===l&&(f=o.attr("lay-reqText")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof o.attr("lay-ignore")||"select"!==r.tagName.toLowerCase()&&!/^checkbox|radio$/.test(r.type)?o:o.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||setTimeout(function(){r.focus()},7),o.addClass(s),e=!0}}),e)return e}),!e&&(o=f.getValue(null,u),layui.event.call(this,l,"submit("+h+")",{elem:this,form:v,field:o}))},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(n){"use strict";function r(t,e){var n=t||e,r=/^(\d+)([ms]?)$/.exec(""+n);return(r[2]?{s:1e3,m:6e4}[r[2]]:1)*parseInt(n,10)}function o(t){var e=t.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-");return e=(e=(e=(e=e.replace(/\{path\}/g,n.document.location.pathname)).replace(/\{query\}/g,n.document.location.search)).replace(/\{hash\}/g,n.document.location.hash)).replace(/\{id\}/g,t.id)}function a(t,e){var n=t.settings.forced_root_block;return""===(e=d.trim(void 0===e?t.getBody().innerHTML:e))||new RegExp("^<"+n+"[^>]*>((\xa0|&nbsp;|[ \t]|<br[^>]*>)+?|)</"+n+">|<br>$","i").test(e)}function i(t){var e=parseInt(v.getItem(o(t)+"time"),10)||0;return!((new Date).getTime()-e>function(t){return r(t.settings.autosave_retention,"20m")}(t))||(g(t,!1),!1)}function u(t){var e=o(t);!a(t)&&t.isDirty()&&(v.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),v.setItem(e+"time",(new Date).getTime().toString()),function(t){t.fire("StoreDraft")}(t))}function s(t){var e=o(t);i(t)&&(t.setContent(v.getItem(e+"draft"),{format:"raw"}),function(t){t.fire("RestoreDraft")}(t))}function c(t,e){var n=function(t){return r(t.settings.autosave_interval,"30s")}(t);e.get()||(m.setInterval(function(){t.removed||u(t)},n),e.set(!0))}function f(t){t.undoManager.transact(function(){s(t),g(t)}),t.focus()}var l=function(t){function e(){return n}var n=t;return{get:e,set:function(t){n=t},clone:function(){return l(e())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),m=tinymce.util.Tools.resolve("tinymce.util.Delay"),v=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),d=tinymce.util.Tools.resolve("tinymce.util.Tools"),g=function(t,e){var n=o(t);v.removeItem(n+"draft"),v.removeItem(n+"time"),!1!==e&&function(t){t.fire("RemoveDraft")}(t)};function y(r){for(var o=[],t=1;t<arguments.length;t++)o[t-1]=arguments[t];return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o.concat(t);return r.apply(null,n)}}function p(n,t){return function(t){t.setDisabled(!i(n));function e(){return t.setDisabled(!i(n))}return n.on("StoreDraft RestoreDraft RemoveDraft",e),function(){return n.off("StoreDraft RestoreDraft RemoveDraft",e)}}}var D=tinymce.util.Tools.resolve("tinymce.EditorManager");!function e(){t.add("autosave",function(t){var e=l(!1);return function(t){t.editorManager.on("BeforeUnload",function(t){var e;d.each(D.get(),function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&function(t){return t.getParam("autosave_ask_before_unload",!0)}(t)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e&&(t.preventDefault(),t.returnValue=e)})}(t),function(t,e){c(t,e),t.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){f(t)},onSetup:p(t)}),t.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){f(t)},onSetup:p(t)})}(t,e),t.on("init",function(){(function(t){return t.getParam("autosave_restore_when_empty",!1)})(t)&&t.dom.isEmpty(t.getBody())&&s(t)}),function(t){return{hasDraft:y(i,t),storeDraft:y(u,t),restoreDraft:y(s,t),removeDraft:y(g,t),isEmpty:y(a,t)}}(t)})}()}(window);
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(i){"use strict";function n(){}function u(n){return function(){return n}}function t(){return a}var e,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=function(n,t){var e,r=n.dom,o=n.selection.getSelectedBlocks();o.length&&(e=r.getAttrib(o[0],"dir"),c.each(o,function(n){r.getParent(n.parentNode,'*[dir="'+t+'"]',r.getRoot())||r.setAttrib(n,"dir",e!==t?t:null)}),n.nodeChanged())},d=function(n){n.addCommand("mceDirectionLTR",function(){o(n,"ltr")}),n.addCommand("mceDirectionRTL",function(){o(n,"rtl")})},f=u(!1),l=u(!0),a=(e={fold:function(n,t){return n()},is:f,isSome:f,isNone:l,getOr:s,getOrThunk:N,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(undefined),or:s,orThunk:N,map:t,each:n,bind:t,exists:f,forall:l,filter:t,equals:m,equals_:m,toArray:function(){return[]},toString:u("none()")},Object.freeze&&Object.freeze(e),e);function m(n){return n.isNone()}function N(n){return n()}function s(n){return n}function g(n,t){var e=n.dom(),r=i.window.getComputedStyle(e).getPropertyValue(t),o=""!==r||function(n){var t=A(n)?n.dom().parentNode:n.dom();return t!==undefined&&null!==t&&t.ownerDocument.body.contains(t)}(n)?r:w(e,t);return null===o?undefined:o}function T(t,r){return function(e){function n(n){var t=p.fromDom(n.element);e.setActive(function(n){return"rtl"===g(n,"direction")?"rtl":"ltr"}(t)===r)}return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}}}var E,O,y=function(e){function n(){return o}function t(n){return n(e)}var r=u(e),o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:l,isNone:f,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:n,orThunk:n,map:function(n){return y(n(e))},each:function(n){n(e)},bind:t,exists:t,forall:t,filter:function(n){return n(e)?o:a},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(f,function(n){return t(e,n)})}};return o},D=function(n){return null===n||n===undefined?a:y(n)},h=function(n){if(null===n||n===undefined)throw new Error("Node cannot be null or undefined");return{dom:u(n)}},p={fromHtml:function(n,t){var e=(t||i.document).createElement("div");if(e.innerHTML=n,!e.hasChildNodes()||1<e.childNodes.length)throw i.console.error("HTML does not have a single root node",n),new Error("HTML must have a single root node");return h(e.childNodes[0])},fromTag:function(n,t){var e=(t||i.document).createElement(n);return h(e)},fromText:function(n,t){var e=(t||i.document).createTextNode(n);return h(e)},fromDom:h,fromPoint:function(n,t,e){var r=n.dom();return D(r.elementFromPoint(t,e)).map(h)}},_=(E="function",function(n){return function(n){if(null===n)return"null";var t=typeof n;return"object"==t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t}(n)===E}),v=Array.prototype.slice,C=(_(Array.from)&&Array.from,i.Node.ATTRIBUTE_NODE,i.Node.CDATA_SECTION_NODE,i.Node.COMMENT_NODE,i.Node.DOCUMENT_NODE,i.Node.DOCUMENT_TYPE_NODE,i.Node.DOCUMENT_FRAGMENT_NODE,i.Node.ELEMENT_NODE,i.Node.TEXT_NODE),A=(i.Node.PROCESSING_INSTRUCTION_NODE,i.Node.ENTITY_REFERENCE_NODE,i.Node.ENTITY_NODE,i.Node.NOTATION_NODE,"undefined"!=typeof i.window?i.window:Function("return this;")(),O=C,function(n){return function(n){return n.dom().nodeType}(n)===O}),w=function(n,t){return function(n){return n.style!==undefined&&_(n.style.getPropertyValue)}(n)?n.style.getPropertyValue(t):""},S=function(n){n.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return n.execCommand("mceDirectionLTR")},onSetup:T(n,"ltr")}),n.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return n.execCommand("mceDirectionRTL")},onSetup:T(n,"rtl")})};!function R(){r.add("directionality",function(n){d(n),S(n)})}()}(window);
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(l){"use strict";function n(){}function i(n){return function(){return n}}function t(){return a}var e,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=i(!1),u=i(!0),a=(e={fold:function(n,t){return n()},is:c,isSome:c,isNone:u,getOr:f,getOrThunk:s,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(undefined),or:f,orThunk:s,map:t,each:n,bind:t,exists:c,forall:u,filter:t,equals:o,equals_:o,toArray:function(){return[]},toString:i("none()")},Object.freeze&&Object.freeze(e),e);function o(n){return n.isNone()}function s(n){return n()}function f(n){return n}function m(n,t){return-1!==n.indexOf(t)}function g(n,t){return m(n.title.toLowerCase(),t)||function(n,t){for(var e=0,r=n.length;e<r;e++){if(t(n[e],e))return!0}return!1}(n.keywords,function(n){return m(n.toLowerCase(),t)})}function d(n,t,e){for(var r=[],o=t.toLowerCase(),i=e.fold(function(){return c},function(t){return function(n){return t<=n}}),u=0;u<n.length&&(0!==t.length&&!g(n[u],o)||(r.push({value:n[u]["char"],text:n[u].title,icon:n[u]["char"]}),!i(r.length)));u++);return r}function y(n,t){for(var e=P(n),r=0,o=e.length;r<o;r++){var i=e[r];t(n[i],i)}}function p(n,t){return function(n,t){return D.call(n,t)}(n,t)?n[t]:t}function v(n){return function(n,e){return S(n,function(n,t){return{k:t,v:e(n,t)}})}(q(n),function(n){return _({keywords:[],category:"user"},n)})}function h(e,o,n){var r=k(A.none()),u=k(A.none());e.on("init",function(){x.load(n,o).then(function(n){var t=v(e);!function(n){var o={},i=[];y(n,function(n,t){var e={title:t,keywords:n.keywords,"char":n["char"],category:p(I,n.category)},r=o[e.category]!==undefined?o[e.category]:[];o[e.category]=r.concat([e]),i.push(e)}),r.set(A.some(o)),u.set(A.some(i))}(_(n,t))},function(n){l.console.log("Failed to load emoticons: "+n),r.set(A.some({})),u.set(A.some([]))})});var i=function(){return u.get().getOr([])},c=function(){return r.get().isSome()&&u.get().isSome()};return{listCategories:function(){return[z].concat(P(r.get().getOr({})))},hasLoaded:c,waitForLoad:function(){return c()?N.resolve(!0):new N(function(n,t){var e=15,r=L.setInterval(function(){c()?(L.clearInterval(r),n(!0)):--e<0&&(l.console.log("Could not load emojis from url: "+o),L.clearInterval(r),t(!1))},100)})},listAll:i,listCategory:function(t){return t===z?i():r.get().bind(function(n){return A.from(n[t])}).getOr([])}}}var b,w,O=function(e){function n(){return o}function t(n){return n(e)}var r=i(e),o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:u,isNone:c,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:n,orThunk:n,map:function(n){return O(n(e))},each:function(n){n(e)},bind:t,exists:t,forall:t,filter:function(n){return n(e)?o:a},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(c,function(n){return t(e,n)})}};return o},A={some:O,none:t,from:function(n){return null===n||n===undefined?a:O(n)}},j=(b="function",function(n){return function(n){if(null===n)return"null";var t=typeof n;return"object"==t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t}(n)===b}),C=Array.prototype.slice,k=(j(Array.from)&&Array.from,function(n){function t(){return e}var e=n;return{get:t,set:function(n){e=n},clone:function(){return k(t())}}}),T=Object.prototype.hasOwnProperty,_=(w=function(n,t){return t},function(){for(var n=new Array(arguments.length),t=0;t<n.length;t++)n[t]=arguments[t];if(0===n.length)throw new Error("Can't merge zero objects");for(var e={},r=0;r<n.length;r++){var o=n[r];for(var i in o)T.call(o,i)&&(e[i]=w(e[i],o[i]))}return e}),P=Object.keys,D=Object.hasOwnProperty,S=function(n,r){var o={};return y(n,function(n,t){var e=r(n,t);o[e.k]=e.v}),o},x=tinymce.util.Tools.resolve("tinymce.Resource"),L=tinymce.util.Tools.resolve("tinymce.util.Delay"),N=tinymce.util.Tools.resolve("tinymce.util.Promise"),E=function(n,t){return n.getParam("emoticons_database_url",t+"/js/emojis"+n.suffix+".js")},F=function(n){return n.getParam("emoticons_database_id","tinymce.plugins.emoticons","string")},q=function(n){return n.getParam("emoticons_append",{},"object")},z="All",I={symbols:"Symbols",people:"People",animals_and_nature:"Animals and Nature",food_and_drink:"Food and Drink",activity:"Activity",travel_and_places:"Travel and Places",objects:"Objects",flags:"Flags",user:"User Defined"},M="pattern",U=function(e,i){function n(){return{title:"Emoticons",size:"normal",body:{type:"tabpanel",tabs:function(n,t){for(var e=n.length,r=new Array(e),o=0;o<e;o++){var i=n[o];r[o]=t(i,o)}return r}(i.listCategories(),function(n){return{title:n,name:n,items:[o,c]}})},initialData:t,onTabChange:function(n,t){u.set(t.newTabName),r.throttle(n)},onChange:r.throttle,onAction:function(n,t){"results"===t.name&&(function(n,t){n.insertContent(t)}(e,t.value),n.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}}var t={pattern:"",results:d(i.listAll(),"",A.some(300))},u=k(z),r=function(e,r){var o=null;return{cancel:function(){null!==o&&(l.clearTimeout(o),o=null)},throttle:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];null!==o&&l.clearTimeout(o),o=l.setTimeout(function(){e.apply(null,n),o=null},r)}}}(function(n){!function(n){var t=n.getData(),e=u.get(),r=i.listCategory(e),o=d(r,t[M],e===z?A.some(300):A.none());n.setData({results:o})}(n)},200),o={label:"Search",type:"input",name:M},c={type:"collection",name:"results"},a=e.windowManager.open(n());a.focus(M),i.hasLoaded()||(a.block("Loading emoticons..."),i.waitForLoad().then(function(){a.redial(n()),r.throttle(a),a.focus(M),a.unblock()})["catch"](function(n){a.redial({title:"Emoticons",body:{type:"panel",items:[{type:"alertbanner",level:"error",icon:"warning",text:"<p>Could not load emoticons</p>"}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),a.focus(M),a.unblock()}))},R=function(n,t){function e(){return U(n,t)}n.ui.registry.addButton("emoticons",{tooltip:"Emoticons",icon:"emoji",onAction:e}),n.ui.registry.addMenuItem("emoticons",{text:"Emoticons...",icon:"emoji",onAction:e})};!function B(){r.add("emoticons",function(n,t){var e=E(n,t),r=F(n),o=h(n,e,r);R(n,o),function(r,o){r.ui.registry.addAutocompleter("emoticons",{ch:":",columns:"auto",minChars:2,fetch:function(t,e){return o.waitForLoad().then(function(){var n=o.listAll();return d(n,t,A.some(e))})},onAction:function(n,t,e){r.selection.setRng(t),r.insertContent(e),n.hide()}})}(n,o)})}()}(window);
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(){"use strict";function t(){}function n(t){return function(){return t}}function e(){return h}var r,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),f=tinymce.util.Tools.resolve("tinymce.EditorManager"),l=tinymce.util.Tools.resolve("tinymce.Env"),m=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=function(t){return t.getParam("importcss_merge_classes")},i=function(t){return t.getParam("importcss_exclusive")},p=function(t){return t.getParam("importcss_selector_converter")},g=function(t){return t.getParam("importcss_selector_filter")},y=function(t){return t.getParam("importcss_groups")},v=function(t){return t.getParam("importcss_append")},d=function(t){return t.getParam("importcss_file_filter")},u=n(!1),s=n(!0),h=(r={fold:function(t,n){return t()},is:u,isSome:u,isNone:s,getOr:O,getOrThunk:x,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:n(null),getOrUndefined:n(undefined),or:O,orThunk:x,map:e,each:t,bind:e,exists:u,forall:s,filter:e,equals:_,equals_:_,toArray:function(){return[]},toString:n("none()")},Object.freeze&&Object.freeze(r),r);function _(t){return t.isNone()}function x(t){return t()}function O(t){return t}function T(n){return function(t){return function(t){if(null===t)return"null";var n=typeof t;return"object"==n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n}(t)===n}}function b(t,n){return function(t){for(var n=[],e=0,r=t.length;e<r;++e){if(!w(t[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+t);M.apply(n,t[e])}return n}(function(t,n){for(var e=t.length,r=new Array(e),o=0;o<e;o++){var i=t[o];r[o]=n(i,o)}return r}(t,n))}function k(n){return"string"==typeof n?function(t){return-1!==t.indexOf(n)}:n instanceof RegExp?function(t){return n.test(t)}:n}function S(i,t,u){var c=[],e={};function s(t,n){var e,r=t.href;if((r=function(t){var n=l.cacheSuffix;return"string"==typeof t&&(t=t.replace("?"+n,"").replace("&"+n,"")),t}(r))&&u(r,n)&&!function(t,n){var e=t.settings,r=!1!==e.skin&&(e.skin||"oxide");if(r){var o=e.skin_url?t.documentBaseURI.toAbsolute(e.skin_url):f.baseURL+"/skins/ui/"+r,i=f.baseURL+"/skins/content/";return n===o+"/content"+(t.inline?".inline":"")+".min.css"||-1!==n.indexOf(i)}return!1}(i,r)){m.each(t.imports,function(t){s(t,!0)});try{e=t.cssRules||t.rules}catch(o){}m.each(e,function(t){t.styleSheet?s(t.styleSheet,!0):t.selectorText&&m.each(t.selectorText.split(","),function(t){c.push(m.trim(t))})})}}m.each(i.contentCSS,function(t){e[t]=!0}),u=u||function(t,n){return n||e[t]};try{m.each(t.styleSheets,function(t){s(t)})}catch(n){}return c}function A(t,n){var e,r=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(n);if(r){var o=r[1],i=r[2].substr(1).split(".").join(" "),u=m.makeMap("a,img");return r[1]?(e={title:n},t.schema.getTextBlockElements()[o]?e.block=o:t.schema.getBlockElements()[o]||u[o.toLowerCase()]?e.selector=o:e.inline=o):r[2]&&(e={inline:"span",title:n.substr(1),classes:i}),!1!==c(t)?e.classes=i:e.attributes={"class":i},e}}function P(t,n){return null===n||!1!==i(t)}var w=T("array"),E=T("function"),I=Array.prototype.slice,M=Array.prototype.push,j=(E(Array.from)&&Array.from,A),D=function(s){s.on("init",function(t){function r(t,n){if(function(t,n,e,r){return!(P(t,e)?n in r:n in e.selectors)}(s,t,n,i)){!function(t,n,e,r){P(t,e)?r[n]=!0:e.selectors[n]=!0}(s,t,n,i);var e=function(t,n,e,r){return(r&&r.selector_converter?r.selector_converter:p(t)?p(t):function(){return A(t,e)}).call(n,e,r)}(s,s.plugins.importcss,t,n);if(e){var r=e.name||a.DOM.uniqueId();return s.formatter.register(r,e),m.extend({},{title:e.title,format:r})}}return null}var o=function(){var n=[],e=[],r={};return{addItemToGroup:function(t,n){r[t]?r[t].push(n):(e.push(t),r[t]=[n])},addItem:function(t){n.push(t)},toFormats:function(){return b(e,function(t){var n=r[t];return 0===n.length?[]:[{title:t,items:n}]}).concat(n)}}}(),i={},u=k(g(s)),c=function(t){return m.map(t,function(t){return m.extend({},t,{original:t,selectors:{},filter:k(t.filter),item:{text:t.title,menu:[]}})})}(y(s));m.each(S(s,s.getDoc(),k(d(s))),function(e){if(-1===e.indexOf(".mce-")&&(!u||u(e))){var t=function(t,n){return m.grep(t,function(t){return!t.filter||t.filter(n)})}(c,e);if(0<t.length)m.each(t,function(t){var n=r(e,t);n&&o.addItemToGroup(t.title,n)});else{var n=r(e,null);n&&o.addItem(n)}}});var n=o.toFormats();s.fire("addStyleModifications",{items:n,replace:!v(s)})})},R=function(n){return{convertSelectorToFormat:function(t){return j(n,t)}}};!function U(){o.add("importcss",function(t){return D(t),R(t)})}()}();
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(){"use strict";function n(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))}function r(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])}function a(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e}function i(e,t,n){return n=n||new Date,t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%D","%m/%d/%Y")).replace("%r","%I:%M:%S %p")).replace("%Y",""+n.getFullYear())).replace("%y",""+n.getYear())).replace("%m",a(n.getMonth()+1,2))).replace("%d",a(n.getDate(),2))).replace("%H",""+a(n.getHours(),2))).replace("%M",""+a(n.getMinutes(),2))).replace("%S",""+a(n.getSeconds(),2))).replace("%I",""+((n.getHours()+11)%12+1))).replace("%p",n.getHours()<12?"AM":"PM")).replace("%B",""+e.translate(f[n.getMonth()]))).replace("%b",""+e.translate(d[n.getMonth()]))).replace("%A",""+e.translate(s[n.getDay()]))).replace("%a",""+e.translate(l[n.getDay()]))).replace("%%","%")}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d"))},o=n,u=r,c=function(e){var t=r(e);return 0<t.length?t[0]:n(e)},m=function(e){return e.getParam("insertdatetime_element",!1)},l="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),s="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),d="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),f="January February March April May June July August September October November December".split(" "),p=function(e,t){if(m(e)){var n=i(e,t),r=void 0;r=/%[HMSIp]/.test(t)?i(e,"%Y-%m-%dT%H:%M"):i(e,"%Y-%m-%d");var a=e.dom.getParent(e.selection.getStart(),"time");a?function(e,t,n,r){var a=e.dom.create("time",{datetime:n},r);t.parentNode.insertBefore(a,t),e.dom.remove(t),e.selection.select(a,!0),e.selection.collapse(!1)}(e,a,r,n):e.insertContent('<time datetime="'+r+'">'+n+"</time>")}else e.insertContent(i(e,t))},g=i,y=function(e){e.addCommand("mceInsertDate",function(){p(e,t(e))}),e.addCommand("mceInsertTime",function(){p(e,o(e))})},M=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=function(e){function t(){return n}var n=e;return{get:t,set:function(e){n=e},clone:function(){return S(t())}}},v=function(n){var t=u(n),r=S(c(n));n.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===r.get()},fetch:function(e){e(M.map(t,function(e){return{type:"choiceitem",text:g(n,e),value:e}}))},onAction:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];p(n,r.get())},onItemAction:function(e,t){r.set(t),p(n,t)}});n.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return M.map(t,function(e){return{type:"menuitem",text:g(n,e),onAction:function(e){return function(){r.set(e),p(n,e)}}(e)}})}})};!function h(){e.add("insertdatetime",function(e){y(e),v(e)})}()}();
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(){"use strict";function c(n){return function(t){return-1!==(" "+t.attr("class")+" ").indexOf(n)}}function l(i,o,c){return function(t){var n=arguments,e=n[n.length-2],r=0<e?o.charAt(e-1):"";if('"'===r)return t;if(">"===r){var a=o.lastIndexOf("<",e);if(-1!==a)if(-1!==o.substring(a,e).indexOf('contenteditable="false"'))return t}return'<span class="'+c+'" data-mce-content="'+i.dom.encode(n[0])+'">'+i.dom.encode("string"==typeof n[1]?n[1]:n[0])+"</span>"}}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=tinymce.util.Tools.resolve("tinymce.util.Tools"),f=function(t){return t.getParam("noneditable_noneditable_class","mceNonEditable")},s=function(t){return t.getParam("noneditable_editable_class","mceEditable")},d=function(t){var n=t.getParam("noneditable_regexp",[]);return n&&n.constructor===RegExp?[n]:n},n=function(n){var t,e,r="contenteditable";t=" "+u.trim(s(n))+" ",e=" "+u.trim(f(n))+" ";var a=c(t),i=c(e),o=d(n);n.on("PreInit",function(){0<o.length&&n.on("BeforeSetContent",function(t){!function(t,n,e){var r=n.length,a=e.content;if("raw"!==e.format){for(;r--;)a=a.replace(n[r],l(t,a,f(t)));e.content=a}}(n,o,t)}),n.parser.addAttributeFilter("class",function(t){for(var n,e=t.length;e--;)n=t[e],a(n)?n.attr(r,"true"):i(n)&&n.attr(r,"false")}),n.serializer.addAttributeFilter(r,function(t){for(var n,e=t.length;e--;)n=t[e],(a(n)||i(n))&&(0<o.length&&n.attr("data-mce-content")?(n.name="#text",n.type=3,n.raw=!0,n.value=n.attr("data-mce-content")):n.attr(r,null))})})};!function e(){t.add("noneditable",function(t){n(t)})}()}();
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(){"use strict";function e(){return"mce-pagebreak"}function a(){return'<img src="'+t.transparentSrc+'" class="mce-pagebreak" data-mce-resize="false" data-mce-placeholder />'}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),r=function(e){return e.getParam("pagebreak_separator","\x3c!-- pagebreak --\x3e")},i=function(e){return e.getParam("pagebreak_split_block",!1)},o=function(o){var c=r(o),n=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi");o.on("BeforeSetContent",function(e){e.content=e.content.replace(n,a())}),o.on("PreInit",function(){o.serializer.addNodeFilter("img",function(e){for(var n,a,t=e.length;t--;)if((a=(n=e[t]).attr("class"))&&-1!==a.indexOf("mce-pagebreak")){var r=n.parent;if(o.schema.getBlockElements()[r.name]&&i(o)){r.type=3,r.value=c,r.raw=!0,n.remove();continue}n.type=3,n.value=c,n.raw=!0}})})},c=a,u=e,g=function(e){e.addCommand("mcePageBreak",function(){e.settings.pagebreak_split_block?e.insertContent("<p>"+c()+"</p>"):e.insertContent(c())})},m=function(n){n.on("ResolveName",function(e){"IMG"===e.target.nodeName&&n.dom.hasClass(e.target,u())&&(e.name="pagebreak")})},s=function(e){e.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:function(){return e.execCommand("mcePageBreak")}}),e.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:function(){return e.execCommand("mcePageBreak")}})};!function l(){n.add("pagebreak",function(e){g(e),s(e),o(e),m(e)})}()}();
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),m=function(e){return e.getParam("content_style","")},u=function(e){return e.getParam("content_css_cors",!1,"boolean")},y=tinymce.util.Tools.resolve("tinymce.Env"),n=function(t){var n="",i=t.dom.encode,e=m(t);n+='<base href="'+i(t.documentBaseURI.getURI())+'">',e&&(n+='<style type="text/css">'+e+"</style>");var o=u(t)?' crossorigin="anonymous"':"";l.each(t.contentCSS,function(e){n+='<link type="text/css" rel="stylesheet" href="'+i(t.documentBaseURI.toAbsolute(e))+'"'+o+">"});var r=t.settings.body_id||"tinymce";-1!==r.indexOf("=")&&(r=(r=t.getParam("body_id","","hash"))[t.id]||r);var a=t.settings.body_class||"";-1!==a.indexOf("=")&&(a=(a=t.getParam("body_class","","hash"))[t.id]||"");var c='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+(y.mac?"e.metaKey":"e.ctrlKey && !e.altKey")+")) {e.preventDefault();}}}, false);<\/script> ",s=t.getBody().dir,d=s?' dir="'+i(s)+'"':"";return"<!DOCTYPE html><html><head>"+n+'</head><body id="'+i(r)+'" class="mce-content-body '+i(a)+'"'+d+">"+t.getContent()+c+"</body></html>"},t=function(e){e.addCommand("mcePreview",function(){!function(e){var t=n(e);e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}}).focus("close")}(e)})},i=function(e){e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:function(){return e.execCommand("mcePreview")}}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:function(){return e.execCommand("mcePreview")}})};!function o(){e.add("preview",function(e){t(e),i(e)})}()}();
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(){"use strict";function t(n,e){n.notificationManager.open({text:e,type:"error"})}function e(t){return function(n){function e(){n.setDisabled(a(t)&&!t.isDirty())}return t.on("NodeChange dirty",e),function(){return t.off("NodeChange dirty",e)}}}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),a=function(n){return n.getParam("save_enablewhendirty",!0)},c=function(n){return!!n.getParam("save_onsavecallback")},r=function(n){return!!n.getParam("save_oncancelcallback")},u=function(n){var e;if(e=o.DOM.getParent(n.id,"form"),!a(n)||n.isDirty()){if(n.save(),c(n))return n.execCallback("save_onsavecallback",n),void n.nodeChanged();e?(n.setDirty(!1),e.onsubmit&&!e.onsubmit()||("function"==typeof e.submit?e.submit():t(n,"Error: Form submit field collision.")),n.nodeChanged()):t(n,"Error: No form element found.")}},l=function(n){var e=i.trim(n.startContent);r(n)?n.execCallback("save_oncancelcallback",n):n.resetContent(e)},s=function(n){n.addCommand("mceSave",function(){u(n)}),n.addCommand("mceCancel",function(){l(n)})},d=function(n){n.ui.registry.addButton("save",{icon:"save",tooltip:"Save",disabled:!0,onAction:function(){return n.execCommand("mceSave")},onSetup:e(n)}),n.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return n.execCommand("mceCancel")},onSetup:e(n)}),n.addShortcut("Meta+S","","mceSave")};!function m(){n.add("save",function(n){d(n),s(n)})}()}();
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(c){"use strict";function t(e){e.keyCode!==d.TAB||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),s=tinymce.util.Tools.resolve("tinymce.EditorManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),y=tinymce.util.Tools.resolve("tinymce.util.Delay"),f=tinymce.util.Tools.resolve("tinymce.util.Tools"),d=tinymce.util.Tools.resolve("tinymce.util.VK"),m=function(e){return e.getParam("tab_focus",function(e){return e.getParam("tabfocus_elements",":prev,:next")}(e))},v=n.DOM,i=function(r){function e(n){var i,o,e,l;if(!(n.keyCode!==d.TAB||n.ctrlKey||n.altKey||n.metaKey||n.isDefaultPrevented())&&(1===(e=f.explode(m(r))).length&&(e[1]=e[0],e[0]=":prev"),o=n.shiftKey?":prev"===e[0]?u(-1):v.get(e[0]):":next"===e[1]?u(1):v.get(e[1]))){var t=s.get(o.id||o.name);o.id&&t?t.focus():y.setTimeout(function(){a.webkit||c.window.focus(),o.focus()},10),n.preventDefault()}function u(e){function t(e){return/INPUT|TEXTAREA|BUTTON/.test(e.tagName)&&s.get(n.id)&&-1!==e.tabIndex&&function t(e){return"BODY"===e.nodeName||"hidden"!==e.type&&"none"!==e.style.display&&"hidden"!==e.style.visibility&&t(e.parentNode)}(e)}if(o=v.select(":input:enabled,*[tabindex]:not(iframe)"),f.each(o,function(e,t){if(e.id===r.id)return i=t,!1}),0<e){for(l=i+1;l<o.length;l++)if(t(o[l]))return o[l]}else for(l=i-1;0<=l;l--)if(t(o[l]))return o[l];return null}}r.on("init",function(){r.inline&&v.setAttrib(r.getBody(),"tabIndex",null),r.on("keyup",t),a.gecko?r.on("keypress keydown",e):r.on("keydown",e)})};!function o(){e.add("tabfocus",function(e){i(e)})}()}(window);
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(){"use strict";function e(n){return function(t){function e(){return t.setDisabled(n.readonly||!v.hasHeaders(n))}return e(),n.on("LoadContent SetContent change",e),function(){return n.on("LoadContent SetContent change",e)}}}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),l=tinymce.util.Tools.resolve("tinymce.util.I18n"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=function(t){return t.getParam("toc_class","mce-toc")},d=function(t){var e=t.getParam("toc_header","h2");return/^h[1-6]$/.test(e)?e:"h2"},a=function(t){var e=parseInt(t.getParam("toc_depth","3"),10);return 1<=e&&e<=9?e:3},s=function(e){var n=0;return function(){var t=(new Date).getTime().toString(32);return e+t+(n++).toString(32)}}("mcetoc_"),f=function f(t){var e,n=[];for(e=1;e<=t;e++)n.push("h"+e);return n.join(",")},m=function(n){var o=c(n),t=d(n),e=f(a(n)),r=n.$(e);return r.length&&/^h[1-9]$/i.test(t)&&(r=r.filter(function(t,e){return!n.dom.hasClass(e.parentNode,o)})),i.map(r,function(t){return{id:t.id?t.id:s(),level:parseInt(t.nodeName.replace(/^H/i,""),10),title:n.$.text(t),element:t}})},o=function(t){var e,n,o,r,i="",c=m(t),a=function(t){var e,n=9;for(e=0;e<t.length;e++)if(t[e].level<n&&(n=t[e].level),1===n)return n;return n}(c)-1;if(!c.length)return"";for(i+=function(t,e){var n="</"+t+">";return"<"+t+' contenteditable="true">'+u.DOM.encode(e)+n}(d(t),l.translate("Table of Contents")),e=0;e<c.length;e++){if((o=c[e]).element.id=o.id,r=c[e+1]&&c[e+1].level,a===o.level)i+="<li>";else for(n=a;n<o.level;n++)i+="<ul><li>";if(i+='<a href="#'+o.id+'">'+o.title+"</a>",r!==o.level&&r)for(n=o.level;r<n;n--)i+="</li></ul><li>";else i+="</li>",r||(i+="</ul>");a=o.level}return i},r=function(t){var e=c(t),n=t.$("."+e);n.length&&t.undoManager.transact(function(){n.html(o(t))})},v={hasHeaders:function(t){return 0<m(t).length},insertToc:function(t){var e=c(t),n=t.$("."+e);!function(t,e){return!e.length||0<t.dom.getParents(e[0],".mce-offscreen-selection").length}(t,n)?r(t):t.insertContent(function(t){var e=o(t);return'<div class="'+t.dom.encode(c(t))+'" contenteditable="false">'+e+"</div>"}(t))},updateToc:r},n=function(t){t.addCommand("mceInsertToc",function(){v.insertToc(t)}),t.addCommand("mceUpdateToc",function(){v.updateToc(t)})},g=function(t){var n=t.$,o=c(t);t.on("PreProcess",function(t){var e=n("."+o,t.node);e.length&&(e.removeAttr("contentEditable"),e.find("[contenteditable]").removeAttr("contentEditable"))}),t.on("SetContent",function(){var t=n("."+o);t.length&&(t.attr("contentEditable",!1),t.children(":first-child").attr("contentEditable",!0))})},h=function(t){t.ui.registry.addButton("toc",{icon:"toc",tooltip:"Table of contents",onAction:function(){return t.execCommand("mceInsertToc")},onSetup:e(t)}),t.ui.registry.addButton("tocupdate",{icon:"reload",tooltip:"Update",onAction:function(){return t.execCommand("mceUpdateToc")}}),t.ui.registry.addMenuItem("toc",{icon:"toc",text:"Table of contents",onAction:function(){return t.execCommand("mceInsertToc")},onSetup:e(t)}),t.ui.registry.addContextToolbar("toc",{items:"tocupdate",predicate:function(e){return function(t){return t&&e.dom.is(t,"."+c(e))&&e.getBody().contains(t)}}(t),scope:"node",position:"node"})};!function p(){t.add("toc",function(t){n(t),h(t),g(t)})}()}();
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(){"use strict";function n(n,e){return function(o){o.setActive(e.get());function t(t){return o.setActive(t.state)}return n.on("VisualBlocks",t),function(){return n.off("VisualBlocks",t)}}}var e=function(t){function o(){return n}var n=t;return{get:o,set:function(t){n=t},clone:function(){return e(o())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(t,o){t.fire("VisualBlocks",{state:o})},u=function(t,o,n){t.dom.toggleClass(t.getBody(),"mce-visualblocks"),n.set(!n.get()),i(t,n.get())},c=function(t,o,n){t.addCommand("mceVisualBlocks",function(){u(t,o,n)})},s=function(t){return t.getParam("visualblocks_default_state",!1,"boolean")},l=function(o,t,n){o.on("PreviewFormats AfterPreviewFormats",function(t){n.get()&&o.dom.toggleClass(o.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)}),o.on("init",function(){s(o)&&u(o,t,n)}),o.on("remove",function(){o.dom.removeClass(o.getBody(),"mce-visualblocks")})},r=function(t,o){t.ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:function(){return t.execCommand("mceVisualBlocks")},onSetup:n(t,o)}),t.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",onAction:function(){return t.execCommand("mceVisualBlocks")},onSetup:n(t,o)})};!function o(){t.add("visualblocks",function(t,o){var n=e(!1);c(t,o,n),r(t,n),l(t,o,n)})}()}();
\ No newline at end of file
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.5 (2019-12-19)
*/
!function(r){"use strict";function n(){}function u(n){return function(){return n}}function e(){return l}var t,o=function(n){function e(){return t}var t=n;return{get:e,set:function(n){t=n},clone:function(){return o(e())}}},i=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=function(n){return{isEnabled:function(){return n.get()}}},a=function(n,e){return n.fire("VisualChars",{state:e})},f=u(!1),s=u(!0),l=(t={fold:function(n,e){return n()},is:f,isSome:f,isNone:s,getOr:g,getOrThunk:m,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(undefined),or:g,orThunk:m,map:e,each:n,bind:e,exists:f,forall:s,filter:e,equals:d,equals_:d,toArray:function(){return[]},toString:u("none()")},Object.freeze&&Object.freeze(t),t);function d(n){return n.isNone()}function m(n){return n()}function g(n){return n}function N(e){return function(n){return function(n){if(null===n)return"null";var e=typeof n;return"object"==e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e}(n)===e}}function v(n,e){for(var t=0,r=n.length;t<r;t++){e(n[t],t)}}function h(n){return n.dom().nodeValue}function p(n,e,t){!function(n,e,t){if(!(L(t)||P(t)||R(t)))throw r.console.error("Invalid call to Attr.set. Key ",e,":: Value ",t,":: Element ",n),new Error("Attribute value was not simple");n.setAttribute(e,t+"")}(n.dom(),e,t)}function E(n,e){n.dom().removeAttribute(e)}function T(n,e){var t=function(n,e){var t=n.dom().getAttribute(e);return null===t?undefined:t}(n,e);return t===undefined||""===t?[]:t.split(" ")}function O(n){return n.dom().classList!==undefined}function y(n,e){return function(n,e,t){var r=T(n,e).concat([t]);return p(n,e,r.join(" ")),!0}(n,"class",e)}function b(n,e){return function(n,e,t){var r=function(n,e){for(var t=[],r=0,o=n.length;r<o;r++){var u=n[r];e(u,r)&&t.push(u)}return t}(T(n,e),function(n){return n!==t});return 0<r.length?p(n,e,r.join(" ")):E(n,e),!1}(n,"class",e)}function D(n){0===(O(n)?n.dom().classList:function(n){return T(n,"class")}(n)).length&&E(n,"class")}function C(n,e){var t,r="";for(t in n)r+=t;return new RegExp("["+r+"]",e?"g":"")}function A(n){var e,t="";for(e in n)t&&(t+=","),t+="span.mce-"+n[e];return t}function _(n){return"span"===n.nodeName.toLowerCase()&&n.classList.contains("mce-nbsp-wrap")}function w(u,n){var e=W.filterDescendants(F.fromDom(n),W.isMatch);v(e,function(n){var e=n.dom().parentNode;if(_(e))!function(n,e){O(n)?n.dom().classList.add(e):y(n,e)}(F.fromDom(e),H.nbspClass);else{for(var t=W.replaceWithSpans(u.dom.encode(h(n))),r=u.dom.create("div",null,t),o=void 0;o=r.lastChild;)u.dom.insertAfter(o,n.dom());u.dom.remove(n.dom())}})}function M(e,n){var t=e.dom.select(H.selector,n);v(t,function(n){_(n)?function(n,e){O(n)?n.dom().classList.remove(e):b(n,e);D(n)}(F.fromDom(n),H.nbspClass):e.dom.remove(n,!0)})}function S(t,r){return function(e){e.setActive(r.get());function n(n){return e.setActive(n.state)}return t.on("VisualChars",n),function(){return t.off("VisualChars",n)}}}var k,x=function(t){function n(){return o}function e(n){return n(t)}var r=u(t),o={fold:function(n,e){return e(t)},is:function(n){return t===n},isSome:s,isNone:f,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:n,orThunk:n,map:function(n){return x(n(t))},each:function(n){n(t)},bind:e,exists:e,forall:e,filter:function(n){return n(t)?o:l},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(n){return n.is(t)},equals_:function(n,e){return n.fold(f,function(n){return e(t,n)})}};return o},I=function(n){return null===n||n===undefined?l:x(n)},L=N("string"),P=N("boolean"),B=N("function"),R=N("number"),V=Array.prototype.slice,U=(B(Array.from)&&Array.from,r.Node.ATTRIBUTE_NODE,r.Node.CDATA_SECTION_NODE,r.Node.COMMENT_NODE,r.Node.DOCUMENT_NODE,r.Node.DOCUMENT_TYPE_NODE,r.Node.DOCUMENT_FRAGMENT_NODE,r.Node.ELEMENT_NODE,r.Node.TEXT_NODE),j=(r.Node.PROCESSING_INSTRUCTION_NODE,r.Node.ENTITY_REFERENCE_NODE,r.Node.ENTITY_NODE,r.Node.NOTATION_NODE,"undefined"!=typeof r.window?r.window:Function("return this;")(),k=U,function(n){return function(n){return n.dom().nodeType}(n)===k}),q=function(n){if(null===n||n===undefined)throw new Error("Node cannot be null or undefined");return{dom:u(n)}},F={fromHtml:function(n,e){var t=(e||r.document).createElement("div");if(t.innerHTML=n,!t.hasChildNodes()||1<t.childNodes.length)throw r.console.error("HTML does not have a single root node",n),new Error("HTML must have a single root node");return q(t.childNodes[0])},fromTag:function(n,e){var t=(e||r.document).createElement(n);return q(t)},fromText:function(n,e){var t=(e||r.document).createTextNode(n);return q(t)},fromDom:q,fromPoint:function(n,e,t){var r=n.dom();return I(r.elementFromPoint(e,t)).map(q)}},G={"\xa0":"nbsp","\xad":"shy"},H={charMap:G,regExp:C(G),regExpGlobal:C(G,!0),selector:A(G),nbspClass:"mce-nbsp",charMapToRegExp:C,charMapToSelector:A},Y=function(n){return'<span data-mce-bogus="1" class="mce-'+H.charMap[n]+'">'+n+"</span>"},z=function(n,e){var t=[],r=function(n,e){for(var t=n.length,r=new Array(t),o=0;o<t;o++){var u=n[o];r[o]=e(u,o)}return r}(n.dom().childNodes,F.fromDom);return v(r,function(n){e(n)&&(t=t.concat([n])),t=t.concat(z(n,e))}),t},W={isMatch:function(n){var e=h(n);return j(n)&&e!==undefined&&H.regExp.test(e)},filterDescendants:z,findParentElm:function(n,e){for(;n.parentNode;){if(n.parentNode===e)return n;n=n.parentNode}},replaceWithSpans:function(n){return n.replace(H.regExpGlobal,Y)}},K=w,X=M,J=function(n){var e=n.getBody(),t=n.selection.getBookmark(),r=W.findParentElm(n.selection.getNode(),e);r=r!==undefined?r:e,M(n,r),w(n,r),n.selection.moveToBookmark(t)},Q=function(n,e){var t,r=n.getBody(),o=n.selection;e.set(!e.get()),a(n,e.get()),t=o.getBookmark(),!0===e.get()?K(n,r):X(n,r),o.moveToBookmark(t)},Z=function(n,e){n.addCommand("mceVisualChars",function(){Q(n,e)})},$=tinymce.util.Tools.resolve("tinymce.util.Delay"),nn=function(e,t){var r=$.debounce(function(){J(e)},300);!1!==e.settings.forced_root_block&&e.on("keydown",function(n){!0===t.get()&&(13===n.keyCode?J(e):r())})},en=function(n){return n.getParam("visualchars_default_state",!1)},tn=function(e,t){e.on("init",function(){var n=!en(e);t.set(n),Q(e,t)})};!function rn(){i.add("visualchars",function(n){var e=o(!1);return Z(n,e),function(n,e){n.ui.registry.addToggleButton("visualchars",{tooltip:"Show invisible characters",icon:"visualchars",onAction:function(){return n.execCommand("mceVisualChars")},onSetup:S(n,e)}),n.ui.registry.addToggleMenuItem("visualchars",{text:"Show invisible characters",onAction:function(){return n.execCommand("mceVisualChars")},onSetup:S(n,e)})}(n,e),nn(n,e),tn(n,e),c(e)})}()}(window);
\ No newline at end of file
/*!
* Cropper v4.0.0
* https://github.com/fengyuanchen/cropper
*
* Copyright (c) 2014-2018 Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-04-01T06:26:32.417Z
*/
.cropper-container {
direction: ltr;
font-size: 0;
line-height: 0;
position: relative;
-ms-touch-action: none;
touch-action: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.cropper-container img {
/*Avoid margin top issue (Occur only when margin-top <= -height)
*/
display: block;
height: 100%;
image-orientation: 0deg;
max-height: none !important;
max-width: none !important;
min-height: 0 !important;
min-width: 0 !important;
width: 100%;
}
.cropper-wrap-box,
.cropper-canvas,
.cropper-drag-box,
.cropper-crop-box,
.cropper-modal {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.cropper-wrap-box,
.cropper-canvas {
overflow: hidden;
}
.cropper-drag-box {
background-color: #fff;
opacity: 0;
}
.cropper-modal {
background-color: #000;
opacity: .5;
}
.cropper-view-box {
display: block;
height: 100%;
outline-color: rgba(51, 153, 255, 0.75);
outline: 1px solid #39f;
overflow: hidden;
width: 100%;
}
.cropper-dashed {
border: 0 dashed #eee;
display: block;
opacity: .5;
position: absolute;
}
.cropper-dashed.dashed-h {
border-bottom-width: 1px;
border-top-width: 1px;
height: 33.33333%;
left: 0;
top: 33.33333%;
width: 100%;
}
.cropper-dashed.dashed-v {
border-left-width: 1px;
border-right-width: 1px;
height: 100%;
left: 33.33333%;
top: 0;
width: 33.33333%;
}
.cropper-center {
display: block;
height: 0;
left: 50%;
opacity: .75;
position: absolute;
top: 50%;
width: 0;
}
.cropper-center:before,
.cropper-center:after {
background-color: #eee;
content: ' ';
display: block;
position: absolute;
}
.cropper-center:before {
height: 1px;
left: -3px;
top: 0;
width: 7px;
}
.cropper-center:after {
height: 7px;
left: 0;
top: -3px;
width: 1px;
}
.cropper-face,
.cropper-line,
.cropper-point {
display: block;
height: 100%;
opacity: .1;
position: absolute;
width: 100%;
}
.cropper-face {
background-color: #fff;
left: 0;
top: 0;
}
.cropper-line {
background-color: #39f;
}
.cropper-line.line-e {
cursor: ew-resize;
right: -3px;
top: 0;
width: 5px;
}
.cropper-line.line-n {
cursor: ns-resize;
height: 5px;
left: 0;
top: -3px;
}
.cropper-line.line-w {
cursor: ew-resize;
left: -3px;
top: 0;
width: 5px;
}
.cropper-line.line-s {
bottom: -3px;
cursor: ns-resize;
height: 5px;
left: 0;
}
.cropper-point {
background-color: #39f;
height: 5px;
opacity: .75;
width: 5px;
}
.cropper-point.point-e {
cursor: ew-resize;
margin-top: -3px;
right: -3px;
top: 50%;
}
.cropper-point.point-n {
cursor: ns-resize;
left: 50%;
margin-left: -3px;
top: -3px;
}
.cropper-point.point-w {
cursor: ew-resize;
left: -3px;
margin-top: -3px;
top: 50%;
}
.cropper-point.point-s {
bottom: -3px;
cursor: s-resize;
left: 50%;
margin-left: -3px;
}
.cropper-point.point-ne {
cursor: nesw-resize;
right: -3px;
top: -3px;
}
.cropper-point.point-nw {
cursor: nwse-resize;
left: -3px;
top: -3px;
}
.cropper-point.point-sw {
bottom: -3px;
cursor: nesw-resize;
left: -3px;
}
.cropper-point.point-se {
bottom: -3px;
cursor: nwse-resize;
height: 20px;
opacity: 1;
right: -3px;
width: 20px;
}
@media (min-width: 768px) {
.cropper-point.point-se {
/*height: 15px;
width: 15px;*/
height: 5px;
width: 5px;
}
}
@media (min-width: 992px) {
.cropper-point.point-se {
/*height: 10px;
width: 10px;*/
height: 5px;
width: 5px;
}
}
@media (min-width: 1200px) {
.cropper-point.point-se {
height: 5px;
opacity: .75;
width: 5px;
}
}
.cropper-point.point-se:before {
background-color: #39f;
bottom: -50%;
content: ' ';
display: block;
height: 200%;
opacity: 0;
position: absolute;
right: -50%;
width: 200%;
}
.cropper-invisible {
opacity: 0;
}
.cropper-bg {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
}
.cropper-hide {
display: block;
height: 0;
position: absolute;
width: 0;
}
.cropper-hidden {
display: none !important;
}
.cropper-move {
cursor: move;
}
.cropper-crop {
cursor: crosshair;
}
.cropper-disabled .cropper-drag-box,
.cropper-disabled .cropper-face,
.cropper-disabled .cropper-line,
.cropper-disabled .cropper-point {
cursor: not-allowed;
}
/** 水平分割 */
.split-group {
height: 200px;
}
.split-group:after {
content: "";
clear: both;
}
.split-group > .split-item {
float: left;
height: 100%;
box-sizing: border-box;
}
/** 垂直分割 */
.split-group-vertical {
height: 458px;
}
.split-group-vertical > .split-item {
box-sizing: border-box;
}
/** 嵌套分割 */
.split-group > .split-item > .split-group-vertical {
height: 100%;
}
.split-group-vertical > .split-item > .split-group {
height: 100%;
}
/** 分割线 */
.gutter {
position: relative;
background-color: #f8f8f9;
border: 1px solid #dcdee2;
box-sizing: border-box;
}
/* 水平分割线*/
.gutter.gutter-horizontal {
float: left;
height: 100%;
cursor: col-resize;
border-top: none;
border-bottom: none;
}
.gutter.gutter-horizontal:before, .gutter.gutter-horizontal:after {
content: "";
height: 6px;
border: 2px solid #dcdee2;
border-left: 0;
border-right: 0;
position: absolute;
left: 0;
right: 0;
}
.gutter.gutter-horizontal:before {
top: 50%;
transform: translateY(-50%);
margin-top: -8px;
}
.gutter.gutter-horizontal:after {
margin-bottom: -8px;
bottom: 50%;
transform: translateY(50%);
}
/* 垂直分割线 */
.gutter.gutter-vertical {
cursor: row-resize;
border-left: none;
border-right: none;
text-align: center;
}
.gutter.gutter-vertical:before, .gutter.gutter-vertical:after {
content: "";
width: 6px;
border: 2px solid #dcdee2;
border-top: 0;
border-bottom: 0;
display: inline-block;
height: 100%;
margin: 0 3px;
vertical-align: top;
}
\ No newline at end of file
/** 级联选择器模块 date:2019-07-27 License By http://easyweb.vip */
.ew-cascader-group{position:relative}.ew-cascader-group *{line-height:24px}.ew-cascader-hide{display:block!important;visibility:hidden;position:absolute;z-index:-1}.ew-cascader-input-group{position:relative;cursor:pointer}.layui-form-danger+.ew-cascader-group>.ew-cascader-input-group>.ew-cascader-input{border-color:#ff5722!important}.ew-cascader-input-group>.ew-cascader-input{cursor:pointer;padding-right:25px}.ew-cascader-input-group>.ew-icon-arrow{position:absolute;top:50%;right:7px;color:#c2c2c2;font-size:17px;margin-top:-12px;transition:all .3s}.ew-cascader-group.ew-cascader-open>.ew-cascader-input-group>.ew-icon-arrow{transform:rotate(180deg)}.ew-cascader-group.show-loading>.ew-cascader-input-group>.ew-icon-arrow,.ew-cascader-input-group.show-clear>.ew-icon-arrow{display:none}.ew-cascader-input-group>.ew-icon-loading{position:absolute;top:50%;right:7px;color:#666;font-size:17px;margin-top:-12px;display:none}.ew-cascader-group.show-loading>.ew-cascader-input-group>.ew-icon-loading{display:block}.ew-cascader-input-group>.ew-icon-clear{position:absolute;top:50%;right:7px;color:#999;font-size:17px;margin-top:-12px;display:none}.ew-cascader-input-group.show-clear>.ew-icon-clear{display:block}.ew-cascader-group.show-loading>.ew-cascader-input-group>.ew-icon-clear{display:none}.ew-cascader-dropdown{position:absolute;left:0;top:100%;font-size:0;margin-top:8px;margin-bottom:8px;background:#fff;width:auto;border-radius:2px;border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);z-index:999;display:none;white-space:nowrap}.ew-cascader-open .ew-cascader-dropdown{display:block}.ew-cascader-dropdown-list{padding:5px 0;min-width:120px;height:180px;overflow-y:auto;vertical-align:top;display:inline-block;border-right:1px solid #e6e6e6}.ew-cascader-dropdown-list:last-child{border-right:0}.ew-cascader-dropdown-list-item{color:#555;font-size:14px;padding:5px 25px 5px 15px;cursor:pointer;position:relative}.ew-cascader-dropdown-list-item:hover{background-color:#f3f3f3}.ew-cascader-dropdown-list-item.active{background-color:#f3f3f3;color:#5fb878}.ew-cascader-dropdown-list-item.is-last{padding-right:15px}.ew-cascader-dropdown-list-item .ew-icon-right,.ew-cascader-dropdown-list-item .ew-icon-loading{position:absolute;top:6px;right:10px;color:#666;font-size:12px}.ew-cascader-dropdown-list-item.active .ew-icon-right{color:#5fb878}.ew-cascader-dropdown-list-item.is-last .ew-icon-right,.ew-cascader-dropdown-list-item.show-loading .ew-icon-right,.ew-cascader-dropdown-list-item .ew-icon-loading{display:none}.ew-cascader-dropdown-list-item.show-loading .ew-icon-loading{display:block}.ew-cascader-dropdown-list-item.ew-cascader-disabled{color:#aaa;cursor:not-allowed}.ew-cascader-dropdown-list-item.ew-cascader-disabled:hover{background-color:transparent}.ew-cascader-dropdown-list-item.ew-cascader-disabled .ew-icon-right{color:#bbb}.ew-cascader-input-group .ew-cascader-input-search{position:absolute;top:0;left:0;right:0;bottom:0;display:none;padding-right:25px;background-color:transparent}.ew-cascader-input-group.show-search .ew-cascader-input-search{display:block}.ew-cascader-input-group.show-search .ew-cascader-input{color:#999}.ew-cascader-input-group.have-value .ew-cascader-input-search{background-color:#fff}.ew-cascader-input-group.have-value .ew-icon-clear{display:none}.ew-cascader-input-group.have-value .ew-icon-arrow{display:block}.ew-cascader-search-list{position:absolute;left:0;top:100%;margin-top:8px;margin-bottom:8px;background:#fff;width:max-content;padding:5px 0;min-width:150px;max-height:250px;overflow-y:auto;border-radius:2px;border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);z-index:999;display:none}.show-search-list .ew-cascader-search-list{display:block}.show-search-list .ew-cascader-dropdown{display:none}.ew-cascader-search-list-item{color:#555;font-size:14px;padding:5px 15px;cursor:pointer}.ew-cascader-search-list-item:hover{background-color:#f3f3f3}.ew-cascader-search-list-item .search-keyword{color:#f5222d}.ew-cascader-search-list-empty{text-align:center;padding:10px 15px}.ew-cascader-search-list-item.ew-cascader-disabled{color:#aaa;cursor:not-allowed}.ew-cascader-search-list-item.ew-cascader-disabled:hover{background-color:transparent}.ew-cascader-search-list-item.ew-cascader-disabled .search-keyword{color:#f86169}.ew-cascader-group.dropdown-show-top .ew-cascader-dropdown,.ew-cascader-group.dropdown-show-top .ew-cascader-search-list{top:unset;bottom:100%}.ew-cascader-group.dropdown-show-left .ew-cascader-dropdown,.ew-cascader-group.dropdown-show-left .ew-cascader-search-list{right:0;left:unset}
\ No newline at end of file
This diff could not be displayed because it is too large.
.city-picker-input {
opacity: 0 !important;
top: -9999px;
left: -9999px;
position: absolute;
}
.city-picker-span {
position: relative;
display: block;
outline: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
border: 1px solid #E6E6E6;
border-radius: 2px;
background-color: #fff;
color: #ccc;
cursor: pointer;
width: auto !important;
padding-right: 22px;
padding-left: 5px;
box-sizing: border-box;
overflow: hidden;
}
.city-picker-span > .placeholder {
color: #aaa;
}
.city-picker-span > .arrow {
position: absolute;
top: 50%;
right: 8px;
width: 10px;
margin-top: -3px;
height: 5px;
background: url(drop-arrow.png) -10px -25px no-repeat;
}
.city-picker-span.focus,
.city-picker-span.open {
border-color: #C0C4CC;
}
.city-picker-span.open > .arrow {
background-position: -10px -10px;
}
.city-picker-span > .title > span {
color: #333;
padding: 5px;
border-radius: 3px;
}
.city-picker-span > .title > span:hover {
background-color: #EEF7F1;
}
.city-picker-dropdown {
position: absolute;
width: 315px;
left: -9999px;
top: -9999px;
outline: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
z-index: 999999;
display: none;
min-width: 330px;
margin-bottom: 20px;
margin-top: 5px;
}
.city-select-wrap {
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.city-select-tab {
border-bottom: 1px solid #ccc;
background: #f0f0f0;
font-size: 13px;
}
.city-select-tab > a {
display: inline-block;
padding: 8px 22px;
border-left: 1px solid #ccc;
border-bottom: 1px solid transparent;
color: #4D4D4D;
text-align: center;
outline: 0;
text-decoration: none;
cursor: pointer;
font-size: 14px;
margin-bottom: -1px;
}
.city-select-tab > a.active {
background: #fff;
border-bottom: 1px solid #fff;
color: #5FB878;
}
.city-select-tab > a:first-child {
border-left: none;
}
.city-select-tab > a:last-child.active {
border-right: 1px solid #ccc;
}
.city-select-content {
width: 100%;
min-height: 10px;
background-color: #fff;
padding: 10px 15px;
box-sizing: border-box;
}
.city-select {
font-size: 13px;
}
.city-select dl {
line-height: 2;
clear: both;
padding: 3px 0;
margin: 0;
}
.city-select dt {
position: absolute;
width: 2.5em;
font-weight: 500;
text-align: right;
line-height: 2;
}
.city-select dd {
margin-left: 0;
line-height: 2;
}
.city-select.province dd {
margin-left: 3em;
}
.city-select a {
display: inline-block;
padding: 0 10px;
outline: 0;
text-decoration: none;
white-space: nowrap;
margin-right: 2px;
text-decoration: none;
color: #333;
cursor: pointer;
}
.city-select a:hover,
.city-select a:focus {
background-color: #EEF7F1;
border-radius: 2px;
color: #5FB878;
}
.city-select a.active {
background-color: #5FB878;
color: #fff;
border-radius: 2px;
}
/** 右键菜单模块 date:2019-02-08 License By http://easyweb.vip */
layui.define(["jquery"],function(a){var c=layui.jquery;var b={bind:function(e,d){c(e).bind("contextmenu",function(f){b.show(d,f.clientX,f.clientY,f);return false})},show:function(f,d,k,h){var g="left: "+d+"px; top: "+k+"px;";var j='<div class="ctxMenu" style="'+g+'">';j+=b.getHtml(f,"");j+=" </div>";b.remove();c("body").append(j);var i=c(".ctxMenu");if(d+i.outerWidth()>b.getPageWidth()){d-=i.outerWidth()}if(k+i.outerHeight()>b.getPageHeight()){k=k-i.outerHeight();if(k<0){k=0}}i.css({"top":k,"left":d});b.setEvents(f,h);c(".ctxMenu-item").on("mouseenter",function(p){p.stopPropagation();c(this).parent().find(".ctxMenu-sub").css("display","none");if(!c(this).hasClass("haveMore")){return}var l=c(this).find(">a");var m=c(this).find(">.ctxMenu-sub");var o=l.offset().top-c("body,html").scrollTop();var n=l.offset().left+l.outerWidth()-c("body,html").scrollLeft();if(n+m.outerWidth()>b.getPageWidth()){n=l.offset().left-m.outerWidth()}if(o+m.outerHeight()>b.getPageHeight()){o=o-m.outerHeight()+l.outerHeight();if(o<0){o=0}}c(this).find(">.ctxMenu-sub").css({"top":o,"left":n,"display":"block"})})},remove:function(){var h=parent.window.frames;for(var d=0;d<h.length;d++){var f=h[d];try{f.layui.jquery("body>.ctxMenu").remove()}catch(g){}}try{parent.layui.jquery("body>.ctxMenu").remove()}catch(g){}},setEvents:function(d,f){c(".ctxMenu").off("click").on("click","[lay-id]",function(h){var i=c(this).attr("lay-id");var g=e(i,d);g.click&&g.click(h,f)});function e(l,k){for(var j=0;j<k.length;j++){var h=k[j];if(l==h.itemId){return h}else{if(h.subs&&h.subs.length>0){var g=e(l,h.subs);if(g){return g}}}}}},getHtml:function(e,d){var h="";for(var f=0;f<e.length;f++){var g=e[f];g.itemId="ctxMenu-"+d+f;if(g.subs&&g.subs.length>0){h+='<div class="ctxMenu-item haveMore" lay-id="'+g.itemId+'">';h+="<a>";if(g.icon){h+='<i class="'+g.icon+' ctx-icon"></i>'}h+=g.name;h+='<i class="layui-icon layui-icon-right icon-more"></i>';h+="</a>";h+='<div class="ctxMenu-sub" style="display: none;">';h+=b.getHtml(g.subs,d+f);h+="</div>"}else{h+='<div class="ctxMenu-item" lay-id="'+g.itemId+'">';h+="<a>";if(g.icon){h+='<i class="'+g.icon+' ctx-icon"></i>'}h+=g.name;h+="</a>"}h+="</div>";if(g.hr==true){h+="<hr/>"}}return h},getCommonCss:function(){var d=".ctxMenu, .ctxMenu-sub {";d+=" max-width: 250px;";d+=" min-width: 110px;";d+=" background: white;";d+=" border-radius: 2px;";d+=" padding: 5px 0;";d+=" white-space: nowrap;";d+=" position: fixed;";d+=" z-index: 2147483647;";d+=" box-shadow: 0 2px 4px rgba(0, 0, 0, .12);";d+=" border: 1px solid #d2d2d2;";d+=" overflow: visible;";d+=" }";d+=" .ctxMenu-item {";d+=" position: relative;";d+=" }";d+=" .ctxMenu-item > a {";d+=" font-size: 14px;";d+=" color: #666;";d+=" padding: 0 26px 0 35px;";d+=" cursor: pointer;";d+=" display: block;";d+=" line-height: 36px;";d+=" text-decoration: none;";d+=" position: relative;";d+=" }";d+=" .ctxMenu-item > a:hover {";d+=" background: #f2f2f2;";d+=" color: #666;";d+=" }";d+=" .ctxMenu-item > a > .icon-more {";d+=" position: absolute;";d+=" right: 5px;";d+=" top: 0;";d+=" font-size: 12px;";d+=" color: #666;";d+=" }";d+=" .ctxMenu-item > a > .ctx-icon {";d+=" position: absolute;";d+=" left: 12px;";d+=" top: 0;";d+=" font-size: 15px;";d+=" color: #666;";d+=" }";d+=" .ctxMenu hr {";d+=" background-color: #e6e6e6;";d+=" clear: both;";d+=" margin: 5px 0;";d+=" border: 0;";d+=" height: 1px;";d+=" }";d+=" .ctx-ic-lg {";d+=" font-size: 18px !important;";d+=" left: 11px !important;";d+=" }";return d},getPageHeight:function(){return document.documentElement.clientHeight||document.body.clientHeight},getPageWidth:function(){return document.documentElement.clientWidth||document.body.clientWidth},};c(document).off("click.ctxMenu").on("click.ctxMenu",function(){b.remove()});c(document).off("click.ctxMenuMore").on("click.ctxMenuMore",".ctxMenu-item",function(d){if(c(this).hasClass("haveMore")){if(d!==void 0){d.preventDefault();d.stopPropagation()}}else{b.remove()}});c("head").append('<style id="ew-css-ctx">'+b.getCommonCss()+"</style>");a("contextMenu",b)});
\ No newline at end of file
/** 下拉菜单模块 date:2020-05-04 License By http://easyweb.vip */
layui.define(["jquery"],function(f){var h=layui.jquery;var i="dropdown-open";var e="dropdown-disabled";var b="dropdown-no-scroll";var c="dropdown-menu-shade";var n="dropdown-menu";var m="dropdown-menu-nav";var j="dropdown-hover";var d="fixed";var g="no-shade";var k="layui-anim layui-anim-upbit";var a="layui-anim layui-anim-fadein";var l=["bottom-left","bottom-right","bottom-center","top-left","top-right","top-center","left-top","left-bottom","left-center","right-top","right-bottom","right-center"];if(h("#ew-css-dropdown").length<=0){layui.link(layui.cache.base+"dropdown/dropdown.css")}var o={init:function(){h(document).off("click.dropdown").on("click.dropdown","."+n+">*:first-child",function(t){var u=h(this).parent();if(!u.hasClass(j)){if(u.hasClass(i)){u.removeClass(i)}else{o.hideAll();o.show(h(this).parent().find("."+m))}}t.stopPropagation()});h(document).off("click.dropHide").on("click.dropHide",function(t){o.hideAll()});h(document).off("click.dropNav").on("click.dropNav","."+m,function(t){t.stopPropagation()});var s,p,q="."+n+"."+j;h(document).off("mouseenter.dropdown").on("mouseenter.dropdown",q,function(t){if(p&&p==t.currentTarget){clearTimeout(s)}o.show(h(this).find("."+m))});h(document).off("mouseleave.dropdown").on("mouseleave.dropdown",q,function(t){p=t.currentTarget;s=setTimeout(function(){h(t.currentTarget).removeClass(i)},300)});h(document).off("click.dropStand").on("click.dropStand","[data-dropdown]",function(t){o.showFixed(h(this));t.stopPropagation()});var r="."+m+" li";h(document).off("mouseenter.dropdownNav").on("mouseenter.dropdownNav",r,function(t){h(this).children(".dropdown-menu-nav-child").addClass(k);h(this).addClass("active")});h(document).off("mouseleave.dropdownNav").on("mouseleave.dropdownNav",r,function(t){h(this).removeClass("active");h(this).find("li.active").removeClass("active")});h(document).off("click.popconfirm").on("click.popconfirm",".dropdown-menu-nav [btn-cancel]",function(t){o.hideAll();t.stopPropagation()})},openClickNavClose:function(){h(document).off("click.dropNavA").on("click.dropNavA","."+m+">li>a",function(p){o.hideAll();h(this).parentsUntil("."+n).last().parent().removeClass(i);p.stopPropagation()})},hideAll:function(){h("."+n).removeClass(i);h("."+m+"."+d).addClass("layui-hide");h("."+c).remove();h("body").removeClass(b);h(".dropdown-fix-parent").removeClass("dropdown-fix-parent");h("[data-dropdown]").removeClass(i)},show:function(r){if(r&&r.length>0&&!r.hasClass(e)){if(r.hasClass("dropdown-popconfirm")){r.removeClass(k);r.addClass(a)}else{r.removeClass(a);r.addClass(k)}var p;for(var q=0;q<l.length;q++){if(r.hasClass("dropdown-"+l[q])){p=l[q];break}}if(!p){r.addClass("dropdown-"+l[0]);p=l[0]}o.forCenter(r,p);r.parent("."+n).addClass(i);return p}return false},showFixed:function(q){var t=h(q.data("dropdown")),p;if(!t.hasClass("layui-hide")){o.hideAll();return}o.hideAll();p=o.show(t);if(p){t.addClass(d);t.removeClass("layui-hide");var s=o.getTopLeft(q,t,p);s=o.checkPosition(t,q,p,s);t.css(s);h("body").addClass(b);var r=(q.attr("no-shade")=="true");h("body").append('<div class="'+(r?(c+" "+g):c)+' layui-anim layui-anim-fadein"></div>');q.parentsUntil("body").each(function(){var u=h(this).css("z-index");if(/[0-9]+/.test(u)){h(this).addClass("dropdown-fix-parent")}});q.addClass(i)}},forCenter:function(p,u){if(!p.hasClass(d)){var t=p.parent().outerWidth(),q=p.parent().outerHeight();var s=p.outerWidth(),v=p.outerHeight();var w=u.split("-"),r=w[0],x=w[1];if((r=="top"||r=="bottom")&&x=="center"){p.css("left",(t-s)/2)}if((r=="left"||r=="right")&&x=="center"){p.css("top",(q-v)/2)}}},getTopLeft:function(B,A,y){var w=B.outerWidth();var u=B.outerHeight();var p=A.outerWidth();var x=A.outerHeight();var z=B.offset().top-h(document).scrollTop();var t=B.offset().left;var D=t+w;var C=0,s=0;var v=y.split("-");var r=v[0];var q=v[1];if(r=="top"||r=="bottom"){x+=8;switch(q){case"left":s=t;break;case"center":s=t-p/2+w/2;break;case"right":s=D-p}}if(r=="left"||r=="right"){p+=8;switch(q){case"top":C=z+u-x;break;case"center":C=z-x/2+u/2;break;case"bottom":C=z}}switch(r){case"top":C=z-x;break;case"right":s=t+w;break;case"bottom":C=z+u;break;case"left":s=t-p}return{top:C,left:s,right:"auto",bottom:"auto"}},checkPosition:function(t,q,p,r){var s=p.split("-");if("bottom"==s[0]){if((r.top+t.outerHeight())>o.getPageHeight()){r=o.getTopLeft(q,t,"top-"+s[1]);t.removeClass("dropdown-"+p);t.addClass("dropdown-top-"+s[1])}}else{if("top"==s[0]){if(r.top<0){r=o.getTopLeft(q,t,"bottom-"+s[1]);t.removeClass("dropdown-"+p);t.addClass("dropdown-bottom-"+s[1])}}}return r},getPageHeight:function(){return document.documentElement.clientHeight||document.body.clientHeight},getPageWidth:function(){return document.documentElement.clientWidth||document.body.clientWidth}};o.init();f("dropdown",o)});
\ No newline at end of file
<!-- fileChoose -->
<div class="file-choose-dialog">
<!-- 顶部工具栏 -->
<div class="file-choose-top-bar">
<div class="file-choose-top-text">当前位置:<span id="fc-current-position">/</span></div>
<div class="file-choose-top-btn-group">
<button id="fc-btn-back" class="layui-btn layui-btn-sm layui-btn-primary">
<i class="layui-icon">&#xe65c;</i>上级
</button>
<button id="fc-btn-refresh" class="layui-btn layui-btn-sm layui-btn-primary">
<i class="layui-icon">&#xe669;</i>刷新
</button>
<button id="fc-btn-upload" class="layui-btn layui-btn-sm layui-btn-normal" style="margin-right: 0;">
<i class="layui-icon">&#xe681;</i>上传
</button>
</div>
</div>
<!-- 文件列表 -->
<div id="file-choose-list" class="file-choose-list"></div>
<!-- 加载动画 -->
<div class="file-choose-loading-group">
<div class="file-choose-loading">
<span></span><span></span><span></span><span></span>
</div>
</div>
<!-- 底部工具栏 -->
<div class="file-choose-bottom-bar">
<button id="fc-btn-ok-sel" class="layui-btn layui-btn-sm layui-btn-normal">完成选择</button>
</div>
</div>
<style>
/** fileChoose */
.file-choose-dialog {
position: relative;
background: #fff;
height: 100%;
}
/** 顶部工具栏 */
.file-choose-dialog .file-choose-top-bar {
position: relative;
white-space: nowrap;
overflow: auto;
text-align: right;
padding: 5px 12px;
background-color: #fff;
z-index: 1;
}
.file-choose-dialog .file-choose-top-bar .layui-btn {
padding: 0 6px;
margin-left: 5px;
}
.file-choose-dialog .file-choose-top-bar .layui-btn .layui-icon {
font-size: 14px !important;
}
.file-choose-dialog .file-choose-top-text {
padding: 7px 15px 0 0;
display: inline-block;
float: left;
}
.file-choose-dialog .file-choose-top-btn-group {
display: inline-block;
}
/** 底部工具栏 */
.file-choose-dialog .file-choose-bottom-bar {
position: absolute;
left: 0;
right: 0;
bottom: 0;
border-top: 1px solid #eee;
padding: 8px 12px;
text-align: right;
background-color: #fff;
}
.file-choose-dialog.hide-bottom .file-choose-bottom-bar {
display: none;
}
/** 文件列表 */
.file-choose-dialog .file-choose-list, .file-choose-loading-group {
position: absolute;
top: 40px;
bottom: 48px;
left: 0;
right: 0;
overflow: auto;
padding: 5px 8px;
}
.file-choose-dialog.hide-bottom .file-choose-list, .file-choose-dialog.hide-bottom .file-choose-loading-group {
bottom: 0;
}
/* 文件列表item */
.file-choose-dialog .file-choose-list-item {
position: relative;
display: inline-block;
vertical-align: top;
padding: 8px 8px;
margin: 5px 0;
cursor: pointer;
}
.file-choose-dialog .file-choose-list-item:hover {
background-color: #F7F7F7;
}
/* 文件列表图片 */
.file-choose-dialog .file-choose-list-item-img {
width: 90px;
height: 90px;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
border-radius: 3px;
overflow: hidden;
position: relative;
background-color: #eee;
}
.file-choose-dialog .file-choose-list-item-img.img-icon {
background-size: inherit;
background-color: transparent;
}
.file-choose-dialog .file-choose-list-item.active .file-choose-list-item-img:after {
content: "";
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.3);
}
/* 文件列表名称 */
.file-choose-dialog .file-choose-list-item-name {
width: 90px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #333;
font-size: 12px;
text-align: center;
margin-top: 12px;
}
/* 文件列表复选框 */
.file-choose-dialog .file-choose-list-item-ck {
position: absolute;
right: 8px;
top: 8px;
}
.file-choose-dialog .file-choose-list-item-ck .layui-form-checkbox {
padding: 0;
}
/* 文件列表操作菜单 */
.file-choose-dialog .file-choose-oper-menu {
background-color: #fff;
position: absolute;
left: 8px;
top: 8px;
border-radius: 2px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, .15);
transition: all .3s;
overflow: hidden;
transform: scale(0);
transform-origin: left top;
visibility: hidden;
}
.file-choose-dialog .file-choose-oper-menu.show {
transform: scale(1);
visibility: visible;
}
/* 文件列表操作菜单item */
.file-choose-dialog .file-choose-oper-menu-item {
color: #555;
padding: 6px 5px;
font-size: 14px;
min-width: 70px;
text-align: center;
cursor: pointer;
display: block;
}
.file-choose-dialog .file-choose-oper-menu-item:hover {
background-color: #eee;
}
/** 文件列表为空时样式 */
.file-choose-dialog .file-choose-empty {
text-align: center;
color: #999;
padding: 50px 0;
}
.file-choose-dialog .file-choose-empty .layui-icon {
font-size: 60px;
display: block;
margin-bottom: 8px;
}
/** 加载动画 */
.file-choose-dialog .file-choose-loading-group {
background-color: #fff;
}
.file-choose-dialog .file-choose-loading {
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.file-choose-dialog .file-choose-loading span {
display: inline-block;
width: 5px;
height: 0px;
margin: 0 2px;
vertical-align: bottom;
background-color: #1E9FFF;
animation: fcl-signal-load 1s infinite;
-webkit-animation: fcl-signal-load 1s infinite;
}
.file-choose-dialog .file-choose-loading span:nth-child(2) {
animation-delay: 0.05s;
-webkit-animation-delay: 0.05s;
}
.file-choose-dialog .file-choose-loading span:nth-child(3) {
animation-delay: 0.1s;
-webkit-animation-delay: 0.1s;
}
.file-choose-dialog .file-choose-loading span:nth-child(4) {
animation-delay: 0.15s;
-webkit-animation-delay: 0.15s;
}
@keyframes fcl-signal-load {
0% {
height: 0px;
}
50% {
height: 15px;
}
100% {
height: 0px;
}
}
@-webkit-keyframes fcl-signal-load {
0% {
height: 0px;
}
50% {
height: 15px;
}
100% {
height: 0px;
}
}
</style>
\ No newline at end of file
/** 文件选择扩展模块 date:2019-08-03 License By http://easyweb.vip */
layui.define(["jquery","layer","form","upload","util"],function(c){var g=layui.jquery;var e=layui.layer;var f=layui.form;var d=layui.upload;var b=layui.util;var h=[{suffix:["ppt","pptx"],icon:"ppt"},{suffix:["doc","docx"],icon:"doc"},{suffix:["xls","xlsx"],icon:"xls"},{suffix:["pdf"],icon:"pdf"},{suffix:["html","htm"],icon:"htm"},{suffix:["txt"],icon:"txt"},{suffix:["swf","docx"],icon:"flash"},{suffix:["zip","rar","7z"],icon:"zip"},{suffix:["mp3","wav"],icon:"mp3"},{suffix:["mp4","3gp","rmvb","avi","flv"],icon:"mp4"},{suffix:["psd"],icon:"psd"},{suffix:["ttf"],icon:"ttf"},{suffix:["apk"],icon:"apk"},{suffix:["exe"],icon:"exe"},{suffix:["torrent"],icon:"bt"},{suffix:["gif","png","jpeg","jpg","bmp"],icon:"img"}];var a={};a.open=function(r){var x=r.fileUrl;var l=r.listUrl;var u=r.where;var A=r.num;var v=r.onChoose;var i=r.upload;var p=r.dialog;var B=r.menu;var o=r.menuClick;var j=r.response?r.response:{};var y=j.dir;var E=j.code;var s=j.url;var z=j.smUrl;var w=j.isDir;var F=j.name;var n=j.method;var k=j.parseData;var t=[];u||(u={});(A!=undefined)||(A=1);i||(i={});p||(p={});y||(y="dir");(E!=undefined)||(E=200);s||(s="url");z||(z="smUrl");w||(w="isDir");F||(F="name");n||(n="get");p.id="file-choose-dialog";p.type=1;(p.title!=undefined)||(p.title="选择文件");p.content="";p.area||(p.area=["565px","420px"]);(p.shade!=undefined)||(p.shade=0.1);p.fixed||(p.fixed=false);p.skin||(p.skin="layer-file-choose");var q=r.success;p.success=function(G,H){g(G).children(".layui-layer-content").load(layui.cache.base+"fileChoose/fileChoose.html",function(){C();q&&q(G,index)})};e.open(p);function D(G){G||(G=g("#fc-current-position").text());g(".file-choose-dialog .file-choose-loading-group").removeClass("layui-hide");u[y]=G;g("#file-choose-list").html("");g.ajax({url:l,type:n,data:u,dataType:"json",success:function(H){k&&(H=k(H));if(H.code==E){t=H.data;g("#fc-btn-ok-sel").text("完成选择");g("#file-choose-list").html(a.renderList({fileUrl:x,data:t,multi:A>1,menu:B,response:j}));f.render("checkbox")}else{e.msg(H.msg,{icon:2,anim:6});g("#file-choose-list").html(a.getErrorHtml("加载失败","layui-icon-face-cry"))}setTimeout(function(){g(".file-choose-dialog .file-choose-loading-group").addClass("layui-hide")},200)}})}function C(){(A>1)||(g(".file-choose-dialog").addClass("hide-bottom"));D();g("#fc-btn-refresh").click(function(){D()});g("#fc-btn-back").click(function(){var G=g("#fc-current-position").text();if(G!="/"){G=G.substring(0,G.lastIndexOf("/"));G||(G="/");g("#fc-current-position").text(G);D(G)}});i.elem="#fc-btn-upload";i.data||(i.data={});i.data.dir=function(){return g("#fc-current-position").text()};i.before=function(){e.load(2)};i.done=function(J,I,H){e.closeAll("loading");if(J.code!=E){e.msg(J.msg,{icon:2})}else{e.msg(J.msg,{icon:1});var G=J.dir?J.dir:b.toDateString(new Date(),"/yyyy/MM/dd");g("#fc-current-position").text(G);D()}};i.error=function(){e.closeAll("loading");e.msg("上传失败",{icon:2})};d.render(i);g("#fc-btn-ok-sel").click(function(){var G=[];g('input[lay-filter="file-choose-item-ck"]:checked').each(function(){var H=g(this).parents(".file-choose-list-item").data("index");G.push(t[H])});if(G.length<=0){e.msg("请选择",{icon:2,anim:6})}else{if(G.length>A){e.msg("最多只能选择"+A+"个",{icon:2,anim:6})}else{m(G)}}});g(document).off("click.fcli").on("click.fcli",".file-choose-dialog .file-choose-list-item",function(I){var H=t[g(this).data("index")];if(H[w]){var J=g("#fc-current-position").text();J+=(J=="/"?H[F]:("/"+H[F]));g("#fc-current-position").text(J);D(J)}else{var G=g(this).find(".file-choose-oper-menu");g(".file-choose-dialog .file-choose-oper-menu").not(G).removeClass("show");G.toggleClass("show");I.stopPropagation()}});g(document).off("click.fclom").on("click.fclom",".file-choose-dialog",function(G){g(".file-choose-dialog .file-choose-oper-menu").removeClass("show");G.stopPropagation()});f.on("checkbox(file-choose-item-ck)",function(H){var G=g('.file-choose-dialog input[lay-filter="file-choose-item-ck"]:checked').length;if(H.elem.checked){if(G>A){e.msg("最多只能选择"+A+"个",{icon:2,anim:6});g(H.elem).prop("checked",false);f.render("checkbox");return}g(H.elem).parents(".file-choose-list-item").addClass("active")}else{g(H.elem).parents(".file-choose-list-item").removeClass("active")}g("#fc-btn-ok-sel").text("完成选择"+(G>0?("("+G+")"):""))});g(document).off("click.fclic").on("click.fclic",".file-choose-dialog .file-choose-list-item-ck",function(G){G.stopPropagation()});g(document).off("click.fclomi").on("click.fclomi",".file-choose-dialog .file-choose-oper-menu-item",function(){var K=g(this).data("event");var J=g(this).parent().parent().data("index");if("choose"==K){if(A>1){g(this).parent().parent().find(".layui-form-checkbox").trigger("click")}else{m([t[J]])}}else{if("preview"==K){var H=(x+t[J][s]);if("img"==a.getFileType(H)){var L=[],M=0;for(var I=0;I<t.length;I++){var G=x+t[I][s];if("img"==a.getFileType(G)){L.push({src:G,alt:t[I][F]})}if(H==G){M=L.length-1}}e.photos({photos:{start:M,data:L},shade:0.1,closeBtn:true})}else{e.confirm("这不是图片类型,可能需要下载才能预览,确定要打开吗?",{title:"温馨提示",area:"260px",shade:0.1},function(N){e.close(N);window.open(H)})}}else{o&&o(K,t[J])}}})}function m(G){v&&v(G);e.close(g("#fc-btn-ok-sel").parents(".layui-layer").attr("id").substring(11))}};a.renderList=function(l){var r=l.fileUrl;var o=l.data;var t=l.multi;var u=l.menu;var j=l.response?l.response:{};var n=j.url;var s=j.smUrl;var q=j.isDir;var A=j.name;(r==undefined)&&(r="");(o==undefined)&&(o=[]);(t==undefined)&&(t=false);n||(n="url");s||(s="smUrl");q||(q="isDir");A||(A="name");var p="";if(o.length<=0){p+=a.getErrorHtml("没有文件")}else{for(var v=0;v<o.length;v++){var x=o[v];p+='<div class="file-choose-list-item" data-index="'+v+'">';var z=r+x[s],w="";if(!x[s]){w=" img-icon";z=a.getFileIcon(x[n],x[q])}var m="background-image: url('"+z+"')";p+=' <div class="file-choose-list-item-img'+w+'" style="'+m+'"></div>';p+=' <div class="file-choose-list-item-name" title="'+x[A]+'">'+x[A]+"</div>";if(!x[q]&&t){p+=' <div class="file-choose-list-item-ck layui-form">';p+=' <input type="checkbox" lay-skin="primary" lay-filter="file-choose-item-ck"/>';p+=" </div>"}if(!u){p+='<div class="file-choose-oper-menu">';p+=' <div class="file-choose-oper-menu-item" data-event="preview">预览</div>';p+=' <div class="file-choose-oper-menu-item" data-event="choose">选择</div>';p+="</div>"}else{if(u.length>0){p+='<div class="file-choose-oper-menu">';for(var y=0;y<u.length;y++){var k=u[y];p+='<div class="file-choose-oper-menu-item" data-event="'+k.event+'">'+k.name+"</div>"}p+="</div>"}}p+="</div>"}}return p};a.getErrorHtml=function(k,j){j||(j="layui-icon-face-surprised");var i="";i+='<div class="file-choose-empty">';i+=' <i class="layui-icon '+j+'"></i>';i+=" <p>"+k+"</p>";i+="</div>";return i};a.getFileIcon=function(i,k){var j=k?"dir":a.getFileType(i);return layui.cache.base+"fileChoose/img/"+j+".png"};a.getFileType=function(l){var n="file";var o=l.substring(l.lastIndexOf(".")+1);for(var m=0;m<h.length;m++){for(var k=0;k<h[m].suffix.length;k++){if(o.toLowerCase()==h[m].suffix[k]){n=h[m].icon;break}}}return n};g("body").append("<style>.layer-file-choose { max-width: 100%;}@media screen and (max-width:768px){.layer-file-choose{max-width:98%;max-width:-moz-calc(100% - 30px);max-width:-webkit-calc(100% - 30px);max-width:calc(100% - 30px);left:0!important;right:0!important;margin:auto!important;margin-bottom:15px!important}}</style>");c("fileChoose",a)});
/** 表单扩展模块 date:2020-05-04 License By http://easyweb.vip */
layui.define(["form"],function(b){var e=layui.jquery;var c=layui.form;var a={phoneX:"请输入正确的手机号",emailX:"邮箱格式不正确",urlX:"链接格式不正确",numberX:"只能填写数字",dateX:"日期格式不正确",identityX:"请输入正确的身份证号",psw:"密码必须5到12位,且不能出现空格",equalTo:"两次输入不一致",digits:"只能输入整数",digitsP:"只能输入正整数",digitsN:"只能输入负整数",digitsPZ:"只能输入正整数和0",digitsNZ:"只能输入负整数和0",minlength:"最少输入{minlength}个字符",maxlength:"最多输入{maxlength}个字符",min:"值不能小于{min}",max:"值不能大于{max}"};var f={phoneX:function(i,h){var g=/^1\d{10}$/;if(i&&!g.test(i)){return a.phoneX}},emailX:function(i,h){var g=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(i&&!g.test(i)){return a.emailX}},urlX:function(i,h){var g=/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/;if(i&&!g.test(i)){return a.urlX}},numberX:function(h,g){if(h&&isNaN(h)){return a.numberX}},dateX:function(i,h){var g=/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/;if(i&&!g.test(i)){return a.dateX}},identityX:function(i,h){var g=/(^\d{15}$)|(^\d{17}(x|X|\d)$)/;if(i&&!g.test(i)){return a.identityX}},psw:function(h,g){if(h&&!/^[\S]{5,12}$/.test(h)){return a.psw}},equalTo:function(h,g){if(h!=e(e(g).attr("lay-equalTo")).val()){var i=e(g).attr("lay-equalToText");return i?i:a.equalTo}},digits:function(i,h){var g=/^-?\d+$/;if(i&&!g.test(i)){return a.digits}},digitsP:function(i,h){var g=/^[1-9]\d*$/;if(i&&!g.test(i)){return a.digitsP}},digitsN:function(i,h){var g=/^-[1-9]\d*$/;if(i&&!g.test(i)){return a.digitsN}},digitsPZ:function(i,h){var g=/^\d+$/;if(i&&!g.test(i)){return a.digitsPZ}},digitsNZ:function(i,h){var g=/^-[1-9]\d*|0/;if(i&&!g.test(i)){return a.digitsNZ}},h5:function(l,k){if(l){var j=e(k).attr("minlength");var i=e(k).attr("maxlength");var h=e(k).attr("min");var g=e(k).attr("max");if(j&&l.length<j){return a.minlength.replace(/{minlength}/g,j)}if(i&&l.length>i){return a.maxlength.replace(/{maxlength}/g,i)}if(h&&l*1<h*1){return a.min.replace(/{min}/g,h)}if(g&&l*1>g*1){return a.max.replace(/{max}/g,g)}}}};var d={init:function(){c.verify(f)},formVal:function(h,g){d.val(h,g)},val:function(h,g){e('.layui-form[lay-filter="'+h+'"]').each(function(){var j=e(this);for(var l in g){if(!g.hasOwnProperty(l)){continue}var i=j.find('[name="'+l+'"]');if(i.length>0){var k=i[0].type;if(k==="checkbox"){i[0].checked=g[l]}else{if(k==="radio"){i.each(function(){if(this.value==g[l]){this.checked=true}})}else{i.val(g[l])}}}}});c.render(null,h)},renderSelect:function(l){var h={elem:undefined,data:[],name:undefined,value:undefined,hint:"请选择",initValue:undefined,method:"get",where:undefined,headers:undefined,async:true,done:undefined,error:undefined};l=e.extend(h,l);if(typeof l.data==="string"){e.ajax({url:l.data,type:l.method,data:l.where,dataType:"json",headers:l.header||l.headers,async:l.async,success:function(i,m,n){if(i.data){l.data=i.data;d.renderSelect(l)}else{l.error&&l.error(n,i)}},error:l.error})}else{var k=l.hint?('<option value="">'+l.hint+"</option>"):"";for(var j=0;j<l.data.length;j++){if(l.name&&l.value){k+=('<option value="'+l.data[j][l.value]+'"'+(l.data[j][l.value]==l.initValue?" selected":"")+">"+l.data[j][l.name]+"</option>")}else{k+=('<option value="'+l.data[j]+'"'+(l.data[j]==l.initValue?" selected":"")+">"+l.data[j]+"</option>")}}e(l.elem).html(k);var g=e(l.elem).parent(".layui-form");if(g.length===0){g=e(l.elem).parentsUntil(".layui-form").last().parent()}c.render("select",g.attr("lay-filter"));l.done&&l.done(l.data)}},startTimer:function(g,j,i){if(!j){j=60}if(!i){i=function(l){return l+"s"}}if(d.timers[g]){clearInterval(d.timers[g])}var h=e(g).html();e(g).html(i(j));e(g).prop("disabled",true);e(g).addClass("layui-btn-disabled");var k=setInterval(function(){j--;if(j<=0){clearInterval(k);e(g).html(h);e(g).removeProp("disabled");e(g).removeClass("layui-btn-disabled")}else{e(g).html(i(j))}},1000);d.timers[g]=k},timers:{},formUpdatedField:function(i,h){if(typeof i=="string"){i=c.val(i)}for(var g in i){if(!i.hasOwnProperty(g)){continue}if(i[g]===h[g]){delete i[g]}}if(Object.keys(i).length>0){return i}}};d.init();b("formX",d)});
\ No newline at end of file
/** EasyWeb iframe v3.1.8 date:2020-05-04 License By http://easyweb.vip */
layui.define(["layer","element","admin"],function(g){var i=layui.jquery;var m=layui.layer;var j=layui.element;var p=layui.admin;var e=p.setter;var k=".layui-layout-admin>.layui-header";var f=".layui-layout-admin>.layui-side>.layui-side-scroll";var b=".layui-layout-admin>.layui-body";var l=b+">.layui-tab";var a=b+">.layui-body-header";var c="admin-pagetabs";var d="admin-side-nav";var q={};var o=false;var n={homeUrl:undefined,mTabPosition:undefined,mTabList:[]};n.loadView=function(t){if(!t.menuPath){return m.msg("url不能为空",{icon:2,anim:6})}if(e.pageTabs){var s;i(l+">.layui-tab-title>li").each(function(){if(i(this).attr("lay-id")===t.menuPath){s=true}});if(!s){if(n.mTabList.length+1>=e.maxTabNum){m.msg("最多打开"+e.maxTabNum+"个选项卡",{icon:2,anim:6});return p.activeNav(n.mTabPosition)}o=true;j.tabAdd(c,{id:t.menuPath,title:'<span class="title">'+(t.menuName||"")+"</span>",content:'<iframe class="admin-iframe" lay-id="'+t.menuPath+'" src="'+t.menuPath+'" onload="layui.index.hideLoading(this);" frameborder="0"></iframe>'});p.showLoading({elem:i('iframe[lay-id="'+t.menuPath+'"]').parent(),size:""});if(t.menuPath!==n.homeUrl){n.mTabList.push(t)}if(e.cacheTab){p.putTempData("indexTabs",n.mTabList)}}if(!t.noChange){j.tabChange(c,t.menuPath)}}else{p.activeNav(t.menuPath);var r=i(b+">div>.admin-iframe");if(r.length===0){i(b).html(['<div class="layui-body-header">',' <span class="layui-body-header-title"></span>',' <span class="layui-breadcrumb pull-right" lay-filter="admin-body-breadcrumb" style="visibility: visible;"></span>',"</div>",'<div style="-webkit-overflow-scrolling: touch;">',' <iframe class="admin-iframe" lay-id="',t.menuPath,'" src="',t.menuPath,'"',' onload="layui.index.hideLoading(this);" frameborder="0"></iframe>',"</div>"].join(""));p.showLoading({elem:i('iframe[lay-id="'+t.menuPath+'"]').parent(),size:""})}else{p.showLoading({elem:r.parent(),size:""});r.attr("lay-id",t.menuPath).attr("src",t.menuPath)}i('[lay-filter="admin-body-breadcrumb"]').html(n.getBreadcrumbHtml(t.menuPath));n.mTabList.splice(0,n.mTabList.length);if(t.menuPath===n.homeUrl){n.mTabPosition=undefined;n.setTabTitle(i(t.menuName).text()||i(f+' [lay-href="'+n.homeUrl+'"]').text()||"主页")}else{n.mTabPosition=t.menuPath;n.mTabList.push(t);n.setTabTitle(t.menuName)}if(!e.cacheTab){return}p.putTempData("indexTabs",n.mTabList);p.putTempData("tabPosition",n.mTabPosition)}if(p.getPageWidth()<=768){p.flexible(true)}};n.loadHome=function(v){var u=p.getTempData("indexTabs");var t=p.getTempData("tabPosition");var r=(v.loadSetting===undefined||v.loadSetting)&&(e.cacheTab&&u&&u.length>0);n.homeUrl=v.menuPath;v.noChange=t?r:false;if(e.pageTabs||!r){n.loadView(v)}if(r){for(var s=0;s<u.length;s++){u[s].noChange=u[s].menuPath!==t;if(!u[s].noChange||(e.pageTabs&&!v.onlyLast)){n.loadView(u[s])}}}p.removeLoading(undefined,false)};n.openTab=function(r){if(window!==top&&!p.isTop()&&top.layui&&top.layui.index){return top.layui.index.openTab(r)}if(r.end){q[r.url]=r.end}n.loadView({menuPath:r.url,menuName:r.title})};n.closeTab=function(r){if(window!==top&&!p.isTop()&&top.layui&&top.layui.index){return top.layui.index.closeTab(r)}j.tabDelete(c,r)};n.setTabCache=function(r){if(window!==top&&!p.isTop()&&top.layui&&top.layui.index){return top.layui.index.setTabCache(r)}p.putSetting("cacheTab",r);if(!r){return n.clearTabCache()}p.putTempData("indexTabs",n.mTabList);p.putTempData("tabPosition",n.mTabPosition)};n.clearTabCache=function(){p.putTempData("indexTabs",null);p.putTempData("tabPosition",null)};n.setTabTitle=function(s,r){if(window!==top&&!p.isTop()&&top.layui&&top.layui.index){return top.layui.index.setTabTitle(s,r)}if(e.pageTabs){if(!r){r=i(l+">.layui-tab-title>li.layui-this").attr("lay-id")}if(r){i(l+'>.layui-tab-title>li[lay-id="'+r+'"] .title').html(s||"")}}else{if(s){i(a+">.layui-body-header-title").html(s);i(a).addClass("show");i(k).css("box-shadow","0 1px 0 0 rgba(0, 0, 0, .03)")}else{i(a).removeClass("show");i(k).css("box-shadow","")}}};n.setTabTitleHtml=function(r){if(window!==top&&!p.isTop()&&top.layui&&top.layui.index){return top.layui.index.setTabTitleHtml(r)}if(e.pageTabs){return}if(!r){return i(a).removeClass("show")}i(a).html(r);i(a).addClass("show")};n.getBreadcrumb=function(r){if(!r){r=i(b+">div>.admin-iframe").attr("lay-id")}var t=[];var s=i(f).find('[lay-href="'+r+'"]');if(s.length>0){t.push(s.text().replace(/(^\s*)|(\s*$)/g,""))}while(true){s=s.parent("dd").parent("dl").prev("a");if(s.length===0){break}t.unshift(s.text().replace(/(^\s*)|(\s*$)/g,""))}return t};n.getBreadcrumbHtml=function(r){var u=n.getBreadcrumb(r);var t=r===n.homeUrl?"":('<a ew-href="'+n.homeUrl+'">首页</a>');for(var s=0;s<u.length-1;s++){if(t){t+='<span lay-separator="">/</span>'}t+=("<a><cite>"+u[s]+"</cite></a>")}return t};n.hideLoading=function(r){if(typeof r!=="string"){r=i(r).attr("lay-id")}p.removeLoading(i('iframe[lay-id="'+r+'"],'+b+" iframe[lay-id]").parent(),false)};var h=".layui-layout-admin .site-mobile-shade";if(i(h).length===0){i(".layui-layout-admin").append('<div class="site-mobile-shade"></div>')}i(h).click(function(){p.flexible(true)});if(e.pageTabs&&i(l).length===0){i(b).html(['<div class="layui-tab" lay-allowClose="true" lay-filter="',c,'" lay-autoRefresh="',e.tabAutoRefresh=="true",'">',' <ul class="layui-tab-title"></ul><div class="layui-tab-content"></div>',"</div>",'<div class="layui-icon admin-tabs-control layui-icon-prev" ew-event="leftPage"></div>','<div class="layui-icon admin-tabs-control layui-icon-next" ew-event="rightPage"></div>','<div class="layui-icon admin-tabs-control layui-icon-down">',' <ul class="layui-nav" lay-filter="admin-pagetabs-nav">',' <li class="layui-nav-item" lay-unselect>',' <dl class="layui-nav-child layui-anim-fadein">',' <dd ew-event="closeThisTabs" lay-unselect><a>关闭当前标签页</a></dd>',' <dd ew-event="closeOtherTabs" lay-unselect><a>关闭其它标签页</a></dd>',' <dd ew-event="closeAllTabs" lay-unselect><a>关闭全部标签页</a></dd>'," </dl>"," </li>"," </ul>","</div>"].join(""));j.render("nav","admin-pagetabs-nav")}j.on("nav("+d+")",function(v){var t=i(v);var s=t.attr("lay-href");if(!s||s==="#"){return}if(s.indexOf("javascript:")===0){return new Function(s.substring(11))()}var u=t.attr("ew-title")||t.text().replace(/(^\s*)|(\s*$)/g,"");var r=t.attr("ew-end");try{if(r){r=new Function(r)}else{r=undefined}}catch(w){console.error(w)}n.openTab({url:s,title:u,end:r});layui.event.call(this,"admin","side({*})",{href:s})});j.on("tab("+c+")",function(){var r=i(this).attr("lay-id");n.mTabPosition=(r!==n.homeUrl?r:undefined);if(e.cacheTab){p.putTempData("tabPosition",n.mTabPosition)}p.activeNav(r);p.rollPage("auto");if(i(l).attr("lay-autoRefresh")=="true"&&!o){p.refresh(r,true)}o=false;layui.event.call(this,"admin","tab({*})",{layId:r})});j.on("tabDelete("+c+")",function(s){var r=n.mTabList[s.index-1];if(r){n.mTabList.splice(s.index-1,1);if(e.cacheTab){p.putTempData("indexTabs",n.mTabList)}q[r.menuPath]&&q[r.menuPath].call();layui.event.call(this,"admin","tabDelete({*})",{layId:r.menuPath})}if(i(l+">.layui-tab-title>li.layui-this").length===0){i(l+">.layui-tab-title>li:last").trigger("click")}});i(document).off("click.navMore").on("click.navMore","[nav-bind]",function(){var r=i(this).attr("nav-bind");i('ul[lay-filter="'+d+'"]').addClass("layui-hide");i('ul[nav-id="'+r+'"]').removeClass("layui-hide");i(k+">.layui-nav .layui-nav-item").removeClass("layui-this");i(this).parent(".layui-nav-item").addClass("layui-this");if(p.getPageWidth()<=768){p.flexible(false)}layui.event.call(this,"admin","nav({*})",{navId:r})});if(e.openTabCtxMenu&&e.pageTabs){layui.use("contextMenu",function(){if(!layui.contextMenu){return}i(l+">.layui-tab-title").off("contextmenu.tab").on("contextmenu.tab","li",function(s){var r=i(this).attr("lay-id");layui.contextMenu.show([{icon:"layui-icon layui-icon-refresh",name:"刷新当前",click:function(){j.tabChange(c,r);if("true"!=i(l).attr("lay-autoRefresh")){p.refresh(r)}}},{icon:"layui-icon layui-icon-close-fill ctx-ic-lg",name:"关闭当前",click:function(){p.closeThisTabs(r)}},{icon:"layui-icon layui-icon-unlink",name:"关闭其他",click:function(){p.closeOtherTabs(r)}},{icon:"layui-icon layui-icon-close ctx-ic-lg",name:"关闭全部",click:function(){p.closeAllTabs()}}],s.clientX,s.clientY);return false})})}g("index",n)});
/*!
* jQuery Mousewheel 3.1.13
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS style for Browserify
module.exports = factory;
} else if (window.layui && layui.define) { // layui加载
layui.define('jquery', function (exports) {
var $ = layui.jquery;
exports('mousewheel', factory($));
});
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {
var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'],
toBind = ('onwheel' in document || document.documentMode >= 9) ?
['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'],
slice = Array.prototype.slice,
nullLowestDeltaTimeout, lowestDelta;
if ($.event.fixHooks) {
for (var i = toFix.length; i;) {
$.event.fixHooks[toFix[--i]] = $.event.mouseHooks;
}
}
var special = $.event.special.mousewheel = {
version: '3.1.12',
setup: function () {
if (this.addEventListener) {
for (var i = toBind.length; i;) {
this.addEventListener(toBind[--i], handler, false);
}
} else {
this.onmousewheel = handler;
}
// Store the line height and page height for this particular element
$.data(this, 'mousewheel-line-height', special.getLineHeight(this));
$.data(this, 'mousewheel-page-height', special.getPageHeight(this));
},
teardown: function () {
if (this.removeEventListener) {
for (var i = toBind.length; i;) {
this.removeEventListener(toBind[--i], handler, false);
}
} else {
this.onmousewheel = null;
}
// Clean up the data we added to the element
$.removeData(this, 'mousewheel-line-height');
$.removeData(this, 'mousewheel-page-height');
},
getLineHeight: function (elem) {
var $elem = $(elem),
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
if (!$parent.length) {
$parent = $('body');
}
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
},
getPageHeight: function (elem) {
return $(elem).height();
},
settings: {
adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
normalizeOffset: true // calls getBoundingClientRect for each event
}
};
$.fn.extend({
mousewheel: function (fn) {
return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
},
unmousewheel: function (fn) {
return this.unbind('mousewheel', fn);
}
});
function handler(event) {
var orgEvent = event || window.event,
args = slice.call(arguments, 1),
delta = 0,
deltaX = 0,
deltaY = 0,
absDelta = 0,
offsetX = 0,
offsetY = 0;
event = $.event.fix(orgEvent);
event.type = 'mousewheel';
// Old school scrollwheel delta
if ('detail' in orgEvent) {
deltaY = orgEvent.detail * -1;
}
if ('wheelDelta' in orgEvent) {
deltaY = orgEvent.wheelDelta;
}
if ('wheelDeltaY' in orgEvent) {
deltaY = orgEvent.wheelDeltaY;
}
if ('wheelDeltaX' in orgEvent) {
deltaX = orgEvent.wheelDeltaX * -1;
}
// Firefox < 17 horizontal scrolling related to DOMMouseScroll event
if ('axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS) {
deltaX = deltaY * -1;
deltaY = 0;
}
// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
delta = deltaY === 0 ? deltaX : deltaY;
// New school wheel delta (wheel event)
if ('deltaY' in orgEvent) {
deltaY = orgEvent.deltaY * -1;
delta = deltaY;
}
if ('deltaX' in orgEvent) {
deltaX = orgEvent.deltaX;
if (deltaY === 0) {
delta = deltaX * -1;
}
}
// No change actually happened, no reason to go any further
if (deltaY === 0 && deltaX === 0) {
return;
}
// Need to convert lines and pages to pixels if we aren't already in pixels
// There are three delta modes:
// * deltaMode 0 is by pixels, nothing to do
// * deltaMode 1 is by lines
// * deltaMode 2 is by pages
if (orgEvent.deltaMode === 1) {
var lineHeight = $.data(this, 'mousewheel-line-height');
delta *= lineHeight;
deltaY *= lineHeight;
deltaX *= lineHeight;
} else if (orgEvent.deltaMode === 2) {
var pageHeight = $.data(this, 'mousewheel-page-height');
delta *= pageHeight;
deltaY *= pageHeight;
deltaX *= pageHeight;
}
// Store lowest absolute delta to normalize the delta values
absDelta = Math.max(Math.abs(deltaY), Math.abs(deltaX));
if (!lowestDelta || absDelta < lowestDelta) {
lowestDelta = absDelta;
// Adjust older deltas if necessary
if (shouldAdjustOldDeltas(orgEvent, absDelta)) {
lowestDelta /= 40;
}
}
// Adjust older deltas if necessary
if (shouldAdjustOldDeltas(orgEvent, absDelta)) {
// Divide all the things by 40!
delta /= 40;
deltaX /= 40;
deltaY /= 40;
}
// Get a whole, normalized value for the deltas
delta = Math[delta >= 1 ? 'floor' : 'ceil'](delta / lowestDelta);
deltaX = Math[deltaX >= 1 ? 'floor' : 'ceil'](deltaX / lowestDelta);
deltaY = Math[deltaY >= 1 ? 'floor' : 'ceil'](deltaY / lowestDelta);
// Normalise offsetX and offsetY properties
if (special.settings.normalizeOffset && this.getBoundingClientRect) {
var boundingRect = this.getBoundingClientRect();
offsetX = event.clientX - boundingRect.left;
offsetY = event.clientY - boundingRect.top;
}
// Add information to the event object
event.deltaX = deltaX;
event.deltaY = deltaY;
event.deltaFactor = lowestDelta;
event.offsetX = offsetX;
event.offsetY = offsetY;
// Go ahead and set deltaMode to 0 since we converted to pixels
// Although this is a little odd since we overwrite the deltaX/Y
// properties with normalized deltas.
event.deltaMode = 0;
// Add event and delta to the front of the arguments
args.unshift(event, delta, deltaX, deltaY);
// Clearout lowestDelta after sometime to better
// handle multiple device types that give different
// a different lowestDelta
// Ex: trackpad = 3 and mouse wheel = 120
if (nullLowestDeltaTimeout) {
clearTimeout(nullLowestDeltaTimeout);
}
nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);
return ($.event.dispatch || $.event.handle).apply(this, args);
}
function nullLowestDelta() {
lowestDelta = null;
}
function shouldAdjustOldDeltas(orgEvent, absDelta) {
// If this is an older event and the delta is divisable by 120,
// then we are assuming that the browser is treating this as an
// older mouse wheel event and that we should divide the deltas
// by 40 to try and get a more usable deltaFactor.
// Side note, this actually impacts the reported scroll distance
// in older browsers and can cause scrolling to be slower than native.
// Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
return special.settings.adjustOldDeltas && orgEvent.type === 'mousewheel' && absDelta % 120 === 0;
}
}));
/** 打印模块 date:2020-05-04 License By http://easyweb.vip */
layui.define(["jquery"],function(a){var d=layui.jquery;var f="hide-print";var c="printing";var e='<object id="WebBrowser" classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2" width="0" height="0"></object>';var b={isIE:function(){return(!!window.ActiveXObject||"ActiveXObject" in window)},isEdge:function(){return navigator.userAgent.indexOf("Edge")!==-1},isFirefox:function(){return navigator.userAgent.indexOf("Firefox")!==-1}};b.print=function(h){window.focus();h||(h={});var j=h.hide;var g=h.horizontal;var l=h.iePreview;var i=h.blank;var o=h.close;(l===undefined)&&(l=true);(i===undefined&&window!==top&&l&&b.isIE())&&(i=true);(o===undefined&&i&&!b.isIE())&&(o=true);d("#page-print-set").remove();if(g!==undefined){var p='<style type="text/css" media="print" id="page-print-set">';p+=(" @page { size: "+(g?"landscape":"portrait")+"; }");p+=" </style>";d("body").append(p)}b.hideElem(j);var k;if(i){k=window.open("","_blank");k.focus();var n=k.document;n.open();var m="<!DOCTYPE html>"+document.getElementsByTagName("html")[0].innerHTML;if(l&&b.isIE()){m+=e;m+=("<script>window.onload = function(){ WebBrowser.ExecWB(7, 1); "+(o?"window.close();":"")+" }<\/script>")}else{m+=("<script>window.onload = function(){ window.print(); "+(o?"window.close();":"")+" }<\/script>")}n.write(m);n.close()}else{k=window;if(l&&b.isIE()){(d("#WebBrowser").length===0)&&(d("body").append(e));WebBrowser.ExecWB(7,1)}else{k.print()}}b.showElem(j);return k};b.printHtml=function(i){i||(i={});var k=i.html;var j=i.blank;var p=i.close;var g=i.print;var h=i.horizontal;var m=i.iePreview;(g===undefined)&&(g=true);(m===undefined)&&(m=true);(j===undefined&&b.isIE())&&(j=true);(p===undefined&&j&&!b.isIE())&&(p=true);var l,o;if(j){l=window.open("","_blank");o=l.document}else{var n=document.getElementById("printFrame");if(!n){d("body").append('<iframe id="printFrame" style="display: none;"></iframe>');n=document.getElementById("printFrame")}l=n.contentWindow;o=n.contentDocument||n.contentWindow.document}l.focus();if(k){k+=("<style>"+b.getCommonCss(true)+"</style>");if(h!==undefined){k+='<style type="text/css" media="print">';k+=(" @page { size: "+(h?"landscape":"portrait")+"; }");k+="</style>"}if(m&&b.isIE()){k+=e;if(g){k+=("<script>window.onload = function(){ WebBrowser.ExecWB(7, 1); "+(p?"window.close();":"")+" }<\/script>")}}else{if(g){k+=("<script>window.onload = function(){ window.print(); "+(p?"window.close();":"")+" }<\/script>")}}o.open();o.write(k);o.close()}return l};b.printPage=function(l){l||(l={});var g=l.htmls;var x=l.horizontal;var w=l.style;var p=l.padding;var n=l.blank;var q=l.close;var k=l.print;var s=l.width;var r=l.height;var h=l.iePreview;var t=l.debug;(k===undefined)&&(k=true);(h===undefined)&&(h=true);(n===undefined&&b.isIE())&&(n=true);(q===undefined&&n&&!b.isIE())&&(q=true);var j,o;if(n){j=window.open("","_blank");o=j.document}else{var y=document.getElementById("printFrame");if(!y){d("body").append('<iframe id="printFrame" style="display: none;"></iframe>');y=document.getElementById("printFrame")}j=y.contentWindow;o=y.contentDocument||y.contentWindow.document}j.focus();var m='<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>打印窗口</title>';w&&(m+=w);m+=b.getPageCss(p,s,r);if(x!==undefined){m+='<style type="text/css" media="print">';m+=(" @page { size: "+(x?"landscape":"portrait")+"; }");m+="</style>"}m+="</head><body>";if(g){var v=t?" page-debug":"";m+='<div class="print-page'+v+'">';for(var u=0;u<g.length;u++){m+='<div class="print-page-item">';m+=g[u];m+="</div>"}m+="</div>"}if(h&&b.isIE()){m+=e;if(k){m+=("<script>window.onload = function(){ WebBrowser.ExecWB(7, 1); "+(q?"window.close();":"")+" }<\/script>")}}else{if(k){m+=("<script>window.onload = function(){ window.print(); "+(q?"window.close();":"")+" }<\/script>")}}m+="</body></html>";o.open();o.write(m);o.close();return j};b.getPageCss=function(j,h,g){var i="<style>";i+="body {";i+=" margin: 0 !important;";i+="} ";i+=".print-page .print-page-item {";i+=" page-break-after: always !important;";i+=" box-sizing: border-box !important;";i+=" border: none !important;";j&&(i+=("padding: "+j+";"));h&&(i+=(" width: "+h+";"));g&&(i+=(" height: "+g+";"));i+="} ";i+=".print-page.page-debug .print-page-item {";i+=" border: 1px solid red !important;";i+="} ";i+=b.getCommonCss(true);i+="</style>";return i};b.hideElem=function(g){d("."+f).addClass(c);if(!g){return}if(g instanceof Array){for(var h=0;h<g.length;h++){d(g[h]).addClass(f+" "+c)}}else{d(g).addClass(c)}};b.showElem=function(g){d("."+f).removeClass(c);if(!g){return}if(g instanceof Array){for(var h=0;h<g.length;h++){d(g[h]).removeClass(f+" "+c)}}else{d(g).removeClass(c)}};b.getCommonCss=function(h){var g=("."+f+"."+c+" {");g+=" visibility: hidden !important;";g+=" }";g+=" .print-table {";g+=" border: none;";g+=" border-collapse: collapse;";g+=" width: 100%;";g+=" }";g+=" .print-table td, .print-table th {";g+=" color: #333;";g+=" padding: 9px 15px;";g+=" word-break: break-all;";g+=" border: 1px solid #333;";g+=" }";if(h){g+=("."+f+" {");g+=" visibility: hidden !important;";g+="}"}return g};b.makeHtml=function(k){var j=k.title;var h=k.style;var g=k.body;j==undefined&&(j="打印窗口");var i='<!DOCTYPE html><html lang="en">';i+=' <head><meta charset="UTF-8">';i+=(" <title>"+j+"</title>");h&&(i+=h);i+=" </head>";i+=" <body>";g&&(i+=g);i+=" </body>";i+=" </html>";return i};d("head").append("<style>"+b.getCommonCss()+"</style>");a("printer",b)});
\ No newline at end of file
/** 步骤条模块 date:2020-02-16 License By http://easyweb.vip */
.layui-tab.layui-steps{margin:0 auto}.layui-tab.layui-steps>.layui-tab-title{height:auto;border:0;margin:0 auto;text-align:center;overflow:auto!important;-webkit-transition:none;transition:none;display:-webkit-box;display:-moz-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}.layui-tab.layui-steps>.layui-tab-title>.layui-tab-bar{display:none}.layui-tab.layui-steps>.layui-tab-title>li{min-width:130px;text-align:left;line-height:24px;padding:0 0 0 44px;white-space:initial;box-sizing:border-box;-webkit-transition:none;transition:none;-webkit-flex:1;-ms-flex:1;flex:1}.layui-tab.layui-steps>.layui-tab-title>li:last-child{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}.layui-tab.layui-steps>.layui-tab-title>li>.layui-icon{color:#5fb878;position:absolute;top:3px;left:10px;width:24px;height:24px;line-height:24px;text-align:center;display:inline-block;box-sizing:border-box;-moz-transition:color .3s,background-color .3s;-webkit-transition:color .3s,background-color .3s;transition:color .3s,background-color .3s}.layui-tab.layui-steps>.layui-tab-title>li>.layui-steps-title{color:#8c8c8c;font-weight:600;padding-right:6px;position:relative;display:inline-block;background-color:#fff;-moz-transition:color .3s;-webkit-transition:color .3s;transition:color .3s}.layui-tab.layui-steps>.layui-tab-title>li>.layui-steps-content{color:#999;display:block;font-size:12px;line-height:initial;-moz-transition:color .3s;-webkit-transition:color .3s;transition:color .3s}.layui-tab.layui-steps>.layui-tab-title>li:after{display:none}.layui-tab.layui-steps>.layui-tab-title>li:before{content:"";position:absolute;right:0;top:15px;left:44px;height:1px;background-color:#5fb878;-moz-transition:background-color .3s;-webkit-transition:background-color .3s;transition:background-color .3s}.layui-tab.layui-steps>.layui-tab-title>li:last-child:before,.layui-tab.layui-steps[overflow]>.layui-tab-title>li:nth-last-child(2):before{display:none}.layui-tab.layui-steps>.layui-tab-title>li>.layui-icon.layui-icon-ok{border:1px solid #5fb878;border-radius:50%;font-size:0}.layui-tab.layui-steps>.layui-tab-title>li>.layui-icon.layui-icon-ok:before{font-size:14px}.layui-tab.layui-steps>.layui-tab-title>li.layui-this ~ li>.layui-icon{color:#ccc;border-color:#ccc!important}.layui-tab.layui-steps>.layui-tab-title>li.layui-this:before,.layui-tab.layui-steps>.layui-tab-title>li.layui-this ~ li:before{background-color:#e8eaec}.layui-tab.layui-steps>.layui-tab-title>li.layui-this>.layui-icon.layui-icon-ok,.layui-tab.layui-steps>.layui-tab-title>li.layui-this ~ li>.layui-icon.layui-icon-ok{font-size:14px}.layui-tab.layui-steps>.layui-tab-title>li.layui-this>.layui-icon.layui-icon-ok:before,.layui-tab.layui-steps>.layui-tab-title>li.layui-this ~ li>.layui-icon.layui-icon-ok:before{display:none}.layui-tab.layui-steps>.layui-tab-title>li.layui-this>.layui-icon.layui-icon-ok{color:#fff;background-color:#5fb878}.layui-tab.layui-steps>.layui-tab-title>li.layui-this>.layui-steps-title{color:#595959}.layui-tab.layui-steps>.layui-tab-title>li.layui-this>.layui-steps-content{color:#595959}.layui-tab.layui-steps.layui-steps-small>.layui-tab-title>li>.layui-icon{top:3px;left:8px;width:18px;height:18px;line-height:16px}.layui-tab.layui-steps.layui-steps-small>.layui-tab-title>li>.layui-steps-title{font-size:13px}.layui-tab.layui-steps.layui-steps-small>.layui-tab-title>li:before{top:12px;left:34px}.layui-tab.layui-steps.layui-steps-small>.layui-tab-title>li{padding-left:34px;min-width:100px}.layui-tab.layui-steps.layui-steps-small>.layui-tab-title>li>.layui-icon.layui-icon-ok:before{font-size:12px}.layui-tab.layui-steps.layui-steps-small>.layui-tab-title>li.layui-this>.layui-icon.layui-icon-ok,.layui-tab.layui-steps.layui-steps-small>.layui-tab-title>li.layui-this ~ li>.layui-icon.layui-icon-ok{font-size:12px}.layui-tab.layui-steps.layui-steps-vertical>.layui-tab-title>li>.layui-icon{background-color:#fff;position:relative;left:0}.layui-tab.layui-steps.layui-steps-vertical>.layui-tab-title>li>.layui-steps-title{background-color:transparent;padding-right:0;margin-top:6px;display:block}.layui-tab.layui-steps.layui-steps-vertical>.layui-tab-title>li:before{left:50%;right:-50%}.layui-tab.layui-steps.layui-steps-vertical>.layui-tab-title>li{padding-left:0;text-align:center}.layui-tab.layui-steps.layui-steps-vertical>.layui-tab-title>li:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li{color:#fff;height:26px;line-height:26px;font-size:12px;min-width:120px;padding:0 10px 0 24px;background-color:#9fd4ae;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-transition:background-color .3s;-moz-transition:background-color .3s;-ms-transition:background-color .3s;-o-transition:background-color .3s;transition:background-color .3s}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li:first-child{padding-left:10px}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li.layui-this{background-color:#5fb878}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li.layui-this ~ li{background-color:#c9c9c9}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li:after,.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li:before{content:"";position:absolute;top:0!important;left:0!important;right:auto!important;bottom:auto!important;border:13px solid!important;border-color:transparent transparent transparent #9fd4ae!important;background-color:transparent!important;border-radius:0!important;display:block!important;height:auto!important;width:auto!important;-webkit-transition:border-left-color .3s;-moz-transition:border-left-color .3s;-ms-transition:border-left-color .3s;-o-transition:border-left-color-color .3s;transition:border-left-color .3s}body .layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li:before{left:1px!important;border-color:transparent transparent transparent #fff!important}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li.layui-this ~ li:after{border-color:transparent transparent transparent #c9c9c9!important}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li.layui-this+li:after{border-color:transparent transparent transparent #5fb878!important}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li:first-child:after,.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li:first-child:before{display:none!important}.layui-tab.layui-steps.layui-steps-simple>.layui-tab-title>li:last-child{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.layui-tab.layui-steps.layui-steps-readonly>.layui-tab-title>li{pointer-events:none!important}
/** 步骤条模块 date:2020-02-16 License By http://easyweb.vip */
layui.define(["element"],function(b){var d=layui.jquery;var c=layui.element;if(d("#ew-css-steps").length<=0){layui.link(layui.cache.base+"steps/steps.css")}var a={};a.next=function(f){a.checkLayId(f);var h=d('[lay-filter="'+f+'"]');var g=h.children(".layui-tab-title").children("li");var e=g.filter(".layui-this").next();if(e.length<=0){e=g.first()}c.tabChange(f,e.attr("lay-id"))};a.prev=function(f){a.checkLayId(f);var h=d('[lay-filter="'+f+'"]');var g=h.children(".layui-tab-title").children("li");var e=g.filter(".layui-this").prev();if(e.length<=0){e=g.last()}c.tabChange(f,e.attr("lay-id"))};a.go=function(f,e){a.checkLayId(f);var h=d('[lay-filter="'+f+'"]');var g=h.children(".layui-tab-title").children("li");c.tabChange(f,g.eq(e).attr("lay-id"))};a.checkLayId=function(e){var g=d('.layui-steps[lay-filter="'+e+'"]');var f=g.children(".layui-tab-title").children("li");if(f.first().attr("lay-id")===undefined){f.each(function(h){d(this).attr("lay-id","steps-"+h)})}g.find(".layui-tab-bar").remove();g.removeAttr("overflow")};d(document).off("click.steps").on("click.steps","[data-steps]",function(){var g=d(this);var f=g.parents(".layui-steps").first().attr("lay-filter");var e=g.data("steps");if(e==="next"){a.next(f)}else{if(e==="prev"){a.prev(f)}else{if(e==="go"){a.go(f,g.data("go"))}}}});b("steps",a)});
\ No newline at end of file
/** 隐藏原始elem */
.ew-tagsinput-hide {
display: block !important;
visibility: hidden;
position: absolute;
z-index: -1;
}
/** 标签输入框样式 */
div.tagsinput {
border: 1px solid #e6e6e6;
background: #FFF;
padding: 5px 5px 0 5px;
border-radius: 2px;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
div.tagsinput:hover {
border: 1px solid #ccc;
}
div.tagsinput span.tag {
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
display: inline-block;
padding: 0 5px 0 8px;
background: #009688;
color: #fff;
margin-right: 5px;
margin-bottom: 5px;
font-size: 14px;
cursor: default;
}
div.tagsinput span.tag a {
font-weight: bold;
color: #fff;
text-decoration: none;
font-size: 12px;
}
div.tagsinput span.tag a .layui-icon {
font-size: 12px;
margin: 0;
}
div.tagsinput span.tag a .default-close-text {
font-size: 16px;
font-weight: normal;
}
div.tagsinput input {
color: #000;
font-size: 14px;
padding: 5px;
margin-bottom: 5px;
background: transparent;
border: none;
outline: none;
width: 60px;
}
div.tagsinput div {
display: inline-block;
}
div.tagsinput > div {
position: relative;
}
.not_valid {
background: #FBD8DB !important;
color: #90111A !important;
}
/* 无边框的风格 */
.tagsinput.tagsinput-default, .tagsinput.tagsinput-default:hover {
border: none;
}
.tagsinput.tagsinput-default span.tag {
background: #FAFAFA !important;
border: 1px solid #d9d9d9 !important;
border-radius: 4px;
color: #666;
line-height: 24px;
}
.tagsinput.tagsinput-default span.tag a {
color: #aaa;
}
.tagsinput.tagsinput-default input {
border: 1px dashed #d9d9d9;
border-radius: 4px;
text-align: center;
font-size: 13px;
}
.tagsinput.tagsinput-default input:focus {
border: 1px solid #ccc;
text-align: left;
}
/* 提示列表 */
.tagsinput-tip-list {
position: absolute;
width: max-content;
left: 0;
background: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
border: 1px solid #d2d2d2;
min-width: 100px;
width: max-content;
z-index: 999;
}
.tagsinput-tip-list li {
font-size: 14px;
color: #666;
padding: 0 10px 0 10px;
cursor: pointer;
display: block;
line-height: 30px;
}
.tagsinput-tip-list li:hover {
background: #f2f2f2;
}
/*-------------------------------------
zTree Style
version: 3.4
author: Hunter.z
email: hunter.z@263.net
website: http://code.google.com/p/jquerytree/
-------------------------------------*/
.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif}
.ztree {margin:0; padding:5px; color:#333}
.ztree li{padding:0; margin:0; list-style:none; line-height:17px; text-align:left; white-space:nowrap; outline:0}
.ztree li ul{ margin:0; padding:0 0 0 18px}
.ztree li ul.line{ background:url(./img/line_conn.png) 0 0 repeat-y;}
.ztree li a {padding-right:3px; margin:0; cursor:pointer; height:21px; color:#333; background-color: transparent; text-decoration:none; vertical-align:top; display: inline-block}
.ztree li a:hover {text-decoration:underline}
.ztree li a.curSelectedNode {padding-top:0px; background-color:#e5e5e5; color:black; height:21px; opacity:0.8;}
.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#e5e5e5; color:black; height:21px; border:1px #666 solid; opacity:0.8;}
.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#aaa; color:white; height:21px; border:1px #666 solid;
opacity:0.8; filter:alpha(opacity=80)}
.ztree li a.tmpTargetNode_prev {}
.ztree li a.tmpTargetNode_next {}
.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0;
font-size:12px; border:1px #585956 solid; *border:0px}
.ztree li span {line-height:21px; margin-right:2px}
.ztree li span.button {line-height:0; margin:0; padding: 0; width:21px; height:21px; display: inline-block; vertical-align:middle;
border:0 none; cursor: pointer;outline:none;
background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
background-image:url("./img/metro.png"); *background-image:url("./img/metro.gif")}
.ztree li span.button.chk {width:13px; height:13px; margin:0 2px; cursor: auto}
.ztree li span.button.chk.checkbox_false_full {background-position: -5px -5px;}
.ztree li span.button.chk.checkbox_false_full_focus {background-position: -5px -26px;}
.ztree li span.button.chk.checkbox_false_part {background-position: -5px -48px;}
.ztree li span.button.chk.checkbox_false_part_focus {background-position: -5px -68px;}
.ztree li span.button.chk.checkbox_false_disable {background-position: -5px -89px;}
.ztree li span.button.chk.checkbox_true_full {background-position: -26px -5px;}
.ztree li span.button.chk.checkbox_true_full_focus {background-position: -26px -26px;}
.ztree li span.button.chk.checkbox_true_part {background-position: -26px -48px;}
.ztree li span.button.chk.checkbox_true_part_focus {background-position: -26px -68px;}
.ztree li span.button.chk.checkbox_true_disable {background-position: -26px -89px;}
.ztree li span.button.chk.radio_false_full {background-position: -47px -5px;}
.ztree li span.button.chk.radio_false_full_focus {background-position: -47px -26px;}
.ztree li span.button.chk.radio_false_part {background-position: -47px -47px;}
.ztree li span.button.chk.radio_false_part_focus {background-position: -47px -68px;}
.ztree li span.button.chk.radio_false_disable {background-position: -47px -89px;}
.ztree li span.button.chk.radio_true_full {background-position: -68px -5px;}
.ztree li span.button.chk.radio_true_full_focus {background-position: -68px -26px;}
.ztree li span.button.chk.radio_true_part {background-position: -68px -47px;}
.ztree li span.button.chk.radio_true_part_focus {background-position: -68px -68px;}
.ztree li span.button.chk.radio_true_disable {background-position: -68px -89px;}
.ztree li span.button.switch {width:21px; height:21px}
.ztree li span.button.root_open{background-position:-105px -63px}
.ztree li span.button.root_close{background-position:-126px -63px}
.ztree li span.button.roots_open{background-position: -105px 0;}
.ztree li span.button.roots_close{background-position: -126px 0;}
.ztree li span.button.center_open{background-position: -105px -21px;}
.ztree li span.button.center_close{background-position: -126px -21px;}
.ztree li span.button.bottom_open{background-position: -105px -42px;}
.ztree li span.button.bottom_close{background-position: -126px -42px;}
.ztree li span.button.noline_open{background-position: -105px -84px;}
.ztree li span.button.noline_close{background-position: -126px -84px;}
.ztree li span.button.root_docu{ background:none;}
.ztree li span.button.roots_docu{background-position: -84px 0;}
.ztree li span.button.center_docu{background-position: -84px -21px;}
.ztree li span.button.bottom_docu{background-position: -84px -42px;}
.ztree li span.button.noline_docu{ background:none;}
.ztree li span.button.ico_open{margin-right:2px; background-position: -147px -21px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.ico_close{margin-right:2px; margin-right:2px; background-position: -147px 0; vertical-align:top; *vertical-align:middle}
.ztree li span.button.ico_docu{margin-right:2px; background-position: -147px -42px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.edit {margin-left:2px; margin-right: -1px; background-position: -189px -21px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.edit:hover {
background-position: -168px -21px;
}
.ztree li span.button.remove {margin-left:2px; margin-right: -1px; background-position: -189px -42px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.remove:hover {
background-position: -168px -42px;
}
.ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position: -189px 0; vertical-align:top; *vertical-align:middle}
.ztree li span.button.add:hover {
background-position: -168px 0;
}
.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)}
span.tmpzTreeMove_arrow {width:16px; height:21px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute;
background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
background-position:-168px -84px; background-image:url("./img/metro.png"); *background-image:url("./img/metro.gif")}
ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)}
.ztreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}
/*-------------------------------------
zTree Style
version: 3.5.19
author: Hunter.z
email: hunter.z@263.net
website: http://code.google.com/p/jquerytree/
-------------------------------------*/
.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif}
.ztree {margin:0; padding:5px; color:#333}
.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0}
.ztree li ul{ margin:0; padding:0 0 0 18px}
.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;}
.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:17px; color:#333; background-color: transparent;
text-decoration:none; vertical-align:top; display: inline-block}
.ztree li a:hover {text-decoration:underline}
.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;}
.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;}
.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid;
opacity:0.8; filter:alpha(opacity=80)}
.ztree li a.tmpTargetNode_prev {}
.ztree li a.tmpTargetNode_next {}
.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0;
font-size:12px; border:1px #7EC4CC solid; *border:0px}
.ztree li span {line-height:16px; margin-right:2px}
.ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle;
border:0 none; cursor: pointer;outline:none;
background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
.ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto}
.ztree li span.button.chk.checkbox_false_full {background-position:0 0}
.ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px}
.ztree li span.button.chk.checkbox_false_part {background-position:0 -28px}
.ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px}
.ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px}
.ztree li span.button.chk.checkbox_true_full {background-position:-14px 0}
.ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px}
.ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px}
.ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px}
.ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px}
.ztree li span.button.chk.radio_false_full {background-position:-28px 0}
.ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px}
.ztree li span.button.chk.radio_false_part {background-position:-28px -28px}
.ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px}
.ztree li span.button.chk.radio_false_disable {background-position:-28px -56px}
.ztree li span.button.chk.radio_true_full {background-position:-42px 0}
.ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px}
.ztree li span.button.chk.radio_true_part {background-position:-42px -28px}
.ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px}
.ztree li span.button.chk.radio_true_disable {background-position:-42px -56px}
.ztree li span.button.switch {width:18px; height:18px}
.ztree li span.button.root_open{background-position:-92px -54px}
.ztree li span.button.root_close{background-position:-74px -54px}
.ztree li span.button.roots_open{background-position:-92px 0}
.ztree li span.button.roots_close{background-position:-74px 0}
.ztree li span.button.center_open{background-position:-92px -18px}
.ztree li span.button.center_close{background-position:-74px -18px}
.ztree li span.button.bottom_open{background-position:-92px -36px}
.ztree li span.button.bottom_close{background-position:-74px -36px}
.ztree li span.button.noline_open{background-position:-92px -72px}
.ztree li span.button.noline_close{background-position:-74px -72px}
.ztree li span.button.root_docu{ background:none;}
.ztree li span.button.roots_docu{background-position:-56px 0}
.ztree li span.button.center_docu{background-position:-56px -18px}
.ztree li span.button.bottom_docu{background-position:-56px -36px}
.ztree li span.button.noline_docu{ background:none;}
.ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle}
.ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)}
span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute;
background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)}
.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}
/* level style*/
/*.ztree li span.button.level0 {
display:none;
}
.ztree li ul.level0 {
padding:0;
background:none;
}*/
\ No newline at end of file
/** EasyWeb iframe v3.1.8 date:2020-05-04 License By http://easyweb.vip */
layui.config({ // common.js是配置layui扩展模块的目录,每个页面都需要引入
version: '318', // 更新组件缓存,设为true不缓存,也可以设一个固定值
/** EasyWeb iframe v3.1.7 date:2020-03-11 License By http://easyweb.vip */
// 以下代码是配置layui扩展模块的目录,每个页面都需要引入
layui.config({
version: '317',
base: getProjectUrl() + 'assets/module/'
}).extend({
steps: 'steps/steps',
......@@ -8,6 +10,7 @@ layui.config({ // common.js是配置layui扩展模块的目录,每个页面
cascader: 'cascader/cascader',
dropdown: 'dropdown/dropdown',
fileChoose: 'fileChoose/fileChoose',
treeTable: 'treeTable/treeTable',
Split: 'Split/Split',
Cropper: 'Cropper/Cropper',
tagsInput: 'tagsInput/tagsInput',
......@@ -19,9 +22,14 @@ layui.config({ // common.js是配置layui扩展模块的目录,每个页面
var layer = layui.layer;
var admin = layui.admin;
// 移除loading动画
setTimeout(function () {
admin.removeLoading();
}, window === top ? 300 : 0);
});
/** 获取当前项目的根路径,通过获取layui.js全路径截取assets之前的地址 */
// 获取当前项目的根路径,通过获取layui.js全路径截取assets之前的地址
function getProjectUrl() {
var layuiDir = layui.cache.dir;
if (!layuiDir) {
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment