...
|
...
|
@@ -65,7 +65,8 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { |
|
|
$(newContainer).addClass('active length1');
|
|
|
break;
|
|
|
} else if (!$('.ez_tips').hasClass('length'+ (i+1))) {
|
|
|
$(newContainer).css(lastDirection,i * height + options.space * i + options.firstSpace + 'px');
|
|
|
$(newContainer).css(lastDirection,10 + options.space * i + options.firstSpace + 'px');
|
|
|
// $(newContainer).css('right',20 *i + 'px');
|
|
|
$(newContainer).addClass('active length'+(i+1));
|
|
|
break; // break一定要加,否则每次点击都会循环到结束,导致一个目标div可能同时有length1 length2.....等多个类名
|
|
|
}
|
...
|
...
|
@@ -118,7 +119,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { |
|
|
$(newContainer).removeClass('active');
|
|
|
setTimeout(function () {
|
|
|
$(newContainer).remove();
|
|
|
}, 700)
|
|
|
}, 500)
|
|
|
};
|
|
|
timer = setTimeout(timeOut, options.duration);
|
|
|
var newTimes;
|
...
|
...
|
@@ -127,27 +128,27 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { |
|
|
'transition-timing-function':options.timingFun,
|
|
|
// 'width':options.width,
|
|
|
'width':'226px',
|
|
|
'bottom':'620px'
|
|
|
'bottom':'350px'
|
|
|
});
|
|
|
var height = $(newContainer).outerHeight(true);
|
|
|
var len = $('.fault_ez_tips').size();
|
|
|
if (len >= 2) {
|
|
|
for (var i = 1; i < len; i++) {
|
|
|
if (!$('.fault_ez_tips').hasClass('length1')) {
|
|
|
$(newContainer).css(lastDirection,options.firstSpace + 'px');
|
|
|
$(newContainer).css(lastDirection,options.firstSpace +50+ 'px');
|
|
|
$(newContainer).addClass('active length1');
|
|
|
break;
|
|
|
} else if (!$('.fault_ez_tips').hasClass('length'+ (i+1))) {
|
|
|
$(newContainer).css(lastDirection,30 + options.space * i + options.firstSpace + 'px');
|
|
|
$(newContainer).css(lastDirection,10 + options.space * i + options.firstSpace +50+'px');
|
|
|
var rightVal=parseInt($(newContainer).css('right').split('px')[0]);
|
|
|
// $(newContainer).css('right',30 + rightVal + 'px');
|
|
|
$(newContainer).css('right',30 *i + 'px');
|
|
|
// $(newContainer).css('right',30 *i + 'px');
|
|
|
$(newContainer).addClass('active length'+(i+1));
|
|
|
break; // break一定要加,否则每次点击都会循环到结束,导致一个目标div可能同时有length1 length2.....等多个类名
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
$(newContainer).css(lastDirection,options.firstSpace + 'px');
|
|
|
$(newContainer).css(lastDirection,options.firstSpace +50+'px');
|
|
|
$(newContainer).addClass('active length1');
|
|
|
}
|
|
|
$(newContainer).on('mouseenter', function (event) {
|
...
|
...
|
|