|
@@ -206,9 +206,9 @@ |
|
|
</van-button> |
|
|
</van-button> |
|
|
</van-col> |
|
|
</van-col> |
|
|
</van-row> |
|
|
</van-row> |
|
|
<van-field v-if="showBtn&&detail.biddingType=='自由竞价'" v-model="price" type="number" input-align="center" placeholder="请输入出价金额" /> |
|
|
|
|
|
|
|
|
<van-field v-if="showBtn&&detail.biddingType!='阶梯竞价'" v-model="price" type="number" input-align="center" placeholder="请输入出价金额" /> |
|
|
<van-row v-if="showBtn" type="flex" justify="space-around"> |
|
|
<van-row v-if="showBtn" type="flex" justify="space-around"> |
|
|
<van-col span="4" v-if="detail.ladderPrice&&detail.biddingType!='自由竞价'" style="text-align: center;line-height: 1rem"> |
|
|
|
|
|
|
|
|
<van-col span="4" v-if="detail.ladderPrice&&detail.biddingType=='阶梯竞价'" style="text-align: center;line-height: 1rem"> |
|
|
<van-button color="#e2e2e2" icon="minus" size="small" @click="sub"></van-button> |
|
|
<van-button color="#e2e2e2" icon="minus" size="small" @click="sub"></van-button> |
|
|
</van-col> |
|
|
</van-col> |
|
|
<van-col span="16"> |
|
|
<van-col span="16"> |
|
@@ -216,7 +216,7 @@ |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<van-button round color="#C21F3A" block @click="offer"> |
|
|
<van-button round color="#C21F3A" block @click="offer"> |
|
|
<p>出价</p> |
|
|
<p>出价</p> |
|
|
<p v-if="detail.ladderPrice&&detail.biddingType!='自由竞价'">{{price}}元</p> |
|
|
|
|
|
|
|
|
<p v-if="detail.ladderPrice&&detail.biddingType=='阶梯竞价'">{{price}}元</p> |
|
|
</van-button> |
|
|
</van-button> |
|
|
|
|
|
|
|
|
<van-button v-if="isFirst == 'Y'" round color="#C21F3A" block @click="offerFirst" style="margin-left: 10px;"> |
|
|
<van-button v-if="isFirst == 'Y'" round color="#C21F3A" block @click="offerFirst" style="margin-left: 10px;"> |
|
@@ -224,7 +224,7 @@ |
|
|
</van-button> |
|
|
</van-button> |
|
|
</div> |
|
|
</div> |
|
|
</van-col> |
|
|
</van-col> |
|
|
<van-col span="4" v-if="detail.ladderPrice&&detail.biddingType!='自由竞价'" style="text-align: center;line-height: 1rem"> |
|
|
|
|
|
|
|
|
<van-col span="4" v-if="detail.ladderPrice&&detail.biddingType=='阶梯竞价'" style="text-align: center;line-height: 1rem"> |
|
|
<van-button color="#e2e2e2" icon="plus" size="small" @click="add"></van-button> |
|
|
<van-button color="#e2e2e2" icon="plus" size="small" @click="add"></van-button> |
|
|
</van-col> |
|
|
</van-col> |
|
|
</van-row> |
|
|
</van-row> |
|
@@ -318,7 +318,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
|
|
|
|
|
|
|
|
|
clearInterval(this.timer); |
|
|
this.reload(); |
|
|
this.reload(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
@@ -400,7 +400,7 @@ export default { |
|
|
getBiddingList(that.id).then(response =>{ |
|
|
getBiddingList(that.id).then(response =>{ |
|
|
that.biddinglistInformation = response.rows |
|
|
that.biddinglistInformation = response.rows |
|
|
that.biddinglistInformationLength = response.total |
|
|
that.biddinglistInformationLength = response.total |
|
|
if (that.detail.biddingType != '自由竞价'){ |
|
|
|
|
|
|
|
|
if (that.detail.biddingType == '阶梯竞价'){ |
|
|
if (response.rows.length>0&&that.detail.ladderPrice){ |
|
|
if (response.rows.length>0&&that.detail.ladderPrice){ |
|
|
if (that.price == 0){return;} |
|
|
if (that.price == 0){return;} |
|
|
if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { |
|
|
if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { |
|
@@ -555,13 +555,14 @@ export default { |
|
|
this.timeConfig = response.data[8].configValue; |
|
|
this.timeConfig = response.data[8].configValue; |
|
|
response.data.map(item =>{ |
|
|
response.data.map(item =>{ |
|
|
if(item.configKey=="cqjy.website.bidInfo"){ |
|
|
if(item.configKey=="cqjy.website.bidInfo"){ |
|
|
this.webConfig += item.configValue |
|
|
|
|
|
|
|
|
this.webConfig = item.configValue |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
offerFirst(){ |
|
|
offerFirst(){ |
|
|
|
|
|
clearInterval(this.timer); |
|
|
let newMoney; |
|
|
let newMoney; |
|
|
projectNewBidMoney(this.id).then(response =>{ |
|
|
projectNewBidMoney(this.id).then(response =>{ |
|
|
if (response.data&&response.code==200){ |
|
|
if (response.data&&response.code==200){ |
|
@@ -686,6 +687,7 @@ export default { |
|
|
biddingSubmit(data).then(response =>{ |
|
|
biddingSubmit(data).then(response =>{ |
|
|
let _this = this |
|
|
let _this = this |
|
|
if(response){ |
|
|
if(response){ |
|
|
|
|
|
clearInterval(this.timer); |
|
|
this.$toast({ |
|
|
this.$toast({ |
|
|
icon: 'success', // 找到自己需要的图标 |
|
|
icon: 'success', // 找到自己需要的图标 |
|
|
message: '出价成功', |
|
|
message: '出价成功', |
|
|