This commit is contained in:
2020-08-07 07:27:09 +08:00
parent 113faa50ce
commit 0fd1912998
21 changed files with 578 additions and 56 deletions

View File

@@ -294,6 +294,21 @@ function TRPOrderDetail:initAttachmentCell(cell, data)
end
function TRPOrderDetail:onClickAttachment(cell, data)
local had, path = DBTextures.hadDownloaded(data.name)
if had then
CLUIUtl.showConfirm(
joinStr("附件已保存本地:", path),
false,
"打开",
function()
Application.OpenURL(joinStr("file://", path))
end,
"取消",
nil
)
else
MyUtl.toastW("附件未下载完成,暂时无法查看")
end
end
function TRPOrderDetail:showRecords()
@@ -493,7 +508,6 @@ function TRPOrderDetail:addAttachment(go)
end
end
function TRPOrderDetail:onGetImage(path)
if isNilOrEmpty(path) then
return