空邮件的表现

This commit is contained in:
chenxi 2023-05-22 12:00:39 +08:00
parent f18e16103c
commit 4acb1271f2
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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