Ver código fonte

产权交易

rongxin_prod
庞东旭 1 ano atrás
pai
commit
5eb8c33038
1 arquivos alterados com 47 adições e 2 exclusões
  1. +47
    -2
      src/views/project/projectDetail.vue

+ 47
- 2
src/views/project/projectDetail.vue Ver arquivo

@@ -231,10 +231,16 @@
<van-button color="#e2e2e2" icon="minus" size="small" @click="sub"></van-button>
</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>

</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>
@@ -294,7 +300,8 @@ export default {
userId:"",
timeConfig:'',
biddinglistInformationLength:0,
biddingTimeType:0
biddingTimeType:0,
isFirst:''
};
},
computed: {
@@ -473,7 +480,7 @@ export default {
};
getSignup(data).then(r =>{
if(r.data=="1"){
_this.isSignup=true
_this.isSignup=true;
this.btnMsg="立即竞价"
// this.price=this.detail.ladderPrice?this.biddinglistInformation[0].money+this.detail.ladderPrice:this.biddinglistInformation[0].money+1
}else{
@@ -507,6 +514,7 @@ export default {
_this.isSignup=true
this.btnMsg="立即竞价"
this.showBtn=true
_this.isFirst = r.signup.isFirst;
// this.price=this.detail.ladderPrice?this.biddinglistInformation[0].money+this.detail.ladderPrice:this.biddinglistInformation[0].money+1
}else{
this.btnMsg="未报名"
@@ -517,6 +525,7 @@ export default {
})

setInterval(function () {
console.log('qweasd')
getBiddingList(that.id).then(response =>{
that.biddinglistInformation = response.rows
if((response.rows.length != that.biddinglistInformationLength) && that.detail.ladderPrice){
@@ -552,6 +561,42 @@ export default {
})
});
},

offerFirst(){
let newMoney;
projectNewBidMoney(this.id).then(response =>{
if (response.data&&response.code==200){
newMoney = response.data;
}else{
newMoney = this.detail.price;
}

let data= {
projectId:this.id,
memberId:this.memberId,
userId:this.userId,
userAccount:this.userAccount,
userName:this.userName,
money:parseInt(newMoney).toFixed(2),
};
biddingSubmit(data).then(response =>{
let _this = this
if(response){
this.$toast({
icon: 'success', // 找到自己需要的图标
message: '出价成功',
duration:"1000",
onClose:function(){
_this.reload()
}
})

}
})

});
},

offer(){
let newMoney;
projectNewBidMoney(this.id).then(response =>{


Carregando…
Cancelar
Salvar