Commit 71e2e002 authored by Steven杜宇's avatar Steven杜宇

// 我的方案

parent 83fee0d3
...@@ -47,9 +47,16 @@ class YHImproveSchemeTemplateListCell: UITableViewCell { ...@@ -47,9 +47,16 @@ class YHImproveSchemeTemplateListCell: UITableViewCell {
@objc func didBtnClicked() { @objc func didBtnClicked() {
if !model.url.isEmpty { if !model.url.isEmpty {
let viewModel = YHBaseViewModel() let viewModel = YHBaseViewModel()
if model.url.contains("pub.galaxy-immi.com") { // 资源文件
viewModel.getRealUsefulUrl(model.url) { success in viewModel.getRealUsefulUrl(model.url) { success in
self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName:"预览") self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName:"预览")
} }
} else { // web
let vc = YHH5WebViewVC()
vc.url = model.url
vc.isFullScreenFlag = false
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