Commit 00abc83d authored by Steven杜宇's avatar Steven杜宇

// UI

parent bce1b91f
......@@ -14,6 +14,7 @@ class YHGrabFileCell: UICollectionViewCell {
lazy var fileImgView:UIImageView = {
let view = UIImageView(image: UIImage(named: "global_default_image"))
view.contentMode = .scaleAspectFit
return view
}()
......
......@@ -120,17 +120,24 @@ class YHFamilyInfoUpdateViewController: YHBaseViewController {
self.navigationController?.popViewController()
}
@objc func didConfirmBtnClicked() {
self.detailMember.info.isCheck = true
self.updateData()
func checkInfo() -> Bool {
if let arr1 = items.first {
for item in arr1 {
if !item.tips.isEmpty {
return
return false
}
}
}
return true
}
@objc func didConfirmBtnClicked() {
self.detailMember.info.isCheck = true
self.updateData()
if !checkInfo() {
return
}
if let detaiParams = self.detailMember.info.toDictionary() {
......@@ -222,8 +229,18 @@ extension YHFamilyInfoUpdateViewController: UITableViewDelegate, UITableViewData
cell.editBlock = {
[weak self] isEdit in
guard let self = self else { return }
if !isEdit {
if !checkInfo() {
// 检查信息错误
self.isInfoEditing = true
self.detailMember.info.isCheck = true
self.updateData()
return
}
}
self.isInfoEditing = isEdit
self.updateData()
}
// 选择出生国家/地区
cell.selectBirthNation = {
......
......@@ -47,7 +47,7 @@ class YHFamilyInfoWarmTipsView: UIView {
let a: ASAttributedString = .init("电子签证缴费截止日期:", .font(UIFont.PFSC_M(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let b: ASAttributedString = .init("一般为正式获批信下发后", .font(UIFont.PFSC_R(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let c: ASAttributedString = .init("3个月内", .font(UIFont.PFSC_B(ofSize: 15)),.foreground(UIColor.brandMainColor))
let d: ASAttributedString = .init("(请以获批函规定日期为准)", .font(UIFont.PFSC_R(ofSize: 15)),.foreground(UIColor.brandMainColor))
let d: ASAttributedString = .init("(请以获批函规定日期为准)", .font(UIFont.PFSC_R(ofSize: 15)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
label.attributed.text = a+b+c+d
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