封号删除账号
This commit is contained in:
parent
d5afdffecf
commit
0ebb735e8f
@ -4,8 +4,8 @@ function AccountManager:showBindUI()
|
|||||||
UIManager:showUI("app/ui/game_setting/account_binding_ui")
|
UIManager:showUI("app/ui/game_setting/account_binding_ui")
|
||||||
end
|
end
|
||||||
|
|
||||||
function AccountManager:showDeleteUI()
|
function AccountManager:showDeleteUI(hideCloseBtn)
|
||||||
return UIManager:showUI("app/ui/game_setting/account_delete_ui")
|
return UIManager:showUI("app/ui/game_setting/account_delete_ui", {hideCloseBtn = hideCloseBtn})
|
||||||
end
|
end
|
||||||
|
|
||||||
function AccountManager:getIsBinded()
|
function AccountManager:getIsBinded()
|
||||||
|
|||||||
@ -193,7 +193,7 @@ function LoginManager:loginFinish(data)
|
|||||||
end,
|
end,
|
||||||
cancelText = I18N:getGlobalText(I18N.GlobalConst.SEIZED_DESC_3),
|
cancelText = I18N:getGlobalText(I18N.GlobalConst.SEIZED_DESC_3),
|
||||||
cancelFunc = function()
|
cancelFunc = function()
|
||||||
ModuleManager.AccountManager:deleteAccount()
|
ModuleManager.AccountManager:showDeleteUI(true)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
GFunc.showMessageBox(params)
|
GFunc.showMessageBox(params)
|
||||||
|
|||||||
@ -18,8 +18,9 @@ function AccountDeleteUI:onClose()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function AccountDeleteUI:ctor()
|
function AccountDeleteUI:ctor(params)
|
||||||
self.besureTxStr = I18N:getGlobalText(I18N.GlobalConst.BESURE_DELETE_ACCOUNT_DESC)
|
self.besureTxStr = I18N:getGlobalText(I18N.GlobalConst.BESURE_DELETE_ACCOUNT_DESC)
|
||||||
|
self.hideCloseBtn = params and params.hideCloseBtn
|
||||||
end
|
end
|
||||||
|
|
||||||
function AccountDeleteUI:onLoadRootComplete()
|
function AccountDeleteUI:onLoadRootComplete()
|
||||||
@ -36,9 +37,11 @@ function AccountDeleteUI:onLoadRootComplete()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
uiMap["account_delete_ui.title_bg_img.close_btn"]:addClickListener(function()
|
local closeBtn = uiMap["account_delete_ui.title_bg_img.close_btn"]
|
||||||
|
closeBtn:addClickListener(function()
|
||||||
self:closeUI()
|
self:closeUI()
|
||||||
end)
|
end)
|
||||||
|
closeBtn:setActive(not self.hideCloseBtn)
|
||||||
|
|
||||||
self:_display()
|
self:_display()
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user