...
parent
3b859530e5
commit
6e2d98d86a
|
|
@ -20,10 +20,10 @@ layui.config({
|
|||
/**今日访问量**/
|
||||
var elem_nums = $(".media-cont .num");
|
||||
elem_nums.each(function (i, j) {
|
||||
let ran = parseInt(Math.random() * 99 + 1);
|
||||
let ran = parseInt(Math.random() * 1900 + 100); //[100,2000)包括100不包括2000
|
||||
!new countUp({
|
||||
target: j,
|
||||
endVal: 20 * ran
|
||||
endVal: ran
|
||||
}).start();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -79,22 +79,27 @@ layui.define(["element", "jquery"], function (exports) {
|
|||
|
||||
if (halfPlace < showPost) {//从右往左移动
|
||||
var tempMove = leftWidth - subWidth;//预留一部分距离
|
||||
if(tempMove > maxMoveWidth){//当前移动的距离超过最大可移动的宽度
|
||||
if (tempMove > maxMoveWidth) {//当前移动的距离超过最大可移动的宽度
|
||||
tempMove = maxMoveWidth;
|
||||
}
|
||||
contEle.animate({
|
||||
left: -tempMove
|
||||
}, 50);
|
||||
}else{//从左往右移动
|
||||
} else {//从左往右移动
|
||||
console.log("从左往右移动");
|
||||
var tempMove = leftWidth - halfPlace;//预留一部分距离
|
||||
if(tempMove < 0){
|
||||
if (tempMove < 0) {
|
||||
tempMove = 0;
|
||||
}
|
||||
contEle.animate({
|
||||
left: -tempMove
|
||||
}, 50);
|
||||
}
|
||||
} else {
|
||||
contEle.animate({
|
||||
left: 0
|
||||
}, 50);
|
||||
//this.navMove("rightmax");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -187,9 +192,9 @@ layui.define(["element", "jquery"], function (exports) {
|
|||
layer.msg('最多只能同时打开' + openTabNum + '个选项卡哦。不然系统会卡的!');
|
||||
return;
|
||||
}
|
||||
var contentIframe = ("<iframe src='{0}' lay-id='{1}'"+
|
||||
"frameborder='0' scrolling='yes' width='100%' height='100%'>"+
|
||||
"</iframe>").format(url,tabId);
|
||||
var contentIframe = ("<iframe src='{0}' lay-id='{1}'" +
|
||||
"frameborder='0' scrolling='yes' width='100%' height='100%'>" +
|
||||
"</iframe>").format(url, tabId);
|
||||
element.tabAdd(tabFilter, {
|
||||
title: html,
|
||||
content: contentIframe,
|
||||
|
|
@ -362,7 +367,6 @@ layui.define(["element", "jquery"], function (exports) {
|
|||
break;
|
||||
}
|
||||
element.render("tab", filter);
|
||||
// this.navMove("rightmax");
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue