You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.5 KiB

$(function(){
timeDate();
setInterval(timeDate, 1000);
$(".lists").each(function(){
var index = $(this).index();
$(this).addClass("index"+index);
})
$(".fx tr:nth-child(even)").css("background",'none');
$(".ways").each(function(){
if($(this).html()=="待处理"){
$(this).css('color','#ff4f5b');
}else if($(this).html()=="待派工"){
$(this).css('color','#f9a20b');
}else if($(this).html()=="已结算"){
$(this).css('color','#ff4f5b');
}
});
$(".skillbar").each(function(){
var index = $(this).index();
$(this).addClass("index"+index);
})
$('.skillbar').skillbar({
speed: 1000,
});
})
function timeDate(){
var myDate = new Date;
var year = myDate.getFullYear(); //获取年份
var mon = myDate.getMonth() + 1; //获取月份
var day = myDate.getDate();
var h = myDate.getHours(); //获取小时
var m = myDate.getMinutes();//获取分钟
var s = myDate.getSeconds();//获取秒
h = checktime(h);
m = checktime(m);
s = checktime(s);
//console.log(year, mon, day, weeks[week])
$(".timebox").html(year + "-" + mon + "-" + day +"  " + h + " : " + m + " : " +s);
// $("#yearMon").html(year + "年" + mon +"月");
// $("#daytime").html(day);
// $("#week").html(weeks[week]);
// $(".hourtime").html(h + " : " + m + " : " + s);
}
function checktime(i){
if (i < 10) {
i = "0" + i;
}
return i;
}