...
|
...
|
@@ -138,7 +138,10 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { |
|
|
$(newContainer).addClass('active length1');
|
|
|
break;
|
|
|
} else if (!$('.fault_ez_tips').hasClass('length'+ (i+1))) {
|
|
|
$(newContainer).css(lastDirection,i * height + options.space * i + options.firstSpace + 'px');
|
|
|
$(newContainer).css(lastDirection,30 + options.space * i + options.firstSpace + 'px');
|
|
|
var rightVal=parseInt($(newContainer).css('right').split('px')[0]);
|
|
|
// $(newContainer).css('right',30 + rightVal + 'px');
|
|
|
$(newContainer).css('right',30 *i + 'px');
|
|
|
$(newContainer).addClass('active length'+(i+1));
|
|
|
break; // break一定要加,否则每次点击都会循环到结束,导致一个目标div可能同时有length1 length2.....等多个类名
|
|
|
}
|
...
|
...
|
|