Commit 14086d14 authored by David黄金龙's avatar David黄金龙

处理 首次提示的UI的问题

parent eee4fed0
...@@ -100,8 +100,11 @@ class YHInformationFillTipsAlertView: UIView { ...@@ -100,8 +100,11 @@ class YHInformationFillTipsAlertView: UIView {
centerView.addSubview(bottomView) centerView.addSubview(bottomView)
bottomView.snp.makeConstraints { make in bottomView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview() make.left.right.bottom.equalToSuperview()
make.height.equalTo(96)
} }
// bottomView.backgroundColor = .red //for test hjl
let checkBtn = UIButton(type: .custom) let checkBtn = UIButton(type: .custom)
checkBtn.addTarget(self, action: #selector(onClickReadyBtn), for: .touchUpInside) checkBtn.addTarget(self, action: #selector(onClickReadyBtn), for: .touchUpInside)
checkBtn.setTitle("准备完毕", for: .normal) checkBtn.setTitle("准备完毕", for: .normal)
...@@ -112,7 +115,7 @@ class YHInformationFillTipsAlertView: UIView { ...@@ -112,7 +115,7 @@ class YHInformationFillTipsAlertView: UIView {
bottomView.addSubview(checkBtn) bottomView.addSubview(checkBtn)
checkBtn.snp.makeConstraints { make in checkBtn.snp.makeConstraints { make in
make.bottom.equalToSuperview().offset(-24) make.top.equalToSuperview().offset(8)
make.left.equalTo(kMargin) make.left.equalTo(kMargin)
make.right.equalTo(-kMargin) make.right.equalTo(-kMargin)
make.height.equalTo(48) make.height.equalTo(48)
...@@ -121,38 +124,6 @@ class YHInformationFillTipsAlertView: UIView { ...@@ -121,38 +124,6 @@ class YHInformationFillTipsAlertView: UIView {
checkBtn.addYinHeGradualLayer() checkBtn.addYinHeGradualLayer()
let lable00 = UILabel(text: "我确认我所提供的材料真实有效,并知悉其中内容。")
lable00.font = UIFont.PFSC_R(ofSize: 12)
lable00.textColor = UIColor.labelTextColor2
let tap = UITapGestureRecognizer(target: self, action: #selector(onClickAgree))
lable00.isUserInteractionEnabled = true
lable00.addGestureRecognizer(tap)
bottomView.addSubview(lable00)
lable00.snp.makeConstraints { make in
make.bottom.equalTo(checkBtn.snp.top).offset(-26)
make.left.equalTo(41)
make.right.equalTo(-16)
make.height.equalTo(20)
make.top.equalTo(16)
}
let selectedBtn = UIButton(type: .custom)
selectedBtn.setImage(UIImage(named: "selected_icon_0"), for: .normal)
selectedBtn.setImage(UIImage(named: "selected_icon_1"), for: .selected)
selectedBtn.addTarget(self, action: #selector(onClickAgree), for: .touchUpInside)
bottomView.addSubview(selectedBtn)
selectedBtn.snp.makeConstraints { make in
make.centerY.equalTo(lable00)
make.left.equalTo(21)
make.height.width.equalTo(12)
}
agreeButton = selectedBtn
agreeButton.YH_clickEdgeInsets = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
let topView = UIView() let topView = UIView()
topView.backgroundColor = .white topView.backgroundColor = .white
topView.layer.zPosition = 1 topView.layer.zPosition = 1
...@@ -185,7 +156,7 @@ class YHInformationFillTipsAlertView: UIView { ...@@ -185,7 +156,7 @@ class YHInformationFillTipsAlertView: UIView {
make.width.height.equalTo(24) make.width.height.equalTo(24)
} }
closeBtn.YH_clickEdgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10) closeBtn.YH_clickEdgeInsets = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
let line = UIView() let line = UIView()
line.backgroundColor = UIColor.separatorColor line.backgroundColor = UIColor.separatorColor
...@@ -214,6 +185,37 @@ class YHInformationFillTipsAlertView: UIView { ...@@ -214,6 +185,37 @@ class YHInformationFillTipsAlertView: UIView {
} }
homeTableView.delegate = self homeTableView.delegate = self
homeTableView.dataSource = self homeTableView.dataSource = self
let footer = UIView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: 34))
homeTableView.tableFooterView = footer
let lable00 = UILabel(text: "我确认我所提供的材料真实有效,并知悉其中内容。")
lable00.font = UIFont.PFSC_R(ofSize: 12)
lable00.textColor = UIColor.labelTextColor2
let tap = UITapGestureRecognizer(target: self, action: #selector(onClickAgree))
lable00.isUserInteractionEnabled = true
lable00.addGestureRecognizer(tap)
footer.addSubview(lable00)
lable00.snp.makeConstraints { make in
make.left.equalTo(41)
make.right.equalTo(-16)
make.height.equalTo(20)
make.top.equalTo(8)
}
let selectedBtn = UIButton(type: .custom)
selectedBtn.setImage(UIImage(named: "selected_icon_0"), for: .normal)
selectedBtn.setImage(UIImage(named: "selected_icon_1"), for: .selected)
selectedBtn.addTarget(self, action: #selector(onClickAgree), for: .touchUpInside)
footer.addSubview(selectedBtn)
selectedBtn.snp.makeConstraints { make in
make.centerY.equalTo(lable00)
make.left.equalTo(21)
make.height.width.equalTo(12)
}
agreeButton = selectedBtn
agreeButton.YH_clickEdgeInsets = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
} }
@objc func onClickReadyBtn() { @objc func onClickReadyBtn() {
......
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