Commit 73104b75 authored by DavidHuang's avatar DavidHuang

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

parents 5d15a40d a8654d32
...@@ -80,7 +80,7 @@ extension YHInvitationWithGiftsViewController: UITableViewDelegate, UITableViewD ...@@ -80,7 +80,7 @@ extension YHInvitationWithGiftsViewController: UITableViewDelegate, UITableViewD
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.row == 0 { if indexPath.row == 0 {
return 209 return KScreenWidth / 1.82
} else if indexPath.row == 1 { } else if indexPath.row == 1 {
if self.viewModel.recordModel.list.count == 0 { if self.viewModel.recordModel.list.count == 0 {
return 345 return 345
......
...@@ -27,6 +27,10 @@ class YHWorkExperienceViewController: YHBaseViewController { ...@@ -27,6 +27,10 @@ class YHWorkExperienceViewController: YHBaseViewController {
let view = YHFileRenameInputView.inputView(defalutText: "请输入名称") let view = YHFileRenameInputView.inputView(defalutText: "请输入名称")
return view return view
}() }()
lazy var previewFileTool:YHFilePreviewTool = {
let tool = YHFilePreviewTool(targetVC: self)
return tool
}()
lazy var blackMaskView: UIView = { lazy var blackMaskView: UIView = {
let view = UIView(frame:UIScreen.main.bounds) let view = UIView(frame:UIScreen.main.bounds)
view.backgroundColor = UIColor(hex: 0x0F1214, alpha: 0.5) view.backgroundColor = UIColor(hex: 0x0F1214, alpha: 0.5)
...@@ -612,9 +616,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -612,9 +616,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
} }
if editType == .preview { if editType == .preview {
if model.fileUrl.isEmpty == false { if model.fileUrl.isEmpty == false {
let vc = YHImageViewController() self.viewModel.getPublicImageUrl(model.fileUrl) { success, error in
vc.imgString = model.fileUrl if let success = success {
UIViewController.current?.navigationController?.pushViewController(vc) self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName: model.fileName)
}
}
} }
} }
...@@ -624,9 +630,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -624,9 +630,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}.show() }.show()
} else { } else {
if model.fileUrl.isEmpty == false { if model.fileUrl.isEmpty == false {
let vc = YHImageViewController() self.viewModel.getPublicImageUrl(model.fileUrl) { success, error in
vc.imgString = model.fileUrl if let success = success {
UIViewController.current?.navigationController?.pushViewController(vc) self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName:model.fileName)
}
}
} }
} }
} }
...@@ -740,9 +748,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -740,9 +748,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
} }
if editType == .preview { if editType == .preview {
if model.fileUrl.isEmpty == false { if model.fileUrl.isEmpty == false {
let vc = YHImageViewController() self.viewModel.getPublicImageUrl(model.fileUrl) { success, error in
vc.imgString = model.fileUrl if let success = success {
UIViewController.current?.navigationController?.pushViewController(vc) self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName:model.fileName)
}
}
} }
} }
if editType == .delete { if editType == .delete {
...@@ -750,15 +760,14 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -750,15 +760,14 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
} }
}.show() }.show()
} else { } else {
// let vc = YHImageViewController()
// vc.imgString = model.fileUrl
// UIViewController.current?.navigationController?.pushViewController(vc)
if model.fileUrl.isEmpty == false { if model.fileUrl.isEmpty == false {
let vc = YHImageViewController() self.viewModel.getPublicImageUrl(model.fileUrl) { success, error in
vc.imgString = model.fileUrl if let success = success {
UIViewController.current?.navigationController?.pushViewController(vc) self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName:model.fileName)
}
}
} }
} }
} }
......
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