Commit fb90c542 by 李长胜

修复bug

1 parent 8ba8d6f8
......@@ -237,7 +237,7 @@ export default {
//权益 - 弹窗
isDialogVisible: false,
merchantData: {},
merchantId: 44184606 //记得改
merchantId: 0 //记得改 44184606
}
},
created() {
......
......@@ -203,7 +203,7 @@ export default {
}
}
})
console.log('编辑内容', this.choseItemList, this.totalPrice)
this.copyTotalPrice = this.totalPrice
this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据
this.copyChoseItemList = this.choseItemList
......@@ -225,7 +225,7 @@ export default {
serviceQuantity: 0
}
})
console.log(this.allItemList, '服务套餐')
if (this.id) {
this.getServiceInfo() //获取编辑详情
}
......@@ -242,12 +242,12 @@ export default {
closeChoseItemFun(item, index) {
this.totalPrice = this.totalPrice - item.vipPrice * item.serviceQuantity
// item.serviceQuantity = 0
this.allItemList.forEach(ele => {
if (ele.id == item.serviceId) {
ele.serviceQuantity = 0
}
})
this.selectNumFun()
// this.allItemList.forEach(ele => {
// if (ele.id == item.serviceId) {
// ele.serviceQuantity = 0
// }
// })
// this.selectNumFun()
this.choseItemList.splice(index, 1)
},
selectNumFun() {
......@@ -402,6 +402,7 @@ export default {
serviceId: ele.id
}
})
console.log('确定之后choseItemList', this.choseItemList)
this.setmealDialogVisible = false
},
handleClose() {
......@@ -415,7 +416,7 @@ export default {
// //第二个参数这里是对象,不是number(n)
// return preValue + choseItem.vipPrice * choseItem.serviceQuantity
// }, 0)
this.getSetmealServiceFun()
// this.getSetmealServiceFun()
},
handleTipClose() {
this.isTipDialogVisible = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!