Commit a5f83945 authored by pete谢兆麟's avatar pete谢兆麟

小程序体验版联调

parent 3025c2f2
...@@ -104,6 +104,7 @@ class YHDocumentToActionTableViewCell: UITableViewCell { ...@@ -104,6 +104,7 @@ class YHDocumentToActionTableViewCell: UITableViewCell {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setBackgroundImage(UIImage(named: "share_mini_program"), for: .normal) button.setBackgroundImage(UIImage(named: "share_mini_program"), for: .normal)
button.addTarget(self, action: #selector(shareButtonClick), for: .touchUpInside) button.addTarget(self, action: #selector(shareButtonClick), for: .touchUpInside)
button.isHidden = true
return button return button
}() }()
centerView.addSubview(shareButton) centerView.addSubview(shareButton)
...@@ -250,6 +251,9 @@ class YHDocumentToActionTableViewCell: UITableViewCell { ...@@ -250,6 +251,9 @@ class YHDocumentToActionTableViewCell: UITableViewCell {
} }
fileImageView.image = UIImage(named: iconImgName) fileImageView.image = UIImage(named: iconImgName)
fileNameLabel.text = dataSource.writing_document.doc_sign.doc_type_name fileNameLabel.text = dataSource.writing_document.doc_sign.doc_type_name
if dataSource.writing_document.doc_sign.doc_type == 7 || dataSource.writing_document.doc_sign.doc_type == 8 {
shareButton.isHidden = false
}
} }
@objc func editButtonClick() { @objc func editButtonClick() {
......
...@@ -116,6 +116,7 @@ class YHSignatureToActionTableViewCell: UITableViewCell { ...@@ -116,6 +116,7 @@ class YHSignatureToActionTableViewCell: UITableViewCell {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setBackgroundImage(UIImage(named: "share_mini_program"), for: .normal) button.setBackgroundImage(UIImage(named: "share_mini_program"), for: .normal)
button.addTarget(self, action: #selector(shareButtonClick), for: .touchUpInside) button.addTarget(self, action: #selector(shareButtonClick), for: .touchUpInside)
button.isHidden = true
return button return button
}() }()
centerView.addSubview(shareButton) centerView.addSubview(shareButton)
...@@ -262,6 +263,9 @@ class YHSignatureToActionTableViewCell: UITableViewCell { ...@@ -262,6 +263,9 @@ class YHSignatureToActionTableViewCell: UITableViewCell {
} }
fileImageView.image = UIImage(named: iconImgName) fileImageView.image = UIImage(named: iconImgName)
fileNameLabel.text = dataSource.doc_type_name fileNameLabel.text = dataSource.doc_type_name
if dataSource.doc_type == 7 || dataSource.doc_type == 8 {
shareButton.isHidden = false
}
} }
@objc func editButtonClick() { @objc func editButtonClick() {
......
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