Commit 026d733f authored by pete谢兆麟's avatar pete谢兆麟

修改bug

parent c8fa828f
......@@ -185,6 +185,7 @@ extension YHMakePlanViewController: UITableViewDelegate, UITableViewDataSource {
self.viewModel.makePlanModel.toggleAddCartStatus(for: product)
self.updataPrice()
self.getScore()
self.tableView.reloadData()
}
return cell
}
......
......@@ -148,7 +148,7 @@ extension YHMakePlanModel {
for category in allCategories {
for mainModel in category {
// Check main product
if mainModel.is_add_cart, let price = Double(mainModel.price) {
if mainModel.is_add_cart, let price = Double(mainModel.price), mainModel.sub_product.count == 0 {
total += price
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment