From 2b0315157829f2bfc768026e5154185400ea9b64 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:04:48 +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 --- static/js/project/bidding/biddingBigDataDetail.js | 11 +++++++++-- static/js/project/listingItems/items2.js | 7 ++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/static/js/project/bidding/biddingBigDataDetail.js b/static/js/project/bidding/biddingBigDataDetail.js index f07c96b..97bd353 100644 --- a/static/js/project/bidding/biddingBigDataDetail.js +++ b/static/js/project/bidding/biddingBigDataDetail.js @@ -138,8 +138,15 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t }else{ $('#countDown').html('竞价结束') module.data.outProjectInformationDetail.projectShowStatus = '竞价结束'; - var biddingInformationData = template('biddingInformationData', module.data); - $("#biddingInformationContent").html(biddingInformationData); + 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; } } diff --git a/static/js/project/listingItems/items2.js b/static/js/project/listingItems/items2.js index dd3eac3..bca9760 100644 --- a/static/js/project/listingItems/items2.js +++ b/static/js/project/listingItems/items2.js @@ -473,6 +473,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function // } // document.getElementById('swiperType').style.display = 'block'; module.data.biddingTimeType = 1; + module.data.outProjectInformationDetail.projectShowStatus = '正在竞价'; $('#countType').html('竞价中') $('#countDown').html('距竞价结束还有:00'+m+''+s+'秒') if(module.data.outProjectInformationDetail.biddingType != '自由竞价' && module.data.biddingTimeType != 2){ @@ -582,10 +583,6 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function var biddinglistInformationData = template('biddinglistInformationData', module.data); $("#tabDetail4").html(biddinglistInformationData); }, true); - - - var biddinglistInformationData = template('biddinglistInformationData', module.data); - $("#tabDetail4").html(biddinglistInformationData); return; } } @@ -703,7 +700,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function $('#unit').html('出价价格【'+module.data.outProjectInformationDetail.unit+'】') if (content.length>0){ //console.log('abccba') - $("#nowMoneyBlock").html(''+content[0].money+' 元');} + $("#nowMoneyBlock").html(''+content[0].money+''+module.data.outProjectInformationDetail.unit);} } }