| | |
| | | @IBOutlet weak var contentTableView: UITableView! |
| | | @IBOutlet weak var contentTableHeiCons: NSLayoutConstraint! |
| | | @IBOutlet weak var label_BLN: UILabel! |
| | | @IBOutlet weak var label_status: UILabel! |
| | | |
| | | var adapterViewController:FFAdapterViewController! |
| | | |
| | |
| | | label_id.text = m.orderId |
| | | icon_id.image = m.status.transImage |
| | | label_BLN.text = "B/L OR AWB NO.:\(m.tGoods?.containerNumber ?? "")" |
| | | label_status.text = m.nextStatus.transStr |
| | | contentTableView.reloadData() |
| | | cargoTableview.reloadData() |
| | | |
| | |
| | | }).disposed(by: disposeBag) |
| | | } |
| | | |
| | | @IBAction func tapAction(_ sender: TapButton) { |
| | | print("---->") |
| | | } |
| | | |
| | | |
| | | |
| | | required init?(coder: NSCoder) { |
| | | fatalError("init(coder:) has not been implemented") |
| | | } |
| | |
| | | |
| | | extension HomeDetailContentVC:UIScrollViewDelegate{ |
| | | func scrollViewDidScroll(_ scrollView: UIScrollView) { |
| | | let offetY = -(scrollView.contentOffset.y - UIDevice.jq_safeEdges.top) + UIDevice.jq_safeEdges.top + 30 |
| | | if offetY >= 0 { |
| | | |
| | | |
| | | let totalHeight = adapterViewController.headHeight |
| | | let offset = totalHeight - scrollView.contentOffset.y |
| | | let isTop = (offset - topSafeHeight) < 0 |
| | | |
| | | if scrollView.contentOffset.y > 0 && !isTop{ |
| | | adapterViewController.scrollview.contentOffset = scrollView.contentOffset |
| | | } |
| | | } |