|
|
@@ -652,12 +652,41 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", |
|
|
|
}) |
|
|
|
$('#page_s4').html('共' + pageCount + '页') |
|
|
|
} |
|
|
|
|
|
|
|
content.forEach((res,index)=>{ |
|
|
|
setInterval(()=>{ |
|
|
|
res.endTime = new Date(res.biddingStopTime) - new Date(); |
|
|
|
if (res.endTime <= 0){ |
|
|
|
document.getElementById('endTime'+index).innerHTML = '已结束' |
|
|
|
return; |
|
|
|
} |
|
|
|
document.getElementById('endTime'+index).innerHTML = TimeInterval(res.endTime) |
|
|
|
},1000) |
|
|
|
}) |
|
|
|
|
|
|
|
module.data.applicationInformationList = content; |
|
|
|
var applicationInformationData = template('applicationInformationData', module.data); |
|
|
|
$("#applicationInformationContent").html(applicationInformationData); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TimeInterval = function(timestamp) { |
|
|
|
//时间戳转化为天时分秒 |
|
|
|
// 总秒数 |
|
|
|
var second = Math.floor(timestamp/ 1000); |
|
|
|
// 天数 |
|
|
|
var day = Math.floor(second / 3600 / 24); |
|
|
|
// 小时 |
|
|
|
var hr = Math.floor(second / 3600 % 24); |
|
|
|
// 分钟 |
|
|
|
var min = Math.floor(second / 60 % 60); |
|
|
|
// 秒 |
|
|
|
var sec = Math.floor(second % 60); |
|
|
|
return (day?day + "天":'') + (hr?hr+ "小时":'') + ( min?min + "分钟":'') + sec + "秒"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tabCheck = function(type){ |
|
|
|
document.getElementById('user').className = ''; |
|
|
|
// document.getElementById('bank').className = ''; |
|
|
@@ -1294,6 +1323,17 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
document.getElementById('icon-list5').onmouseout = function(){ |
|
|
|
document.getElementById('icon5').src = '../../static/images/user_index_icon9.png' |
|
|
|
} |
|
|
|
document.getElementById('icon-list5').onmouseover = function(){ |
|
|
|
if(themeColor == 'red'){ |
|
|
|
document.getElementById('icon5').src = '../../static/images/user_index_icon9_red.png' |
|
|
|
}else if(themeColor == 'green') { |
|
|
|
document.getElementById('icon5').src = '../../static/images/user_index_icon10.png' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|