|
@@ -195,7 +195,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
$('#countType').html('未开始') |
|
|
$('#countType').html('未开始') |
|
|
$('#countDown').html('<span>距报名开始还有:'+d+'</span>天<span>'+h+'</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') |
|
|
$('#countDown').html('<span>距报名开始还有:'+d+'</span>天<span>'+h+'</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){ |
|
|
document.getElementById('biddingTable').style.display = 'none'; |
|
|
document.getElementById('biddingTable').style.display = 'none'; |
|
|
document.getElementById('biddingTitle').style.display = 'block'; |
|
|
document.getElementById('biddingTitle').style.display = 'block'; |
|
|
} |
|
|
} |
|
@@ -252,7 +252,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
//挂牌项目竞价记录 |
|
|
//挂牌项目竞价记录 |
|
|
tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformationNew,true); |
|
|
tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformationNew,true); |
|
|
|
|
|
|
|
|
if(module.data.outProjectInformationDetail.biddingType != '拍卖' && module.data.biddingTimeType != 2){ |
|
|
|
|
|
|
|
|
if(module.data.outProjectInformationDetail.biddingType != '公开竞价' && module.data.biddingTimeType != 2){ |
|
|
document.getElementById('biddingTable').style.display = 'none'; |
|
|
document.getElementById('biddingTable').style.display = 'none'; |
|
|
document.getElementById('biddingTitle').style.display = 'block'; |
|
|
document.getElementById('biddingTitle').style.display = 'block'; |
|
|
} |
|
|
} |
|
@@ -453,26 +453,38 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
//出价 |
|
|
//出价 |
|
|
biddingSubmitMethod = function (data) { |
|
|
biddingSubmitMethod = function (data) { |
|
|
if (module.data.outProjectInformationDetail.biddingDirect == '反向竞价'){ |
|
|
if (module.data.outProjectInformationDetail.biddingDirect == '反向竞价'){ |
|
|
// if (module.data.biddinglistInformationDetail.length<1){ |
|
|
|
|
|
if(module.data.outProjectInformationDetail.price<$('#money').val()){ |
|
|
|
|
|
tools.initError('出价不能高于挂牌价'); |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
//判断用户出价不能高于挂牌价 |
|
|
|
|
|
if(module.data.outProjectInformationDetail.price<$('#money').val()){ |
|
|
|
|
|
tools.initError('出价不能高于挂牌价'); |
|
|
|
|
|
return; |
|
|
|
|
|
}else{ |
|
|
|
|
|
//判断当前竞价方式 |
|
|
|
|
|
if (module.data.outProjectInformationDetail.biddingType=='阶梯竞价' || module.data.outProjectInformationDetail.biddingType=='公开竞价'){ |
|
|
|
|
|
//判断当前是否有人出价 |
|
|
|
|
|
if (module.data.biddinglistInformationDetail.length>1){ |
|
|
|
|
|
//判断用户出价不能高于当前出价最低价格 |
|
|
|
|
|
if(module.data.biddinglistInformationDetail[0].money < $('#money').val()){ |
|
|
|
|
|
tools.initError('出价不能高于当前出价最低价格'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
// }else{ |
|
|
|
|
|
// if(module.data.biddinglistInformationDetail[0].money<$('#money').val()){ |
|
|
|
|
|
// tools.initError('出价不能高于当前出价最低价格'); |
|
|
|
|
|
// return; |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
if(module.data.outProjectInformationDetail.price>$('#money').val()){ |
|
|
if(module.data.outProjectInformationDetail.price>$('#money').val()){ |
|
|
tools.initError('出价不能低于挂牌价'); |
|
|
tools.initError('出价不能低于挂牌价'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
|
|
|
if (module.data.outProjectInformationDetail.biddingType=='拍卖'||module.data.outProjectInformationDetail.biddingType=='阶梯竞价'){ |
|
|
|
|
|
if(module.data.biddinglistInformationDetail[0].money>$('#money').val()){ |
|
|
|
|
|
tools.initError('出价不能低于当前出价最高价格'); |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
//判断当前竞价方式 |
|
|
|
|
|
if (module.data.outProjectInformationDetail.biddingType=='阶梯竞价' || module.data.outProjectInformationDetail.biddingType=='公开竞价'){ |
|
|
|
|
|
//判断当前是否有人出价 |
|
|
|
|
|
if (module.data.biddinglistInformationDetail.length>1){ |
|
|
|
|
|
//判断用户出价不能低于当前出价最高价格 |
|
|
|
|
|
if(module.data.biddinglistInformationDetail[0].money > $('#money').val()){ |
|
|
|
|
|
tools.initError('出价不能低于当前出价最高价格'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|