Commit f1fd1220 authored by Steven杜宇's avatar Steven杜宇

// 去预约

parent ee39ccb9
...@@ -257,6 +257,7 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa ...@@ -257,6 +257,7 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
// 待预约赴港成员 // 待预约赴港成员
let cell = tableView.dequeueReusableCell(withIdentifier: YHWaitAppointMembersCell.cellReuseIdentifier, for: indexPath) as! YHWaitAppointMembersCell let cell = tableView.dequeueReusableCell(withIdentifier: YHWaitAppointMembersCell.cellReuseIdentifier, for: indexPath) as! YHWaitAppointMembersCell
cell.members = waitAppointMembers cell.members = waitAppointMembers
cell.clickBlock = { cell.clickBlock = {
[weak self] in [weak self] in
guard let self = self else { return } guard let self = self else { return }
...@@ -270,6 +271,7 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa ...@@ -270,6 +271,7 @@ extension YHCertificateAppointViewController: UITableViewDelegate, UITableViewDa
if item.type == .confirmGoHKInfo { if item.type == .confirmGoHKInfo {
// 请您确认第X批赴港信息 // 请您确认第X批赴港信息
let cell = tableView.dequeueReusableCell(withIdentifier: YHSelectApplicantGroupCell.cellReuseIdentifier, for: indexPath) as! YHSelectApplicantGroupCell let cell = tableView.dequeueReusableCell(withIdentifier: YHSelectApplicantGroupCell.cellReuseIdentifier, for: indexPath) as! YHSelectApplicantGroupCell
cell.isShowSelectUserView = !self.isAllMembersGo
return cell return cell
} }
......
...@@ -92,6 +92,7 @@ extension YHReAppointViewController: UITableViewDelegate, UITableViewDataSource ...@@ -92,6 +92,7 @@ extension YHReAppointViewController: UITableViewDelegate, UITableViewDataSource
if item.type == .confirmGoHKInfo { if item.type == .confirmGoHKInfo {
// 请您确认第X批赴港信息 // 请您确认第X批赴港信息
let cell = tableView.dequeueReusableCell(withIdentifier: YHSelectApplicantGroupCell.cellReuseIdentifier, for: indexPath) as! YHSelectApplicantGroupCell let cell = tableView.dequeueReusableCell(withIdentifier: YHSelectApplicantGroupCell.cellReuseIdentifier, for: indexPath) as! YHSelectApplicantGroupCell
cell.isShowSelectUserView = false
return cell return cell
} }
} }
......
...@@ -22,6 +22,40 @@ class YHSelectApplicantInfo { ...@@ -22,6 +22,40 @@ class YHSelectApplicantInfo {
class YHSelectApplicantGroupCell: UITableViewCell { class YHSelectApplicantGroupCell: UITableViewCell {
static let cellReuseIdentifier = "YHSelectApplicantGroupCell" static let cellReuseIdentifier = "YHSelectApplicantGroupCell"
let detailText = "选择第一批赴港激活签证的申请人"
var isShowSelectUserView: Bool = true {
didSet {
detailLabel.isHidden = !isShowSelectUserView
selectGroupView.isHidden = !isShowSelectUserView
collectionView.isHidden = !isShowSelectUserView
lineView.isHidden = !isShowSelectUserView
detailLabel.text = isShowSelectUserView ? self.detailText : ""
detailLabel.snp.updateConstraints { make in
make.top.equalTo(lineView.snp.bottom).offset(isShowSelectUserView ? 16 : 0)
}
selectGroupView.snp.updateConstraints { make in
make.top.equalTo(detailLabel.snp.bottom).offset(isShowSelectUserView ? 12 : 0)
}
collectionView.snp.updateConstraints { make in
make.top.equalTo(isShowSelectUserView ? 14 : 0)
make.bottom.equalTo(isShowSelectUserView ? -14 : 0)
make.height.equalTo(isShowSelectUserView ? 56 : 0)
}
optionsView.snp.makeConstraints { make in
make.top.equalTo(selectGroupView.snp.bottom).offset(isShowSelectUserView ? 16 : 0)
}
self.setNeedsLayout()
self.layoutIfNeeded()
}
}
lazy var selecters:[YHSelectApplicantInfo] = { lazy var selecters:[YHSelectApplicantInfo] = {
return [YHSelectApplicantInfo(name: "李小龙", isSelect: true), return [YHSelectApplicantInfo(name: "李小龙", isSelect: true),
...@@ -57,7 +91,7 @@ class YHSelectApplicantGroupCell: UITableViewCell { ...@@ -57,7 +91,7 @@ class YHSelectApplicantGroupCell: UITableViewCell {
label.numberOfLines = 0 label.numberOfLines = 0
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = .mainTextColor label.textColor = .mainTextColor
label.text = "选择第一批赴港激活签证的申请人" label.text = self.detailText
return label return label
}() }()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment