Branch_DNA
zhangjiannan 2025-04-02 18:40:16 +08:00
parent f0d1596b18
commit a5c665c713
1 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ function SettingInfo:InitComponent(gameObject)
this.btnCustomerService = Util.GetGameObject(gameObject, "btn/customerService")--客服中心
this.btnRelation = Util.GetGameObject(gameObject, "btn/relation")--账号关联
this.btnAccountCancellation = Util.GetGameObject(gameObject, "btn/accountCancellation")--账号注销
-- this.submit = Util.GetGameObject(gameObject, "btn/submit")--上报战斗日志
this.submit = Util.GetGameObject(gameObject, "btn/discord")--社交软件
this.bind = Util.GetGameObject(gameObject, "btn/bind")--绑定
this.community = Util.GetGameObject(gameObject, "btn/community")--社区
@ -116,19 +116,19 @@ function SettingInfo:BindEvent()
end)
--账户关联
Util.AddClick(this.btnRelation,function()
UIManager.OpenPanel(UIName.GeneralPopup, GENERAL_POPUP_TYPE.Binding)
if AppConst.isSDKLogin then
SDKMgr:Relation("")
end
end)
--账号注销
Util.AddClick(this.btnAccountCancellation,function()
UIManager.OpenPanel(UIName.GeneralPopup, GENERAL_POPUP_TYPE.Reconfirm, GetLanguageStrById(50238), GetLanguageStrById(50246), function ()
if AppConst.isSDKLogin then
SDKMgr:Cancellation()
end
end)
if AppConst.isSDKLogin then
SDKMgr:Cancellation()
end
end)
Util.AddOnceClick(this.submit, function()
UnityEngine.Application.OpenURL("https://discord.gg/nKzCEgkzZp")
end)
-- Util.AddOnceClick(this.submit, function()
-- BattleRecordManager.SubmitBattleRecord()
-- end)
--兑换码
Util.AddClick(this.btnCdKey, function()