Commit a1fe2b7c authored by DavidHuang's avatar DavidHuang

方法位置 移动

parent 0f15b34f
......@@ -40,6 +40,21 @@ extension YHJsApi {
}
}
// 31、H5调用原生方法预览文件
@objc func goPreviewFile(_ url: String) {
DispatchQueue.main.async {
let viewModel = YHBaseViewModel()
viewModel.getPublicImageUrl(url) { success, error in
YHHUD.hide()
if let success = success {
let tool = YHFilePreviewTool(targetVC: UIViewController.current)
tool.openXLSXRemoteFile(urlString: success, fileName: "")
}
}
}
}
// 30、跳转到APP底部的服务Tab-再推出服务进度页面
@objc func goServiceProgressPage(_ tag : Any) {
......@@ -710,17 +725,5 @@ extension YHJsApi {
}
}
@objc func goPreviewFile(_ url: String) {
DispatchQueue.main.async {
let viewModel = YHBaseViewModel()
viewModel.getPublicImageUrl(url) { success, error in
YHHUD.hide()
if let success = success {
let tool = YHFilePreviewTool(targetVC: UIViewController.current)
tool.openXLSXRemoteFile(urlString: success, 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