update
This commit is contained in:
@@ -115,10 +115,6 @@ extension ReviewFailedController {
|
||||
})
|
||||
.disposed(by: disposeBag)
|
||||
|
||||
let item = tabBarItem as? ESTabBarItem
|
||||
item?.badgeValue = "10"
|
||||
item?.contentView?.updateLayout()
|
||||
|
||||
preRefreshRelay
|
||||
.observe(on: MainScheduler.instance)
|
||||
.subscribe(onNext: {[weak self] _ in
|
||||
@@ -182,6 +178,27 @@ open class ReviewFailedController : ZDViewController {
|
||||
private let pendingView = MessageView()
|
||||
private var emptyView = EmptyView()
|
||||
|
||||
public override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
|
||||
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
|
||||
MCOUNT.reviewFailedCountRelay
|
||||
.observe(on: MainScheduler.instance)
|
||||
.subscribe(onNext: {[weak self] count in
|
||||
if let tabBar = self?.tabBarController?.tabBar as? ESTabBar {
|
||||
let tabBarItem = tabBar.items?[1]
|
||||
if count > 0 {
|
||||
tabBarItem?.badgeValue = String(count)
|
||||
}else{
|
||||
tabBarItem?.badgeValue = nil
|
||||
}
|
||||
}
|
||||
})
|
||||
.disposed(by: disposeBag)
|
||||
}
|
||||
|
||||
public required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
open override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
dd_navigationItemTitle = "审核失败"
|
||||
|
||||
Reference in New Issue
Block a user