|
|
@@ -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)
|