Commit e746e00c authored by DavidHuang's avatar DavidHuang

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

parents e5e7d2ac 28955bfa
...@@ -141,7 +141,7 @@ extension YHSelectViewController { ...@@ -141,7 +141,7 @@ extension YHSelectViewController {
tableView.dataSource = self tableView.dataSource = self
tableView.delegate = self tableView.delegate = self
tableView.tableHeaderView = sectionView tableView.tableHeaderView = sectionView
tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenHeight/3)) tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: 250))
tableView.register(cellWithClass: YHSelectLookTableViewCell.self) tableView.register(cellWithClass: YHSelectLookTableViewCell.self)
return tableView return tableView
}() }()
...@@ -169,7 +169,7 @@ extension YHSelectViewController { ...@@ -169,7 +169,7 @@ extension YHSelectViewController {
} }
if #available(iOS 15.0, *) { if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0; tableView.sectionHeaderTopPadding = 0
} }
} }
} }
......
...@@ -149,7 +149,7 @@ extension YHOrderDetailViewController: UITableViewDelegate, UITableViewDataSourc ...@@ -149,7 +149,7 @@ extension YHOrderDetailViewController: UITableViewDelegate, UITableViewDataSourc
} }
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 295 return 305
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
...@@ -279,7 +279,7 @@ class YHOrderDetailTableViewCell: UITableViewCell { ...@@ -279,7 +279,7 @@ class YHOrderDetailTableViewCell: UITableViewCell {
make.top.equalTo(54.5) make.top.equalTo(54.5)
make.left.equalTo(16) make.left.equalTo(16)
make.right.equalTo(-16) make.right.equalTo(-16)
make.height.equalTo(1) make.height.equalTo(0.5)
} }
orderTitleLabel = { orderTitleLabel = {
let label = UILabel() let label = UILabel()
......
...@@ -27,6 +27,7 @@ class YHMySignatureDetailModel: SmartCodable { ...@@ -27,6 +27,7 @@ class YHMySignatureDetailModel: SmartCodable {
var docType: Int = 0 var docType: Int = 0
var signedDocument: [YHMySignedDocumentModel] = [] var signedDocument: [YHMySignedDocumentModel] = []
var templateUrl: String = "" var templateUrl: String = ""
var commonFile: String = ""
required init() { required init() {
} }
} }
......
...@@ -347,21 +347,10 @@ extension YHGCMySignatureDetailViewController: UITableViewDelegate, UITableViewD ...@@ -347,21 +347,10 @@ extension YHGCMySignatureDetailViewController: UITableViewDelegate, UITableViewD
if self.viewModel.mainModel?.docStatus == 1002 { if self.viewModel.mainModel?.docStatus == 1002 {
YHCommonAlertView.show("", "文书编写中,请稍候查看", "", "我知道了") { YHCommonAlertView.show("", "文书编写中,请稍候查看", "", "我知道了") {
}
} else if self.viewModel.mainModel?.docStatus == 1007 {
if self.viewModel.mainModel?.signFile.count != 0 {
let url = URL(string: self.viewModel.mainModel?.signFile) ?? URL(fileURLWithPath: "")
let safariViewController = SFSafariViewController(url: url)
safariViewController.dismissButtonStyle = .close
safariViewController.delegate = self
safariViewController.modalPresentationStyle = .fullScreen
present(safariViewController, animated: true, completion: nil)
} else {
} }
} else { } else {
if self.viewModel.mainModel?.signFile.count != 0 { if self.viewModel.mainModel?.commonFile.count != 0 {
let url = URL(string: self.viewModel.mainModel?.signFileOrigin) ?? URL(fileURLWithPath: "") let url = URL(string: self.viewModel.mainModel?.commonFile) ?? URL(fileURLWithPath: "")
let safariViewController = SFSafariViewController(url: url) let safariViewController = SFSafariViewController(url: url)
safariViewController.dismissButtonStyle = .close safariViewController.dismissButtonStyle = .close
safariViewController.delegate = self safariViewController.delegate = self
......
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