Ver código fonte

产权交易竞价详情倒计时

newProperty
庞东旭 1 ano atrás
pai
commit
7d7aa67a0f
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      static/js/project/listingItems/items2.js

+ 3
- 3
static/js/project/listingItems/items2.js Ver arquivo

@@ -450,6 +450,9 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
// var centerTime = module.data.timeConfig * 60 * 1000 // var centerTime = module.data.timeConfig * 60 * 1000
var centerTime = content.delayPeriod * 1000//延时周期 var centerTime = content.delayPeriod * 1000//延时周期


var m,s;
m = Math.floor(difference/1000/60%60);
s = Math.floor(difference/1000%60);
if(s%2 == 0&&centerTime!=0){ if(s%2 == 0&&centerTime!=0){
tools.doGet(getBiddingStopTime+getQueryVariable('id'), {}, module.getBiddingStopTime,true); tools.doGet(getBiddingStopTime+getQueryVariable('id'), {}, module.getBiddingStopTime,true);
} }
@@ -457,7 +460,6 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
if ( differenceSetime <= 0 && difference >= 0 && difference <= centerTime){ if ( differenceSetime <= 0 && difference >= 0 && difference <= centerTime){
console.log("竞价最后两分钟") console.log("竞价最后两分钟")
//正在竞价 //正在竞价
var m,s;
if(module.data.outProjectInformationDetail.biddingType == '自由竞价'){ if(module.data.outProjectInformationDetail.biddingType == '自由竞价'){
document.getElementById('biddingTable').style.display = 'none'; document.getElementById('biddingTable').style.display = 'none';
document.getElementById('biddingTitle').style.display = 'block'; document.getElementById('biddingTitle').style.display = 'block';
@@ -465,8 +467,6 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
} }
// document.getElementById('swiperType').style.display = 'block'; // document.getElementById('swiperType').style.display = 'block';
module.data.biddingTimeType = 1; module.data.biddingTimeType = 1;
m = Math.floor(difference/1000/60%60);
s = Math.floor(difference/1000%60);
$('#countType').html('竞价中') $('#countType').html('竞价中')
$('#countDown').html('<span>距竞价结束还有:0</span>天<span>0</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') $('#countDown').html('<span>距竞价结束还有:0</span>天<span>0</span>时<span>'+m+'</span>分<span>'+s+'</span>秒')
if(module.data.outProjectInformationDetail.biddingType != '自由竞价' && module.data.biddingTimeType != 2){ if(module.data.outProjectInformationDetail.biddingType != '自由竞价' && module.data.biddingTimeType != 2){


Carregando…
Cancelar
Salvar