Branch_oumei
zhangjiannan 2025-09-12 12:49:00 +08:00
parent 2c6e3a9835
commit 59604eeae8
1 changed files with 27 additions and 20 deletions

View File

@ -12,7 +12,8 @@ local lastServerIndex = "lastServerIndex"
local defaultOpenIdkey = GetLanguageStrById(11118) local defaultOpenIdkey = GetLanguageStrById(11118)
local defaultOpenIdPw = "" local defaultOpenIdPw = ""
local LoginRoot_Url = VersionManager:GetVersionInfo("serverUrl") local LoginRoot_Url = VersionManager:GetVersionInfo("serverUrl")
local LoginRoot_SubChannel = GetChannelConfig().Button_PlayerSet_Exchange and VersionManager:GetVersionInfo("subChannel") or "3000" local LoginRoot_SubChannel = GetChannelConfig().Button_PlayerSet_Exchange and VersionManager:GetVersionInfo("subChannel") or
"3000"
local LoginRoot_Channel = VersionManager:GetVersionInfo("channel") local LoginRoot_Channel = VersionManager:GetVersionInfo("channel")
local LoginRoot_Version = VersionManager:GetVersionInfo("version") local LoginRoot_Version = VersionManager:GetVersionInfo("version")
local LoginRoot_PackageVersion = VersionManager:GetVersionInfo("packageVersion") local LoginRoot_PackageVersion = VersionManager:GetVersionInfo("packageVersion")
@ -52,7 +53,8 @@ function this:InitComponent()
this.LoginPanel_Btn2 = Util.GetGameObject(this.loginPart, "btns/LoginPanel_Btn2") --个人信息 this.LoginPanel_Btn2 = Util.GetGameObject(this.loginPart, "btns/LoginPanel_Btn2") --个人信息
this.btnLogout = Util.GetGameObject(this.loginPart, "btns/btnLogout") --登出 this.btnLogout = Util.GetGameObject(this.loginPart, "btns/btnLogout") --登出
this.btnCustomerService2 = Util.GetGameObject(this.loginPart, "btns/btnCustomerService2") --客服(SDK) this.btnCustomerService2 = Util.GetGameObject(this.loginPart, "btns/btnCustomerService2") --客服(SDK)
this.btnAiHelp = Util.GetGameObject(this.loginPart, "btns/btnAiHelp") --aihelp
this.btnAiHelp:SetActive(GetChannelConfig().Button_PlayerSet_Exchange)
---selectServerPart ---selectServerPart
this.serverSelectPart = Util.GetGameObject(this.loginPart, "serverSelect") this.serverSelectPart = Util.GetGameObject(this.loginPart, "serverSelect")
this.serverImage = Util.GetGameObject(this.serverSelectPart, "Image"):GetComponent("Image") this.serverImage = Util.GetGameObject(this.serverSelectPart, "Image"):GetComponent("Image")
@ -99,7 +101,12 @@ function this:BindEvent()
fun() fun()
end end
end) end)
--客服中心
Util.AddClick(this.btnAiHelp, function()
if AppConst.isSDKLogin then
SDKMgr:CustomerService()
end
end)
Util.AddClick(this.btnLogin, this.OnLoginClick) Util.AddClick(this.btnLogin, this.OnLoginClick)
Util.AddClick(this.btnUser, function() Util.AddClick(this.btnUser, function()
local user = PlayerPrefs.GetString(openIdkey, defaultOpenIdkey) local user = PlayerPrefs.GetString(openIdkey, defaultOpenIdkey)