修改
This commit is contained in:
parent
fa5c5b6bcf
commit
74d4a1af4b
@ -357,7 +357,7 @@
|
|||||||
},
|
},
|
||||||
//步进期
|
//步进期
|
||||||
numberchange(e) {
|
numberchange(e) {
|
||||||
this.totalPrice = (this.updata.goodsPrice * this.updata.goodsCount).toFixed(2)
|
this.totalPrice = JSON.parse(JSON.stringify((this.updata.goodsPrice * this.updata.goodsCount).toFixed(2)))
|
||||||
this.couponListtrue = []
|
this.couponListtrue = []
|
||||||
this.couponListfalse = []
|
this.couponListfalse = []
|
||||||
this.goodsDetailslist.couponList.forEach(e => {
|
this.goodsDetailslist.couponList.forEach(e => {
|
||||||
@ -592,7 +592,13 @@
|
|||||||
this.updata.goodsStock = item.goodsStock
|
this.updata.goodsStock = item.goodsStock
|
||||||
this.updata.goodsAttributeId = item.goodsAttributeId
|
this.updata.goodsAttributeId = item.goodsAttributeId
|
||||||
this.updata.goodsAttributeDetailsId = item.attributeDetailsId
|
this.updata.goodsAttributeDetailsId = item.attributeDetailsId
|
||||||
this.totalPrice = (this.updata.goodsPrice * this.updata.goodsCount).toFixed(2)
|
this.updata.goodsCount = 1
|
||||||
|
if (this.updata.goodsStock == 0) {
|
||||||
|
this.updata.goodsCount = 0
|
||||||
|
this.totalPrice = this.updata.goodsPrice
|
||||||
|
} else {
|
||||||
|
this.totalPrice = this.updata.goodsPrice
|
||||||
|
}
|
||||||
this.couponListtrue = []
|
this.couponListtrue = []
|
||||||
this.couponListfalse = []
|
this.couponListfalse = []
|
||||||
this.goodsDetailslist.couponList.forEach(e => {
|
this.goodsDetailslist.couponList.forEach(e => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user