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

// 我的方案

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