Эх сурвалжийг харах

[*] 首页Banner业务逻辑完善

yanxuyao 3 өдөр өмнө
parent
commit
bed0450e7e

+ 2 - 5
Lanu/Views/Game/MateList/Banner/LNMateAdBannerCell.swift

@@ -13,8 +13,6 @@ final class LNMateAdBannerCell: UITableViewCell {
     static let reuseID = "LNMateAdBannerCell"
 
     var onTapBanner: ((_ item: LNBannerInfoVO, _ index: Int) -> Void)?
-    var autoPostTapNotification = true
-    var tapNotificationName = Notification.Name("MOSquareListVC_H5Jump")
 
     private let pagerView = LNCyclePager()
     private let pageControl = LNCyclePageControl()
@@ -97,9 +95,8 @@ private extension LNMateAdBannerCell {
             guard let self, index >= 0, index < items.count else { return }
             let item = items[index]
             onTapBanner?(item, index)
-            if autoPostTapNotification {
-                NotificationCenter.default.post(name: tapNotificationName, object: item)
-            }
+            guard !item.jump.isEmpty else { return }
+            pushToWebView(.init(url: item.jump))
         }
 
         pageControl.pageIndicatorSize = CGSize(width: 6, height: 6)

+ 1 - 1
Lanu/Views/Game/MateList/LNGameMateListView.swift

@@ -218,7 +218,7 @@ extension LNGameMateListView: UITableViewDataSource, UITableViewDelegate {
 
     func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
         if isBannerRow(indexPath.row) {
-            return 82
+            return 70
         }
         return UITableView.automaticDimension
     }