From 90e8684ab11ac0f50aad3ae995b50111d01f613d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Mon, 16 Oct 2023 16:56:59 +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 --- src/api/project/index.js | 5 +++-- src/views/project/projectDetail.vue | 27 +++++++++++++++++---------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/api/project/index.js b/src/api/project/index.js index 18a51305..32b9d1bb 100644 --- a/src/api/project/index.js +++ b/src/api/project/index.js @@ -39,10 +39,11 @@ export function getWebConfig(){ }) } //竞价记录列表 -export function getBiddingList(id){ +export function getBiddingList(params){ return request({ - url:'/transaction/website/biddinglist/projectId?projectId='+id, + url:'/transaction/website/biddinglist/projectId', method:'get', + params:params }) } //竞价记录列表 diff --git a/src/views/project/projectDetail.vue b/src/views/project/projectDetail.vue index f88268da..4a82458d 100644 --- a/src/views/project/projectDetail.vue +++ b/src/views/project/projectDetail.vue @@ -287,7 +287,13 @@ export default { timer:null, getSignupData:'', bottomBtn:false, - nowDate:0 + delayPeriodNow:false, + nowDate:0, + biddingquery:{ + projectId:this.$route.query.id, + pageSize:10, + pageNum:1 + } }; }, computed: { @@ -423,7 +429,7 @@ export default { var that = this; this.timer = setInterval(function () { if(that.process == "竞价中"){ - getBiddingList(that.id).then(response =>{ + getBiddingList(that.biddingquery).then(response =>{ that.biddinglistInformation = response.rows if((response.rows.length != that.biddinglistInformationLength) && that.detail.ladderPrice){ @@ -550,7 +556,7 @@ export default { }, getBidding(){ var that = this; - getBiddingList(that.id).then(response =>{ + getBiddingList(that.biddingquery).then(response =>{ that.biddinglistInformation = response.rows that.biddinglistInformationLength = response.total if (that.detail.biddingType == '阶梯竞价'){ @@ -606,9 +612,9 @@ export default { clearInterval(this.timer); // _this.reload() _this.getBidding(); - // if (_this.detail.delayPeriod != 0){ - // _this.time = null; - // } + if (_this.detail.delayPeriod != 0 && _this.delayPeriodNow){ + _this.time = null; + } if (_this.detail.biddingType=='自由竞价'||_this.detail.biddingType=='公开竞价'){ _this.price = null; }else{ @@ -722,9 +728,9 @@ export default { clearInterval(this.timer); // _this.reload() _this.getBidding(); - // if (_this.detail.delayPeriod != 0){ - // _this.time = null; - // } + if (_this.detail.delayPeriod != 0 && _this.delayPeriodNow){ + _this.time = null; + } if (_this.detail.biddingType=='自由竞价'||_this.detail.biddingType=='公开竞价'){ _this.price = null; }else{ @@ -910,7 +916,8 @@ export default { this.time = null; } this.detail.biddingStopTime = response.data - this.$set(this.detail,'biddingStopTime',response.data) + this.$set(this.detail,'biddingStopTime',response.data); + this.delayPeriodNow = true; // this.time = Date.parse(response.data)+0-nowDate; }); }