...
|
...
|
@@ -134,7 +134,7 @@ export default { |
|
|
|
|
|
},
|
|
|
|
|
|
beforeRouteEnter (to, from, next) {
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
|
|
|
next(vm => {
|
|
|
// 通过 `vm` 访问组件实例
|
...
|
...
|
@@ -161,12 +161,12 @@ export default { |
|
|
this.showToast();
|
|
|
}
|
|
|
},
|
|
|
isShowDialog(val) {
|
|
|
|
|
|
if (val) {
|
|
|
this.showDialog();
|
|
|
}
|
|
|
},
|
|
|
// isShowDialog(val) {
|
|
|
// if (val) {
|
|
|
// this.showDialog();
|
|
|
// }
|
|
|
// },
|
|
|
|
|
|
addressInfo(val) {
|
|
|
|
...
|
...
|
@@ -174,6 +174,10 @@ export default { |
|
|
this.computePrice();
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
inputPrice(val) {
|
|
|
console.log(val);
|
|
|
}
|
|
|
},
|
|
|
|
...
|
...
|
@@ -245,6 +249,7 @@ export default { |
|
|
|
|
|
showDialog() {
|
|
|
this.BUYER_ASK_SET_SHOWDIALOG(false);
|
|
|
let that = this;
|
|
|
|
|
|
if (this.preTip) {
|
|
|
this.$createDialog({
|
...
|
...
|
@@ -265,7 +270,7 @@ export default { |
|
|
},
|
|
|
|
|
|
onConfirm: () => {
|
|
|
this.publishProduct();
|
|
|
that.publishProduct();
|
|
|
},
|
|
|
|
|
|
onCancel: () => {
|
...
|
...
|
@@ -274,13 +279,16 @@ export default { |
|
|
|
|
|
}).show();
|
|
|
} else {
|
|
|
this.publishProduct();
|
|
|
that.publishProduct();
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
submitClick() {
|
|
|
this.buyerPrePublish({price: this.inputPrice, storage_id: this.storageId, address_id: this.addressInfo.address_id});
|
|
|
this.buyerPrePublish({price: this.inputPrice, storage_id: this.storageId, address_id: this.addressInfo.address_id})
|
|
|
.then(() => {
|
|
|
this.showDialog();
|
|
|
});
|
|
|
},
|
|
|
|
|
|
publishProduct() {
|
...
|
...
|
@@ -291,7 +299,7 @@ export default { |
|
|
|
|
|
computePrice() {
|
|
|
if (!this.inputPrice) {
|
|
|
console.log('inputPrice is null')
|
|
|
console.log('inputPrice is null');
|
|
|
return;
|
|
|
}
|
|
|
this.buyerCompute({price: this.inputPrice, storage_id: this.storageId, address_id: this.addressInfo.address_id || '' });
|
...
|
...
|
|