空邮件的表现
This commit is contained in:
parent
f18e16103c
commit
4acb1271f2
@ -24,7 +24,7 @@ function SelectOtherBtnUI:onLoadRootComplete()
|
|||||||
local redPoint, isAdRedPoint = DataManager.MailData:getRedPoint()
|
local redPoint, isAdRedPoint = DataManager.MailData:getRedPoint()
|
||||||
if redPoint then
|
if redPoint then
|
||||||
if isAdRedPoint then
|
if isAdRedPoint then
|
||||||
self.uiMap["select_other_btn_ui.bg.mail_btn"]:addRedPoint(124, 35, 0.8, "common_ad_3", nil, true)
|
self.uiMap["select_other_btn_ui.bg.mail_btn"]:addRedPoint(124, 35, 1, "common_ad_3", nil, true)
|
||||||
else
|
else
|
||||||
self.uiMap["select_other_btn_ui.bg.mail_btn"]:addRedPoint(124, 35, 0.8)
|
self.uiMap["select_other_btn_ui.bg.mail_btn"]:addRedPoint(124, 35, 0.8)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -68,6 +68,8 @@ function MailUI:_display()
|
|||||||
uiMap["mail_ui.bg.title_bg.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.MAIL_TITLE))
|
uiMap["mail_ui.bg.title_bg.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.MAIL_TITLE))
|
||||||
uiMap["mail_ui.bg.btn_delect.btn_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_DELETE_ALL_READ_MAIL))
|
uiMap["mail_ui.bg.btn_delect.btn_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_DELETE_ALL_READ_MAIL))
|
||||||
uiMap["mail_ui.bg.btn_claimed.btn_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM_ALL))
|
uiMap["mail_ui.bg.btn_claimed.btn_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM_ALL))
|
||||||
|
|
||||||
|
self.emptyBg = uiMap["mail_ui.bg.empty"]
|
||||||
end
|
end
|
||||||
|
|
||||||
function MailUI:_addListeners()
|
function MailUI:_addListeners()
|
||||||
@ -90,6 +92,11 @@ function MailUI:refreshScrollRect()
|
|||||||
if self.needRefills then
|
if self.needRefills then
|
||||||
self.scrollRect:clearCells()
|
self.scrollRect:clearCells()
|
||||||
self.scrollRect:refillCells(#self.mailList)
|
self.scrollRect:refillCells(#self.mailList)
|
||||||
|
if #self.mailList > 0 then
|
||||||
|
self.emptyBg:setVisible(false)
|
||||||
|
else
|
||||||
|
self.emptyBg:setVisible(true)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self.scrollRect:updateAllCell()
|
self.scrollRect:updateAllCell()
|
||||||
end
|
end
|
||||||
@ -108,6 +115,12 @@ function MailUI:refreshScrollRect()
|
|||||||
end)
|
end)
|
||||||
self.scrollRect:clearCells()
|
self.scrollRect:clearCells()
|
||||||
self.scrollRect:refillCells(#self.mailList)
|
self.scrollRect:refillCells(#self.mailList)
|
||||||
|
|
||||||
|
if #self.mailList > 0 then
|
||||||
|
self.emptyBg:setVisible(false)
|
||||||
|
else
|
||||||
|
self.emptyBg:setVisible(true)
|
||||||
|
end
|
||||||
self.needRefills = false
|
self.needRefills = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user