|
|
@@ -10,7 +10,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
showImgInformationDetail:'', |
|
|
|
loginNow:'', |
|
|
|
timer:null, |
|
|
|
biddinglistInformationDetailLength:0, |
|
|
|
biddinglistInformationDetailLength:1, |
|
|
|
biddingTimeType:0, |
|
|
|
biddinglistInformationDetail:[] |
|
|
|
}, |
|
|
@@ -197,9 +197,9 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
$('#countType').html('未开始') |
|
|
|
$('#countDown').html('<span>距报名开始还有:'+d+'</span>天<span>'+h+'</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') |
|
|
|
} |
|
|
|
if(module.data.outProjectInformationDetail.biddingType != '公开竞价' && module.data.biddingTimeType != 2){ |
|
|
|
document.getElementById('biddingTable').style.display = 'none'; |
|
|
|
document.getElementById('biddingTitle').style.display = 'block'; |
|
|
|
if(module.data.outProjectInformationDetail.biddingType != '自由竞价' && module.data.biddingTimeType != 2){ |
|
|
|
document.getElementById('biddingTable').style.display = 'table-block'; |
|
|
|
document.getElementById('biddingTitle').style.display = 'none'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -365,27 +365,14 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
if (data.code == 200) { |
|
|
|
console.log(data) |
|
|
|
var content = data.rows; |
|
|
|
// for (var i = 0; i < content.length-1; i++) { |
|
|
|
// for (var j = 0; j < content.length - 1 - i; j++) { |
|
|
|
// // 相邻元素两两对比,元素交换,大的元素交换到后面 |
|
|
|
// if (content[j].money < content[j + 1].money) { |
|
|
|
// var temp = content[j]; |
|
|
|
// content[j] = content[j+1]; |
|
|
|
// content[j+1] = temp; |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
console.log(content) |
|
|
|
if(module.data.biddinglistInformationDetailLength == content.length){ |
|
|
|
return; |
|
|
|
} |
|
|
|
module.data.biddinglistInformationDetail = content; |
|
|
|
module.data.biddinglistInformationDetailLength = content.length; |
|
|
|
var biddinglistInformationData = template('biddinglistInformationData', module.data); |
|
|
|
$("#tabDetail4").html(biddinglistInformationData); |
|
|
|
$("#nowMoney").html(content[0].money); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(module.data.biddingTimeType) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -482,6 +469,10 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
|
|
|
|
//出价 |
|
|
|
biddingSubmitMethod = function (data) { |
|
|
|
if ($('#money').val()<=0){ |
|
|
|
tools.initError('请正常出价!'); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (module.data.outProjectInformationDetail.biddingDirect == '反向竞价'){ |
|
|
|
//判断用户出价不能高于挂牌价 |
|
|
|
if(module.data.outProjectInformationDetail.price<$('#money').val()){ |
|
|
|