From 503bf56c3716860b79b87581f7c193c398cdf5a6 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 14:16:09 +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/views/project/projectDetail.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/project/projectDetail.vue b/src/views/project/projectDetail.vue index 0a6ac651..1a7841a2 100644 --- a/src/views/project/projectDetail.vue +++ b/src/views/project/projectDetail.vue @@ -286,7 +286,7 @@ export default { isFirst:'', timer:null, getSignupData:'', - bottomBtn:true, + bottomBtn:false, nowDate:0 }; }, @@ -455,7 +455,7 @@ export default { this.getBidding(); this.getTime(); - + this.bottomBtn = true; }) }) }) @@ -874,7 +874,6 @@ export default { let h = value.hours; let m = value.minutes; let s = value.seconds; - console.log('aaa') let biddingStopTime = Date.parse(this.detail.biddingStopTime)+0 let nowDate = Date.parse(this.format($.ajax({async:false}).getResponseHeader("Date"), "yyyy-MM-dd HH:mm:ss")); let time = this.detail.delayPeriod * 1000; @@ -901,13 +900,18 @@ export default { }); }else if (s%2 == 0&&time!=0){ + console.log('aaa') // console.log((biddingStopTime-nowDate)) // console.log(time) // this.getTime(); if ((biddingStopTime-nowDate)<=time){ // console.log("竞价剩余两分钟"+"m:"+m+"s:"+s) getBiddingStopTime(this.id).then(response =>{ - // this.detail.biddingStopTime = response.data + if(this.detail.biddingStopTime!=response.data){ + console.log('有人出价') + this.time = null; + } + this.detail.biddingStopTime = response.data this.$set(this.detail,'biddingStopTime',response.data) // this.time = Date.parse(response.data)+0-nowDate; });