|
@@ -352,10 +352,6 @@ extension ShoppingCartView : UITableViewDelegate, UITableViewDataSource {
|
|
|
(isSectionSel) in
|
|
|
let proListMdl: CartProductListModel = (self?.cartListModelArr![section])!
|
|
|
self?.productCartIsSelApi(shop_id: proListMdl.shopId!, isSel: isSectionSel, section: section)
|
|
|
-
|
|
|
-// self?.shopSelectedAction(isSectionSel, section: section)
|
|
|
-// self?.judgeAllSelectedStatus()
|
|
|
-// self?.refreshAccountView()
|
|
|
}
|
|
|
headerView.shopClickedBlock = {
|
|
|
[weak self] in
|
|
@@ -396,6 +392,7 @@ extension ShoppingCartView : UITableViewDelegate, UITableViewDataSource {
|
|
|
SwiftMoyaNetWorkServiceProduct.shared().productCartDeleteApi(id: productId ?? 0) { [weak self] (data) -> (Void) in
|
|
|
self?.cartListModelArr![indexPath.section].productList?.remove(at: indexPath.row)
|
|
|
tableView.deleteRows(at: [indexPath], with: .none)
|
|
|
+ self?.refreshAccountView()
|
|
|
|
|
|
// 删除后商店为空,刷新table
|
|
|
if self?.cartListModelArr![indexPath.section].productList?.isEmpty ?? true {
|