Commit 6375e600 by 李长胜

修改

1 parent 2179a654
......@@ -239,7 +239,7 @@ export default {
},
//删除该条服务套餐(让item.serviceQuantity==0)
closeChoseItemFun(item, index) {
this.totalPrice = (this.totalPrice*100 - item.vipPrice * item.serviceQuantity*100)/100
this.totalPrice = ((this.totalPrice*100 - item.vipPrice * item.serviceQuantity*100)/100).toFixed(2)
// item.serviceQuantity = 0
// this.allItemList.forEach(ele => {
// if (ele.id == item.serviceId) {
......@@ -255,7 +255,7 @@ export default {
this.allItemList.forEach(item => {
if (item.serviceQuantity) {
this.selectNum++
this.totalPrice = (this.totalPrice *100+item.vipPrice * item.serviceQuantity*100)/100
this.totalPrice = ((this.totalPrice*100 +item.vipPrice * item.serviceQuantity*100)/100).toFixed(2)
}
})
},
......@@ -406,7 +406,7 @@ export default {
this.setmealDialogVisible = false
this.totalPrice = 0
this.choseItemList.forEach(item => {
this.totalPrice = (this.totalPrice*100+ item.vipPrice * item.serviceQuantity*100)/100
this.totalPrice =((this.totalPrice*100+ item.vipPrice * item.serviceQuantity*100)/100).toFixed(2)
})
// this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!