|
|
@@ -20,8 +20,9 @@ |
|
|
|
<!-- <div class="custom-indicator">{{ current + 1 }}/{{ detail.fileUrlList !== undefined &&detail.fileUrlList.length>0 ? detail.fileUrlList.length:1 }}</div>--> |
|
|
|
<!-- </template>--> |
|
|
|
<!-- </van-swipe>--> |
|
|
|
|
|
|
|
<van-notice-bar color="#fff" background="#007E72" left-icon="clock-o"> |
|
|
|
{{ process }}     <span id="timeData"></span> |
|
|
|
{{ process }}    <span id="timeData"></span> |
|
|
|
<!-- <van-count-down ref="countDown" :time="time" format="DD 天 HH 时 mm 分 ss 秒" @change="timerChange" />--> |
|
|
|
</van-notice-bar> |
|
|
|
<div class="information"> |
|
|
@@ -296,6 +297,7 @@ export default { |
|
|
|
pageNum:1 |
|
|
|
}, |
|
|
|
timeData:'', |
|
|
|
timeCount:null |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
@@ -485,7 +487,7 @@ export default { |
|
|
|
let biddingStopTime = Date.parse(this.detail.biddingStopTime)+0 |
|
|
|
let signupStartTime = Date.parse(this.detail.signupStartTime)+0 |
|
|
|
let signupStopTime = Date.parse(this.detail.signupStopTime)+0 |
|
|
|
let nowDate = Date.parse(this.format($.ajax({async:false}).getResponseHeader("Date"), "yyyy-MM-dd HH:mm:ss")); |
|
|
|
let nowDate = Date.parse(this.format($.ajax({async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date"), "yyyy-MM-dd HH:mm:ss")); |
|
|
|
let time = this.detail.delayPeriod * 1000; |
|
|
|
var difference = biddingStopTime-nowDate; |
|
|
|
let m = Math.floor(difference/1000/60%60); |
|
|
@@ -556,6 +558,7 @@ export default { |
|
|
|
} |
|
|
|
if(nowDate>biddingStopTime){ |
|
|
|
//console.log('竞价结束') |
|
|
|
clearInterval(this.timeCount); |
|
|
|
this.process= "竞价结束" |
|
|
|
this.tip=this.detail.biddingStopTime+"结束竞价" |
|
|
|
this.btnMsg="竞价结束" |
|
|
@@ -578,6 +581,7 @@ export default { |
|
|
|
this.$set(this.detail,'biddingStopTime',response.data) |
|
|
|
this.getTime(); |
|
|
|
} else { |
|
|
|
clearInterval(this.timeCount); |
|
|
|
this.process = "竞价结束" |
|
|
|
this.tip = this.detail.biddingStopTime + "结束竞价" |
|
|
|
this.btnMsg = "竞价结束" |
|
|
@@ -657,7 +661,7 @@ export default { |
|
|
|
userAccount:this.userAccount, |
|
|
|
userName:this.userName, |
|
|
|
money:parseFloat(newMoney), |
|
|
|
loginTime:Date.now($.ajax({async:false}).getResponseHeader("Date")) |
|
|
|
loginTime:Date.now($.ajax({async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date")) |
|
|
|
}; |
|
|
|
biddingSubmit(data).then(response =>{ |
|
|
|
let _this = this |
|
|
@@ -772,7 +776,7 @@ export default { |
|
|
|
userAccount:this.userAccount, |
|
|
|
userName:this.userName, |
|
|
|
money:parseFloat(this.price), |
|
|
|
loginTime:Date.now($.ajax({async:false}).getResponseHeader("Date")) |
|
|
|
loginTime:Date.now($.ajax({async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date")) |
|
|
|
}; |
|
|
|
// console.log(Date.now($.ajax({async:false}).getResponseHeader("Date"))) |
|
|
|
biddingSubmit(data).then(response =>{ |
|
|
@@ -938,7 +942,7 @@ export default { |
|
|
|
let m = value.minutes; |
|
|
|
let s = value.seconds; |
|
|
|
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 nowDate = Date.parse(this.format($.ajax({async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date"), "yyyy-MM-dd HH:mm:ss")); |
|
|
|
let time = this.detail.delayPeriod * 1000; |
|
|
|
|
|
|
|
if (s < 1 && m < 1){ |
|
|
|