Browse Source

no message

南鑫林 5 years ago
parent
commit
dc614a5ded

+ 2 - 2
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/ProductDetail/View/ProductDetailHeader/ProductDetailSectionHeader.swift

@@ -27,8 +27,8 @@ class ProductDetailSectionHeader: BaseView {
     override func setupLayouts() {
 
         hlineLabel.snp.makeConstraints { (make) in
-            make.bottom.equalTo(1)
-            make.top.equalTo(42)
+            make.bottom.equalTo(0)
+            make.height.equalTo(1)
             make.left.equalTo(14)
             make.right.equalToSuperview()
         }

+ 4 - 4
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/ProductDetail/View/ProductDetailView.swift

@@ -79,9 +79,9 @@ class ProductDetailView: BaseView {
         tableView.backgroundColor = kf7f8faColor
         tableView.dataSource = self
         tableView.delegate = self
-        tableView.estimatedRowHeight = 0.000001
-        tableView.estimatedSectionFooterHeight = 0.000001
-        tableView.estimatedSectionHeaderHeight = 0.000001
+        tableView.estimatedRowHeight = 100
+        tableView.estimatedSectionFooterHeight = 10
+        tableView.estimatedSectionHeaderHeight = 44
         return tableView
     }()
     
@@ -498,7 +498,7 @@ extension ProductDetailView : UITableViewDelegate, UITableViewDataSource {
     func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
         switch section {
         case 2,4,5,6:
-            return UITableView.automaticDimension
+            return 44
         default:
             return 0
         }

+ 2 - 2
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/ProductDetail/ViewController/ProductDetailViewController.swift

@@ -54,8 +54,8 @@ class ProductDetailViewController: BaseViewController {
         productDetailView.tableView.addHeaderWithHeader(withBeginRefresh: true, animation: false) {
             [weak self] (page) in
             self?.productDetailApi()
-//            self?.productListApi()
-//            self?.productCommentListApi()
+            self?.productListApi()
+            self?.productCommentListApi()
         }
         
         observe = NotificationCenter.default.addObserver(forName: NSNotification.Name("ProductDetailView"), object: nil, queue: OperationQueue.main) {[weak self] (notification) in