From 931ce160bf8c5e9ec7886600f2458c31d867af99 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, 13 Oct 2023 18:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E6=9D=83=E4=BA=A4=E6=98=93=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/api/items.js | 6 +++++ static/js/project/listingItems/items.js | 29 ++++++++++++++++--------- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/static/js/api/items.js b/static/js/api/items.js index ddbe446..4d7d654 100644 --- a/static/js/api/items.js +++ b/static/js/api/items.js @@ -123,3 +123,9 @@ var userMember = '/transaction/member/userId' //用户信息类接口 @param */ var projectNewBidMoney = '/transaction/website/projectNewBidMoney/' //用户信息类接口 + +/* +@purl /outproject/getBiddingStopTime/id/ +@param +*/ +var getBiddingStopTime = '/transaction/website/outproject/getBiddingStopTime/id/' //用户信息类接口 diff --git a/static/js/project/listingItems/items.js b/static/js/project/listingItems/items.js index a41fc77..4b83629 100644 --- a/static/js/project/listingItems/items.js +++ b/static/js/project/listingItems/items.js @@ -12,7 +12,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function isFirst:'', timer:null, biddinglistInformationDetailLength:-1, - biddingTimeType:0, + biddingTimeType:1, biddinglistInformationDetail:[], timeConfig:0.00 }, @@ -289,11 +289,12 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function if(t<0){ t = 10; let biddingStartTime = content.biddingStartTime; - let biddingStopTime = content.biddingStopTime; + let biddingStopTime = module.data.biddingStopTime; var nowTime = Date.parse(new Date()); if(Date.parse(biddingStartTime)距竞价结束还有:0天0'+m+''+s+'秒') + // console.log('距竞价结束还有:00'+m+''+s+'秒') //交易项目竞价记录 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('biddingTitle').style.display = 'block'; + document.getElementById('biddingTitle').innerHTML = '竞价进行中...'; } }else{ if (!signupStartTime){console.log('缺失报名开始时间');return;} @@ -417,9 +419,9 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function module.biddinglistInformation = function (data) { if (data.code == 200) { var content = data.rows; - if(module.data.biddinglistInformationDetailLength == content.length){ - return; - } + // if(module.data.biddinglistInformationDetailLength == content.length){ + // return; + // } console.log(module.data.outProjectInformationDetail.biddingDirect) setTimeout(function(){ @@ -433,8 +435,14 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function } }else{ if (content.length>0){ + console.log('11111111111111111111111') document.getElementById('money').value = parseFloat(parseFloat(content[0].money) + parseFloat(module.data.outProjectInformationDetail.ladderPrice)).toFixed(2); + + console.log(document.getElementById('money').value) + console.log(content[0].money) + console.log(parseFloat(parseFloat(content[0].money) + parseFloat(module.data.outProjectInformationDetail.ladderPrice)).toFixed(2)) }else{ + console.log('2222222222222222222222222') document.getElementById('money').value = parseFloat(parseFloat(module.data.outProjectInformationDetail.price)).toFixed(2); // + parseFloat(module.data.outProjectInformationDetail.ladderPrice) } @@ -458,7 +466,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function module.biddinglistInformationNew = function (data) { if (data.code == 200) { var content = data.rows; - console.log(module.data.biddinglistInformationDetail.length+'----------------------'+content.length) + console.log(module.data.biddinglistInformationDetailLength+'----------------------'+content.length) if (module.data.biddinglistInformationDetailLength