|
@@ -137,16 +137,16 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t |
|
|
module.data.outProjectInformationDetail.biddingStopTime = data.data; |
|
|
module.data.outProjectInformationDetail.biddingStopTime = data.data; |
|
|
}else{ |
|
|
}else{ |
|
|
$('#countDown').html('竞价结束') |
|
|
$('#countDown').html('竞价结束') |
|
|
module.data.outProjectInformationDetail.projectShowStatus = '竞价结束'; |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
tools.doGet(biddinglist, {projectId: getQueryVariable('id')}, (data1)=>{ |
|
|
|
|
|
let content1 = data1.rows; |
|
|
|
|
|
module.data.biddinglistInformationDetail = content1; |
|
|
|
|
|
module.data.biddinglistInformationDetailLength = content1.length; |
|
|
|
|
|
var biddingInformationData = template('biddingInformationData', module.data); |
|
|
|
|
|
$("#biddingInformationContent").html(biddingInformationData); |
|
|
|
|
|
}, true); |
|
|
|
|
|
},2000); |
|
|
|
|
|
|
|
|
module.data.outProjectInformationDetail.projectShowStatus = '等待成交'; |
|
|
|
|
|
// setTimeout(()=>{ |
|
|
|
|
|
// tools.doGet(biddinglist, {projectId: getQueryVariable('id')}, (data1)=>{ |
|
|
|
|
|
// let content1 = data1.rows; |
|
|
|
|
|
// module.data.biddinglistInformationDetail = content1; |
|
|
|
|
|
// module.data.biddinglistInformationDetailLength = content1.length; |
|
|
|
|
|
// var biddingInformationData = template('biddingInformationData', module.data); |
|
|
|
|
|
// $("#biddingInformationContent").html(biddingInformationData); |
|
|
|
|
|
// }, true); |
|
|
|
|
|
// },2000); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@@ -184,17 +184,6 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t |
|
|
if (data.code == 200) { |
|
|
if (data.code == 200) { |
|
|
//console.log(data) |
|
|
//console.log(data) |
|
|
var content = data.rows; |
|
|
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) |
|
|
|
|
|
module.data.biddinglistInformationDetail = content; |
|
|
module.data.biddinglistInformationDetail = content; |
|
|
var biddingInformationData = template('biddingInformationData', module.data); |
|
|
var biddingInformationData = template('biddingInformationData', module.data); |
|
|
$("#biddingInformationContent").html(biddingInformationData); |
|
|
$("#biddingInformationContent").html(biddingInformationData); |
|
|