Commit 909fd5de authored by David黄金龙's avatar David黄金龙

Merge branch 'youhua-dev' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into youhua-dev

* 'youhua-dev' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS:
  文书核对中改为已提交
  信息预览添加预览
parents 3c547e3a 69c65d19
...@@ -173,10 +173,10 @@ class YHDocListCell: UITableViewCell { ...@@ -173,10 +173,10 @@ class YHDocListCell: UITableViewCell {
statusTxt = "待确认" statusTxt = "待确认"
color = UIColor.brandMainColor color = UIColor.brandMainColor
} else if status == 3 { } else if status == 3 {
statusTxt = "核对中" statusTxt = "已提交"
color = UIColor.warnColor color = UIColor.warnColor
} else if status == 4 { } else if status == 4 {
statusTxt = "核对中" statusTxt = "已提交"
color = UIColor.warnColor color = UIColor.warnColor
} else if status == 5 { } else if status == 5 {
statusTxt = "已驳回" statusTxt = "已驳回"
......
...@@ -85,7 +85,7 @@ class YHDocumentMessageTableViewCell: UITableViewCell { ...@@ -85,7 +85,7 @@ class YHDocumentMessageTableViewCell: UITableViewCell {
label.textColor = UIColor.labelTextColor2 label.textColor = UIColor.labelTextColor2
label.backgroundColor = UIColor.warnColor.withAlphaComponent(0.08) label.backgroundColor = UIColor.warnColor.withAlphaComponent(0.08)
label.textAlignment = .left label.textAlignment = .left
label.text = "核对中" label.text = "已提交"
label.layer.cornerRadius = kCornerRadius3 label.layer.cornerRadius = kCornerRadius3
label.masksToBounds = true label.masksToBounds = true
return label return label
...@@ -228,14 +228,14 @@ class YHDocumentMessageTableViewCell: UITableViewCell { ...@@ -228,14 +228,14 @@ class YHDocumentMessageTableViewCell: UITableViewCell {
editButton.isHidden = false editButton.isHidden = false
submitButton.isHidden = false submitButton.isHidden = false
} else if status == 3 { } else if status == 3 {
statusTxt = " 核对中 " statusTxt = " 已提交 "
color = UIColor.warnColor color = UIColor.warnColor
lookButton.isHidden = false lookButton.isHidden = false
editButton.isHidden = true editButton.isHidden = true
submitButton.isHidden = true submitButton.isHidden = true
bottomCenterLineView.isHidden = true bottomCenterLineView.isHidden = true
} else if status == 4 { } else if status == 4 {
statusTxt = " 核对中 " statusTxt = " 已提交 "
color = UIColor.warnColor color = UIColor.warnColor
lookButton.isHidden = false lookButton.isHidden = false
editButton.isHidden = true editButton.isHidden = true
......
...@@ -43,6 +43,9 @@ class YHPreviewInfoCertificatePictureItemView: UIView { ...@@ -43,6 +43,9 @@ class YHPreviewInfoCertificatePictureItemView: UIView {
lable.contentMode = .scaleAspectFit lable.contentMode = .scaleAspectFit
lable.layer.cornerRadius = kCornerRadius6 lable.layer.cornerRadius = kCornerRadius6
lable.clipsToBounds = true lable.clipsToBounds = true
lable.isUserInteractionEnabled = true
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(frontImagTapped))
lable.addGestureRecognizer(tapGesture)
return lable return lable
}() }()
...@@ -53,6 +56,9 @@ class YHPreviewInfoCertificatePictureItemView: UIView { ...@@ -53,6 +56,9 @@ class YHPreviewInfoCertificatePictureItemView: UIView {
lable.contentMode = .scaleAspectFit lable.contentMode = .scaleAspectFit
lable.layer.cornerRadius = kCornerRadius6 lable.layer.cornerRadius = kCornerRadius6
lable.clipsToBounds = true lable.clipsToBounds = true
lable.isUserInteractionEnabled = true
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(backImagTapped))
lable.addGestureRecognizer(tapGesture)
return lable return lable
}() }()
...@@ -142,6 +148,18 @@ extension YHPreviewInfoCertificatePictureItemView { ...@@ -142,6 +148,18 @@ extension YHPreviewInfoCertificatePictureItemView {
make.bottom.equalToSuperview() make.bottom.equalToSuperview()
} }
} }
@objc func frontImagTapped(gesture: UITapGestureRecognizer) {
let vc = YHImageViewController()
vc.imgString = dataModel?.frontUrl
UIViewController.current?.navigationController?.pushViewController(vc)
}
@objc func backImagTapped(gesture: UITapGestureRecognizer) {
let vc = YHImageViewController()
vc.imgString = dataModel?.backUrl
UIViewController.current?.navigationController?.pushViewController(vc)
}
} }
......
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