--物品剩余时间
function itemInfo.getLeftTime(item)
local ret = ""
if item:getBindValue() == 1 then
local sLeftTime = item:getLeftTime()
if sLeftTime == "" then sLeftTime = "已过期" end
ret = "\\"..hintHelper.text("剩余时间:"..sLeftTime, const.clred)
elseif item:getBindValue() == 2 then
local sLeftTime = item:getLeftTime()
if sLeftTime ~= "" then
ret = "\\"..hintHelper.text("剩余时间:"..sLeftTime, const.clred)
end
end
return ret
end