|
|
@@ -29,7 +29,7 @@ |
|
|
|
</van-row> |
|
|
|
<van-row> |
|
|
|
<van-col span="5">{{ process }}</van-col> |
|
|
|
<van-col span="19"><van-count-down :time="time" format="DD 天 HH 时 mm 分 ss 秒" /></van-col> |
|
|
|
<van-col span="19"><van-count-down :time="time" format="DD 天 HH 时 mm 分 ss 秒" @change="timerChange" /></van-col> |
|
|
|
</van-row> |
|
|
|
<van-row> |
|
|
|
<van-col span="5">挂牌价</van-col> |
|
|
@@ -40,7 +40,7 @@ |
|
|
|
<van-col span="19" class="money"><span>{{ detail.deposit }}</span> 元</van-col> |
|
|
|
</van-row> |
|
|
|
</div> |
|
|
|
<div class="lead" v-if="detail.biddingType == '拍卖' || detail.biddingTimeType == 2"> |
|
|
|
<div class="lead" v-if="detail.biddingType == '拍卖' || biddingTimeType == 2"> |
|
|
|
<van-row > |
|
|
|
<van-col span="2"><van-image src="../../static/images/icon/phone.png" style="vertical-align: text-top;" /></van-col> |
|
|
|
<template v-if="biddinglistInformation!=undefined&&biddinglistInformation.length>0"> |
|
|
@@ -170,7 +170,7 @@ |
|
|
|
<van-tab title="竞价记录" title-style="font-size:12px;"> |
|
|
|
<p class="delTitle">竞价记录</p> |
|
|
|
<div class="biddingList"> |
|
|
|
<p v-if="detail.biddingType != '拍卖' && detail.biddingTimeType != 2">友情提示:非拍卖竞价方式下,竞价过程中不显示竞价记录!</p> |
|
|
|
<p v-if="detail.biddingType != '拍卖' && biddingTimeType != 2">友情提示:非拍卖竞价方式下,竞价过程中不显示竞价记录!</p> |
|
|
|
<table v-else width="100%" cellspacing="0"> |
|
|
|
<tr> |
|
|
|
<td>出价人账号</td> |
|
|
@@ -267,7 +267,7 @@ export default { |
|
|
|
process:"", |
|
|
|
tip:"", |
|
|
|
btnMsg:"", |
|
|
|
time:0, |
|
|
|
time:1000000000000000000, |
|
|
|
timeMsg:"", |
|
|
|
isSignup:false, |
|
|
|
showBtn:false, |
|
|
@@ -275,7 +275,9 @@ export default { |
|
|
|
userAccount:"", |
|
|
|
userName:"", |
|
|
|
userId:"", |
|
|
|
timeConfig:'' |
|
|
|
timeConfig:'', |
|
|
|
biddinglistInformationLength:0, |
|
|
|
biddingTimeType:0 |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
@@ -320,6 +322,7 @@ export default { |
|
|
|
this.show = true; |
|
|
|
}, |
|
|
|
reload(){ |
|
|
|
console.log("结束进入") |
|
|
|
getOutProjectDetail(this.id).then(response =>{ |
|
|
|
this.detail=response.data |
|
|
|
this.getDicts("rollout_type").then(res =>{ |
|
|
@@ -359,12 +362,6 @@ export default { |
|
|
|
let signupStopTime = Date.parse(this.detail.signupStopTime)+0 |
|
|
|
let nowDate = Date.parse(new Date()); |
|
|
|
|
|
|
|
console.log('竞价开始时间'+biddingStartTime) |
|
|
|
console.log('竞价截止时间'+biddingStopTime) |
|
|
|
console.log('报名开始时间'+signupStartTime) |
|
|
|
console.log('报名截止时间'+signupStopTime) |
|
|
|
console.log('当前时间'+nowDate) |
|
|
|
|
|
|
|
if(signupStartTime>nowDate){ |
|
|
|
console.log('未开始') |
|
|
|
this.process= "报名未开始" |
|
|
@@ -401,6 +398,7 @@ export default { |
|
|
|
} |
|
|
|
if(biddingStartTime>nowDate&&nowDate>signupStopTime){ |
|
|
|
console.log('竞价未开始') |
|
|
|
this.biddingTimeType = 3; |
|
|
|
this.process= "竞价未开始" |
|
|
|
this.tip=this.detail.biddingStartTime+"开始竞价" |
|
|
|
this.timeMsg="距竞价开始" |
|
|
@@ -427,6 +425,7 @@ export default { |
|
|
|
} |
|
|
|
if(biddingStopTime>nowDate&&nowDate>biddingStartTime){ |
|
|
|
console.log('竞价中') |
|
|
|
this.biddingTimeType = 1; |
|
|
|
this.process= "竞价中" |
|
|
|
this.tip=this.detail.biddingStopTime+"结束竞价" |
|
|
|
this.timeMsg="距竞价结束" |
|
|
@@ -458,13 +457,15 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
if(nowDate>biddingStopTime){ |
|
|
|
console.log('竞价结束') |
|
|
|
console.log('竞价结束111111111') |
|
|
|
this.process= "竞价结束" |
|
|
|
this.tip=this.detail.biddingStopTime+"结束竞价" |
|
|
|
this.btnMsg="竞价结束" |
|
|
|
this.timeMsg="竞价结束" |
|
|
|
this.time = 0 |
|
|
|
this.isSignup = true |
|
|
|
this.showBtn=false |
|
|
|
this.biddingTimeType = 2; |
|
|
|
} |
|
|
|
}); |
|
|
|
getWebConfig().then(response =>{ |
|
|
@@ -477,6 +478,7 @@ export default { |
|
|
|
}); |
|
|
|
getBiddingList(this.id).then(response =>{ |
|
|
|
this.biddinglistInformation = response.rows |
|
|
|
this.biddinglistInformationLength = response.total |
|
|
|
if (response.rows.length>0&&this.detail.ladderPrice){ |
|
|
|
this.price = response.rows[0].money+this.detail.ladderPrice |
|
|
|
} |
|
|
@@ -496,7 +498,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (this.detail.biddingDirect == '递减竞价'){ |
|
|
|
if (this.biddinglistInformation.length<1){ |
|
|
|
// if (this.biddinglistInformation.length<1){ |
|
|
|
if(this.detail.price<=this.price){ |
|
|
|
this.$toast({ |
|
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
@@ -507,20 +509,20 @@ export default { |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if(this.biddinglistInformation[0].money<=this.price){ |
|
|
|
this.$toast({ |
|
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
|
message: '出价不能高于当前出价最低价格', |
|
|
|
duration:"1000", |
|
|
|
onClose:function(){ |
|
|
|
} |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// }else{ |
|
|
|
// if(this.biddinglistInformation[0].money<=this.price){ |
|
|
|
// this.$toast({ |
|
|
|
// icon: 'fail', // 找到自己需要的图标 |
|
|
|
// message: '出价不能高于当前出价最低价格', |
|
|
|
// duration:"1000", |
|
|
|
// onClose:function(){ |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// } |
|
|
|
}else{ |
|
|
|
if (this.biddinglistInformation.length<1){ |
|
|
|
// if (this.biddinglistInformation.length<1){ |
|
|
|
if(this.detail.price>=this.price){ |
|
|
|
this.$toast({ |
|
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
@@ -531,18 +533,20 @@ export default { |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if(this.biddinglistInformation[0].money>=this.price){ |
|
|
|
// }else{ |
|
|
|
if (this.detail.biddingType=='拍卖'||this.detail.biddingType=='阶梯竞价') { |
|
|
|
if (this.biddinglistInformation[0].money >= this.price) { |
|
|
|
this.$toast({ |
|
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
|
message: '出价不能低于当前出价最高价格', |
|
|
|
duration:"1000", |
|
|
|
onClose:function(){ |
|
|
|
duration: "1000", |
|
|
|
onClose: function () { |
|
|
|
} |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
let data= { |
|
|
|
projectId:this.id, |
|
|
@@ -562,7 +566,7 @@ export default { |
|
|
|
message: '出价成功', |
|
|
|
duration:"1000", |
|
|
|
onClose:function(){ |
|
|
|
_this.reload() |
|
|
|
// _this.reload() |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
@@ -644,6 +648,30 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
timerChange(value){ |
|
|
|
let d = value.days; |
|
|
|
let h = value.hours; |
|
|
|
let m = value.minutes; |
|
|
|
let s = value.seconds; |
|
|
|
if (d==0 && h==0 && m<2){ |
|
|
|
console.log("竞价剩余两分钟"+"m:"+m+"s:"+s) |
|
|
|
|
|
|
|
if (m == 0 && s==0){ |
|
|
|
console.log("竞价结束22222222222") |
|
|
|
this.reload(); |
|
|
|
} |
|
|
|
getBiddingList(this.id).then(response =>{ |
|
|
|
this.biddinglistInformation = response.rows |
|
|
|
if (response.rows.length>this.biddinglistInformationLength){ |
|
|
|
console.log("有人出价") |
|
|
|
this.biddinglistInformationLength = response.rows.length; |
|
|
|
this.time = 120000 |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|