|
|
@@ -444,7 +444,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
let biddingStopTime = module.data.outProjectInformationDetail.biddingStopTime; |
|
|
|
|
|
|
|
var nowTime = Date.parse(new Date($.ajax({type:'HEAD',async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date"))); |
|
|
|
|
|
|
|
console.log(new Date($.ajax({type:'HEAD',async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date"))) |
|
|
|
var difference = Date.parse(biddingStopTime)-nowTime; |
|
|
|
// var centerTime = module.data.timeConfig * 60 * 1000 |
|
|
|
var centerTime = content.delayPeriod * 1000 |
|
|
@@ -464,6 +464,19 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
s = Math.floor(difference/1000%60); |
|
|
|
$('#countType').html('竞价中') |
|
|
|
$('#countDown').html('<span>距竞价结束还有:0</span>天<span>0</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') |
|
|
|
if(module.data.outProjectInformationDetail.biddingType != '自由竞价' && module.data.biddingTimeType != 2){ |
|
|
|
document.getElementById('showNowMoney').style.display = 'table-row'; |
|
|
|
var timName = document.getElementById('timeDown'); |
|
|
|
if(timName) { |
|
|
|
document.getElementById('timeDown').style.display = 'inline-block'; |
|
|
|
timName.innerHTML = t + '<b style="color: #666666">秒后自动刷新</b>'; |
|
|
|
} |
|
|
|
t--; |
|
|
|
if (t < 0) { |
|
|
|
t = 3; |
|
|
|
tools.doGet(biddinglist, {projectId: getQueryVariable('id')}, module.biddinglistInformation, true); |
|
|
|
} |
|
|
|
} |
|
|
|
if(module.data.loginNow){ //判断是否登录(已登录) |
|
|
|
if(module.data.signup == 1){ //判断是否报名(已报名) |
|
|
|
if( module.data.biddingTimeType == 1 ){ //判断当前竞价状态(竞价中) |
|
|
|