// // EstuLogPhotoHeaderView.swift // JiaPeiManage // // Created by Ning.ge on 2023/8/30. // import UIKit final class EstuLogPhotoHeaderView: UICollectionReusableView { let estuLogHeaderView = EstuLogHeaderView.loadFromNib().then { $0.total_label.text = "查看照片" } let bottom_view = UIView().then { $0.backgroundColor = UIColor("#0B2B4D") } let bottom_title_label = UILabel().then { $0.font = NYFont.SysFont.sys_15 $0.text = "点击图片可查看大图" $0.textColor = UIColor("#D4DDE6") $0.textAlignment = .center } override init(frame: CGRect) { super.init(frame: frame) self.backgroundColor = UIColor.db_theme bottom_view.addSubview(bottom_title_label) addSubview(estuLogHeaderView) addSubview(bottom_view) // mineDramaView.rx.tapGesture() // .when(.recognized) // .subscribe(onNext: { (_) in // // if LocalManager.userInfo.isLogin { // let context: [AnyHashable: Any] = ["isRcmd":true] // BilibiliRouter.push(.drama_recommend,context:context) // }else{ // BilibiliRouter.open(BilibiliOpenType.login.rawValue) // } // }) // .disposed(by: rx.disposeBag) } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func layoutSubviews() { super.layoutSubviews() estuLogHeaderView.snp.makeConstraints { (make) in make.top.left.right.equalToSuperview() make.height.equalTo(59) } bottom_view.snp.makeConstraints { (make) in make.top.equalTo(estuLogHeaderView.snp.bottom) make.left.right.equalToSuperview() make.height.equalTo(40) } bottom_title_label.snp.makeConstraints { (make) in make.top.equalTo(bottom_view.snp.top).offset(18) make.bottom.left.right.equalToSuperview() } } }