...
|
...
|
@@ -213,11 +213,11 @@ export default { |
|
|
]),
|
|
|
|
|
|
onTextChange: debounce(function() {
|
|
|
if (this.originProductData.least_price && this.originProductData.skup && this.originProductData.least_price <= this.inputPrice) {
|
|
|
this.showBuyDialog();
|
|
|
} else {
|
|
|
// if (this.originProductData.least_price && this.originProductData.skup && this.originProductData.least_price <= this.inputPrice) {
|
|
|
// this.showBuyDialog();
|
|
|
// } else {
|
|
|
this.computePrice();
|
|
|
}
|
|
|
// }
|
|
|
}, 500, {leading: false, trailing: true}),
|
|
|
|
|
|
showToast() {
|
...
|
...
|
@@ -258,7 +258,7 @@ export default { |
|
|
});
|
|
|
},
|
|
|
onCancel: () => {
|
|
|
this.computePrice();
|
|
|
// this.computePrice();
|
|
|
}
|
|
|
}).show();
|
|
|
},
|
...
|
...
|
@@ -301,6 +301,11 @@ export default { |
|
|
},
|
|
|
|
|
|
submitClick: debounce(function() {
|
|
|
|
|
|
if (this.originProductData.least_price && this.originProductData.skup && this.originProductData.least_price <= this.inputPrice) {
|
|
|
this.showBuyDialog();
|
|
|
return;
|
|
|
}
|
|
|
this.buyerPrePublish({price: this.inputPrice, storage_id: this.storageId, address_id: this.addressInfo.address_id})
|
|
|
.then((res) => {
|
|
|
if (res && res.code == 200) {
|
...
|
...
|
|