|
|
@@ -71,7 +71,7 @@ |
|
|
|
<van-col span="24"><span>竞价方向:</span>{{ detail.biddingDirect }}</van-col> |
|
|
|
</van-row> |
|
|
|
<van-row v-if="detail.ladderPrice"> |
|
|
|
<van-col span="24"><span>阶梯价(增减幅度):</span>{{ detail.ladderPrice }} 元</van-col> |
|
|
|
<van-col span="24"><span>阶梯价(增减幅度):</span>¥{{ detail.ladderPrice }} 元</van-col> |
|
|
|
</van-row> |
|
|
|
<van-row> |
|
|
|
<van-col span="24"><span>延时周期:</span>{{timeConfig}}分钟</van-col> |
|
|
@@ -217,15 +217,16 @@ |
|
|
|
</van-col> |
|
|
|
<van-col span="16"> |
|
|
|
|
|
|
|
<van-button round color="#C21F3A" block @click="offer"> |
|
|
|
<p>出价</p> |
|
|
|
<p v-if="detail.ladderPrice">{{price}}元</p> |
|
|
|
</van-button> |
|
|
|
|
|
|
|
<van-button v-if="isFirst == 'Y'" round color="#C21F3A" block @click="offerFirst" style="margin-top: 10px;"> |
|
|
|
<p>出价</p> |
|
|
|
</van-button> |
|
|
|
<div style="display: flex;"> |
|
|
|
<van-button round color="#C21F3A" block @click="offer"> |
|
|
|
<p>出价</p> |
|
|
|
<p v-if="detail.ladderPrice">{{price}}元</p> |
|
|
|
</van-button> |
|
|
|
|
|
|
|
<van-button v-if="isFirst == 'Y'" round color="#C21F3A" block @click="offerFirst" style="margin-left: 10px;"> |
|
|
|
<p>优先跟价</p> |
|
|
|
</van-button> |
|
|
|
</div> |
|
|
|
</van-col> |
|
|
|
<van-col span="4" v-if="detail.ladderPrice" style="text-align: center;line-height: 1rem"> |
|
|
|
<van-button color="#e2e2e2" icon="plus" size="small" @click="add"></van-button> |
|
|
@@ -405,7 +406,12 @@ export default { |
|
|
|
}else{ |
|
|
|
that.price = response.rows[0].money + that.detail.ladderPrice |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { |
|
|
|
that.price = that.detail.price - that.detail.ladderPrice |
|
|
|
}else{ |
|
|
|
that.price = that.detail.price + that.detail.ladderPrice |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
@@ -562,7 +568,7 @@ export default { |
|
|
|
userId:this.userId, |
|
|
|
userAccount:this.userAccount, |
|
|
|
userName:this.userName, |
|
|
|
money:parseInt(newMoney).toFixed(2), |
|
|
|
money:parseFloat(newMoney), |
|
|
|
}; |
|
|
|
biddingSubmit(data).then(response =>{ |
|
|
|
let _this = this |
|
|
@@ -687,7 +693,7 @@ export default { |
|
|
|
add(){ |
|
|
|
if (this.detail.biddingDirect == '反向竞价'){ |
|
|
|
if (this.biddinglistInformation.length<1){ |
|
|
|
if(this.detail.price <= this.price){ |
|
|
|
if(this.detail.price < this.price){ |
|
|
|
this.$toast({ |
|
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
|
message: '出价不能高于挂牌价格', |
|
|
@@ -699,7 +705,7 @@ export default { |
|
|
|
} |
|
|
|
}else{ |
|
|
|
|
|
|
|
if(this.biddinglistInformation[0].money <= (parseInt(this.price)+parseInt(this.detail.ladderPrice))){ |
|
|
|
if(this.biddinglistInformation[0].money <= (parseFloat(this.price)+parseFloat(this.detail.ladderPrice))){ |
|
|
|
this.$toast({ |
|
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
|
message: '出价不能高于当前出价最低价格', |
|
|
@@ -712,7 +718,7 @@ export default { |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if (this.biddinglistInformation.length<1){ |
|
|
|
if(this.detail.price>=this.price){ |
|
|
|
if(this.detail.price>this.price){ |
|
|
|
this.$toast({ |
|
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
|
message: '出价不能低于挂牌价格', |
|
|
@@ -777,7 +783,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if(this.biddinglistInformation[0].money>=(parseInt(this.price)-parseInt(this.detail.ladderPrice))){ |
|
|
|
if(this.biddinglistInformation[0].money>=(parseFloat(this.price)-parseFloat(this.detail.ladderPrice))){ |
|
|
|
this.$toast({ |
|
|
|
icon: 'fail', // 找到自己需要的图标 |
|
|
|
message: '出价不能低于当前出价最高价格', |
|
|
|