修复单品改价弹窗关闭未重置问题

This commit is contained in:
YeMingfei666 2024-12-05 10:11:47 +08:00
parent 4cf751a51c
commit 850509ba04
1 changed files with 4 additions and 2 deletions

View File

@ -112,6 +112,7 @@ export default {
reset() {
this.note = "";
this.number = 1;
this.price='';
this.tags.map((v) => {
v.checked = false;
});
@ -129,11 +130,12 @@ export default {
open(item) {
this.goods = item ? item : this.goods;
this.max=returnCartPrice(this.goods,this.vipUser)
console.log(this.goods);
this.show = true;
if (item.productId != "-999") {
if (this.goods != "-999") {
} else {
this.price = item.discountSaleAmount||'';
this.price =this.goods.discountSaleAmount||'';
}
},
close() {