From ee779efcac50138936be9ccf3d86f2be8d4f362c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Fri, 19 Jan 2024 01:39:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=B3=E5=B1=B1=E4=BA=A7=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/bidding/biddingBigDataDetail.js | 31 ++++++------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/static/js/project/bidding/biddingBigDataDetail.js b/static/js/project/bidding/biddingBigDataDetail.js index 97bd353..aed2f7e 100644 --- a/static/js/project/bidding/biddingBigDataDetail.js +++ b/static/js/project/bidding/biddingBigDataDetail.js @@ -137,16 +137,16 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t module.data.outProjectInformationDetail.biddingStopTime = data.data; }else{ $('#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; } } @@ -184,17 +184,6 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t 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) module.data.biddinglistInformationDetail = content; var biddingInformationData = template('biddingInformationData', module.data); $("#biddingInformationContent").html(biddingInformationData);