登录
This commit is contained in:
parent
78f0b9d91b
commit
57dc62ef4d
@ -80,7 +80,6 @@ BIReport.BATTLE_PASS_OPT_TYPE = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BIReport.ACCOUNT_OPT_TYPE = {
|
BIReport.ACCOUNT_OPT_TYPE = {
|
||||||
LOGIN_CLICK = "LoginClick",
|
|
||||||
LOGIN_FINISH = "LoginFinish",
|
LOGIN_FINISH = "LoginFinish",
|
||||||
LOGIN_FAILED = "LoginFailed",
|
LOGIN_FAILED = "LoginFailed",
|
||||||
BIND_CLICK = "BindClick",
|
BIND_CLICK = "BindClick",
|
||||||
@ -1052,17 +1051,6 @@ function BIReport:postBattlePassExpGet(getExp, lv, exp)
|
|||||||
BIReport:printArgsStr(EVENT_NAME_BATTLE_PASS_OPT, args)
|
BIReport:printArgsStr(EVENT_NAME_BATTLE_PASS_OPT, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 登录
|
|
||||||
-- 点击登录
|
|
||||||
function BIReport:postAccountLoginClick(loginType)
|
|
||||||
local args = {
|
|
||||||
login_type = loginType,
|
|
||||||
event_type = BIReport.ACCOUNT_OPT_TYPE.LOGIN_CLICK,
|
|
||||||
}
|
|
||||||
self:report(EVENT_NAME_ACCOUNT_OPT, args)
|
|
||||||
BIReport:printArgsStr(EVENT_NAME_ACCOUNT_OPT, args)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- 登录成功
|
-- 登录成功
|
||||||
function BIReport:postAccountLoginFinish(loginType)
|
function BIReport:postAccountLoginFinish(loginType)
|
||||||
local args = {
|
local args = {
|
||||||
|
|||||||
@ -51,35 +51,20 @@ function TestLoginUI:onLoadRootComplete()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- self:addEventListener(EventManager.CUSTOM_EVENT.LOGIN_REQ_SUCCESS, function()
|
|
||||||
-- self:preloadAndEnterMaincity()
|
|
||||||
-- end)
|
|
||||||
|
|
||||||
local accountId = LocalData:getAccountInfo().id or GConst.EMPTY_STRING
|
local accountId = LocalData:getAccountInfo().id or GConst.EMPTY_STRING
|
||||||
local copyTx = uiMap["test_login_ui.copy_account_tx"]
|
local copyTx = uiMap["test_login_ui.copy_account_tx"]
|
||||||
copyTx:setVisible(accountId ~= GConst.EMPTY_STRING)
|
copyTx:setVisible(accountId ~= GConst.EMPTY_STRING)
|
||||||
copyTx:addClickListener(function()
|
copyTx:addClickListener(function()
|
||||||
GFunc.copyStr(accountId)
|
GFunc.copyStr(accountId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- ModuleManager.LoginManager:addServerListCallback(function(serverList)
|
|
||||||
-- self:refreshServerList(serverList)
|
|
||||||
-- end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function TestLoginUI:loginGame()
|
function TestLoginUI:loginGame()
|
||||||
local uiMap = self.root:genAllChildren()
|
|
||||||
local name = uiMap["test_login_ui.login_node.input_field"]:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_INPUT_FIELD).text
|
|
||||||
if name == "" then
|
|
||||||
name = nil
|
|
||||||
end
|
|
||||||
-- ModuleManager.LoginManager:saveAuthArgs(name)
|
|
||||||
-- ModuleManager.LoginManager:initSocket()
|
|
||||||
ModuleManager.LoginManager:loginGame()
|
|
||||||
|
|
||||||
-- first 可以卸载了, 此项目只会启动时检查一次热更,之后不会再次检查
|
-- first 可以卸载了, 此项目只会启动时检查一次热更,之后不会再次检查
|
||||||
CS.BF.BFMain.Instance.LuaMgr:OnGameInitSucc()
|
CS.BF.BFMain.Instance.LuaMgr:OnGameInitSucc()
|
||||||
LocalData:save()
|
LocalData:save()
|
||||||
|
|
||||||
|
self:preloadAndEnterMaincity()
|
||||||
end
|
end
|
||||||
|
|
||||||
function TestLoginUI:preloadAndEnterMaincity()
|
function TestLoginUI:preloadAndEnterMaincity()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user