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 {
statusTxt = "待确认"
color = UIColor.brandMainColor
} else if status == 3 {
statusTxt = "核对中"
statusTxt = "已提交"
color = UIColor.warnColor
} else if status == 4 {
statusTxt = "核对中"
statusTxt = "已提交"
color = UIColor.warnColor
} else if status == 5 {
statusTxt = "已驳回"
......
......@@ -85,7 +85,7 @@ class YHDocumentMessageTableViewCell: UITableViewCell {
label.textColor = UIColor.labelTextColor2
label.backgroundColor = UIColor.warnColor.withAlphaComponent(0.08)
label.textAlignment = .left
label.text = "核对中"
label.text = "已提交"
label.layer.cornerRadius = kCornerRadius3
label.masksToBounds = true
return label
......@@ -228,14 +228,14 @@ class YHDocumentMessageTableViewCell: UITableViewCell {
editButton.isHidden = false
submitButton.isHidden = false
} else if status == 3 {
statusTxt = " 核对中 "
statusTxt = " 已提交 "
color = UIColor.warnColor
lookButton.isHidden = false
editButton.isHidden = true
submitButton.isHidden = true
bottomCenterLineView.isHidden = true
} else if status == 4 {
statusTxt = " 核对中 "
statusTxt = " 已提交 "
color = UIColor.warnColor
lookButton.isHidden = false
editButton.isHidden = true
......
......@@ -43,6 +43,9 @@ class YHPreviewInfoCertificatePictureItemView: UIView {
lable.contentMode = .scaleAspectFit
lable.layer.cornerRadius = kCornerRadius6
lable.clipsToBounds = true
lable.isUserInteractionEnabled = true
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(frontImagTapped))
lable.addGestureRecognizer(tapGesture)
return lable
}()
......@@ -53,6 +56,9 @@ class YHPreviewInfoCertificatePictureItemView: UIView {
lable.contentMode = .scaleAspectFit
lable.layer.cornerRadius = kCornerRadius6
lable.clipsToBounds = true
lable.isUserInteractionEnabled = true
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(backImagTapped))
lable.addGestureRecognizer(tapGesture)
return lable
}()
......@@ -142,6 +148,18 @@ extension YHPreviewInfoCertificatePictureItemView {
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