mm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user