ソースを参照

剩余小问题

南鑫林 6 年 前
コミット
19756824e6

+ 4 - 1
RainbowPlanet/RainbowPlanet/Modules/CommonModules/SearchModule/SearchResult/ViewController/SearchResultViewController.swift

@@ -60,7 +60,10 @@ class SearchResultViewController: BaseViewController {
         }
         navigationBarView.shoppingCarBlock = {
             [weak self] in
-            self?.tabBarController?.selectedIndex = 1
+            self?.dismiss(animated: false, completion: {
+                let tabBarController = kAppDelegate.window?.rootViewController as! BaseTabbarViewController
+                tabBarController.selectedIndex = 1
+            })
         }
         
         searchResultView.didSelectRow = {

+ 2 - 0
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartView.swift

@@ -220,6 +220,8 @@ extension ShoppingCartView : UITableViewDelegate, UITableViewDataSource {
         return  UITableView.automaticDimension
     }
     
+    
+    
     func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
         if cartListModelArr?.count ?? 0 > 0 && section < cartListModelArr!.count {
             return 58