|
|
@@ -122,7 +122,8 @@ export default {
|
|
|
timer: null,
|
|
|
showPwdDialog: false,
|
|
|
showKeyboard: false,
|
|
|
- tradeCode: ''
|
|
|
+ tradeCode: '',
|
|
|
+ money: 0
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -215,7 +216,8 @@ export default {
|
|
|
onAdd() {
|
|
|
this.$router.push('/mineAddress?page=submit&chooseId=' + this.addressInfo.id);
|
|
|
},
|
|
|
- init() {
|
|
|
+ init(money = 0) {
|
|
|
+ this.money = money;
|
|
|
this.time = this.getTime(this.info.endTime);
|
|
|
this.show = true;
|
|
|
},
|
|
|
@@ -315,7 +317,12 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
createOrder() {
|
|
|
- let form = { userId: this.$store.state.userInfo.id, auctionId: this.info.id, type: 'DEPOSIT' };
|
|
|
+ let form = {
|
|
|
+ userId: this.$store.state.userInfo.id,
|
|
|
+ auctionId: this.info.id,
|
|
|
+ type: 'DEPOSIT',
|
|
|
+ amount: this.money
|
|
|
+ };
|
|
|
if (!this.isNFT) {
|
|
|
form.addressId = this.addressInfo.id;
|
|
|
}
|
|
|
@@ -453,7 +460,7 @@ export default {
|
|
|
tradeCode: this.tradeCode
|
|
|
})
|
|
|
.then(res => {
|
|
|
- this.$toast.success('支付成功');
|
|
|
+ this.$toast.success('出价成功');
|
|
|
setTimeout(() => {
|
|
|
setTimeout(() => {
|
|
|
this.$emit('refreash');
|
|
|
@@ -467,7 +474,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- this.$toast.success('支付成功');
|
|
|
+ this.$toast.success('出价成功');
|
|
|
setTimeout(() => {
|
|
|
this.$emit('refreash');
|
|
|
}, 1000);
|
|
|
@@ -582,7 +589,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- this.$toast.success('支付成功');
|
|
|
+ this.$toast.success('出价成功');
|
|
|
setTimeout(() => {
|
|
|
this.$emit('refreash');
|
|
|
}, 1000);
|