...
|
...
|
@@ -96,7 +96,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { |
|
|
}
|
|
|
},1);
|
|
|
$(options.dom).append(newContainer);
|
|
|
} else if(options.toastType=='faultinfo'){
|
|
|
} else if(options.toastType=='faultinfo'||options.toastType=='faultprogress'||options.toastType=='faultover'){
|
|
|
var container = "<div class='fault_ez_tips "+options.toastType+"' style="+firstDirection+":"+options.margin+"px;bottom: 319px;transform:translateX("+minus+"110%);></div>"
|
|
|
|
|
|
var head = "<div class='faultTitle faultClearfix'><i class='faultTips_icon_l fl'></i><i class='FaultTips_icon_r close'></i></div>";
|
...
|
...
|
@@ -125,14 +125,14 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { |
|
|
'width':options.width,
|
|
|
});
|
|
|
var height = $(newContainer).outerHeight(true);
|
|
|
var len = $('.ez_tips').size();
|
|
|
var len = $('.fault_ez_tips').size();
|
|
|
if (len >= 2) {
|
|
|
for (var i = 1; i < len; i++) {
|
|
|
if (!$('.ez_tips').hasClass('length1')) {
|
|
|
if (!$('.fault_ez_tips').hasClass('length1')) {
|
|
|
$(newContainer).css(lastDirection,options.firstSpace + 'px');
|
|
|
$(newContainer).addClass('active length1');
|
|
|
break;
|
|
|
} else if (!$('.ez_tips').hasClass('length'+ (i+1))) {
|
|
|
} else if (!$('.fault_ez_tips').hasClass('length'+ (i+1))) {
|
|
|
$(newContainer).css(lastDirection,i * height + options.space * i + options.firstSpace + 'px');
|
|
|
$(newContainer).addClass('active length'+(i+1));
|
|
|
break; // break一定要加,否则每次点击都会循环到结束,导致一个目标div可能同时有length1 length2.....等多个类名
|
...
|
...
|
|