소스 검색

产权交易倒计时

rongxin_prod
庞东旭 1 년 전
부모
커밋
80c2d2ceb9
1개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. +9
    -5
      src/views/project/projectDetail.vue

+ 9
- 5
src/views/project/projectDetail.vue 파일 보기

@@ -20,8 +20,9 @@
<!-- <div class="custom-indicator">{{ current + 1 }}/{{ detail.fileUrlList !== undefined &&detail.fileUrlList.length>0 ? detail.fileUrlList.length:1 }}</div>--> <!-- <div class="custom-indicator">{{ current + 1 }}/{{ detail.fileUrlList !== undefined &&detail.fileUrlList.length>0 ? detail.fileUrlList.length:1 }}</div>-->
<!-- </template>--> <!-- </template>-->
<!-- </van-swipe>--> <!-- </van-swipe>-->

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


if (s < 1 && m < 1){ if (s < 1 && m < 1){


불러오는 중...
취소
저장