空邮件的表现
This commit is contained in:
parent
f18e16103c
commit
4acb1271f2
@ -24,7 +24,7 @@ function SelectOtherBtnUI:onLoadRootComplete()
|
||||
local redPoint, isAdRedPoint = DataManager.MailData:getRedPoint()
|
||||
if redPoint 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
|
||||
self.uiMap["select_other_btn_ui.bg.mail_btn"]:addRedPoint(124, 35, 0.8)
|
||||
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.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))
|
||||
|
||||
self.emptyBg = uiMap["mail_ui.bg.empty"]
|
||||
end
|
||||
|
||||
function MailUI:_addListeners()
|
||||
@ -90,6 +92,11 @@ function MailUI:refreshScrollRect()
|
||||
if self.needRefills then
|
||||
self.scrollRect:clearCells()
|
||||
self.scrollRect:refillCells(#self.mailList)
|
||||
if #self.mailList > 0 then
|
||||
self.emptyBg:setVisible(false)
|
||||
else
|
||||
self.emptyBg:setVisible(true)
|
||||
end
|
||||
else
|
||||
self.scrollRect:updateAllCell()
|
||||
end
|
||||
@ -108,6 +115,12 @@ function MailUI:refreshScrollRect()
|
||||
end)
|
||||
self.scrollRect:clearCells()
|
||||
self.scrollRect:refillCells(#self.mailList)
|
||||
|
||||
if #self.mailList > 0 then
|
||||
self.emptyBg:setVisible(false)
|
||||
else
|
||||
self.emptyBg:setVisible(true)
|
||||
end
|
||||
self.needRefills = false
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user