Commit fb90c542 by 李长胜

修复bug

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