Bläddra i källkod

登录流程处理--未完成

hexiaojie 5 dagar sedan
förälder
incheckning
a6faa98418

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Login/UI_LoginInputUI.cs

@@ -13,6 +13,7 @@ namespace UI.Login
         public GButton m_btnSure;
         public GComboBox m_boxChooseCanal;
         public UI_ComAccountInputBox m_comAccount;
+        public GButton m_btnSkipUpInfo;
         public GButton m_btnRegister;
         public const string URL = "ui://myoktu7pq08xc";
         public const string PACKAGE_NAME = "Login";
@@ -67,6 +68,7 @@ namespace UI.Login
             m_btnSure = (GButton)comp.GetChild("btnSure");
             m_boxChooseCanal = (GComboBox)comp.GetChild("boxChooseCanal");
             m_comAccount = (UI_ComAccountInputBox)UI_ComAccountInputBox.Create(comp.GetChild("comAccount"));
+            m_btnSkipUpInfo = (GButton)comp.GetChild("btnSkipUpInfo");
             m_btnRegister = (GButton)comp.GetChild("btnRegister");
         }
         public void Dispose(bool disposeTarget = false)
@@ -78,6 +80,7 @@ namespace UI.Login
             m_boxChooseCanal = null;
             m_comAccount.Dispose();
             m_comAccount = null;
+            m_btnSkipUpInfo = null;
             m_btnRegister = null;
             if(disposeTarget && target != null)
             {

+ 9 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Login/UI_RegisterUI.cs

@@ -19,6 +19,9 @@ namespace UI.Login
         public GLoader m_loaEventa;
         public GLoader m_loaEventb;
         public GLoader m_loaEventc;
+        public GTextInput m_inputPhone;
+        public GButton m_btnSendCode;
+        public GTextInput m_inputCode;
         public const string URL = "ui://myoktu7pq08xn";
         public const string PACKAGE_NAME = "Login";
         public const string RES_NAME = "RegisterUI";
@@ -78,6 +81,9 @@ namespace UI.Login
             m_loaEventa = (GLoader)comp.GetChild("loaEventa");
             m_loaEventb = (GLoader)comp.GetChild("loaEventb");
             m_loaEventc = (GLoader)comp.GetChild("loaEventc");
+            m_inputPhone = (GTextInput)comp.GetChild("inputPhone");
+            m_btnSendCode = (GButton)comp.GetChild("btnSendCode");
+            m_inputCode = (GTextInput)comp.GetChild("inputCode");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -93,6 +99,9 @@ namespace UI.Login
             m_loaEventa = null;
             m_loaEventb = null;
             m_loaEventc = null;
+            m_inputPhone = null;
+            m_btnSendCode = null;
+            m_inputCode = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Login/UI_ZhaoHuiPasswordUI.cs

@@ -13,6 +13,8 @@ namespace UI.Login
         public GTextInput m_txtPasword;
         public GTextField m_txtAccountShow;
         public GTextInput m_txtPaswrod2;
+        public GTextInput m_txtCode;
+        public GButton m_btnSendCode;
         public GButton m_btnSubmit;
         public const string URL = "ui://myoktu7pk5ej69";
         public const string PACKAGE_NAME = "Login";
@@ -67,6 +69,8 @@ namespace UI.Login
             m_txtPasword = (GTextInput)comp.GetChild("txtPasword");
             m_txtAccountShow = (GTextField)comp.GetChild("txtAccountShow");
             m_txtPaswrod2 = (GTextInput)comp.GetChild("txtPaswrod2");
+            m_txtCode = (GTextInput)comp.GetChild("txtCode");
+            m_btnSendCode = (GButton)comp.GetChild("btnSendCode");
             m_btnSubmit = (GButton)comp.GetChild("btnSubmit");
         }
         public void Dispose(bool disposeTarget = false)
@@ -77,6 +81,8 @@ namespace UI.Login
             m_txtPasword = null;
             m_txtAccountShow = null;
             m_txtPaswrod2 = null;
+            m_txtCode = null;
+            m_btnSendCode = null;
             m_btnSubmit = null;
             if(disposeTarget && target != null)
             {

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/LoginInputView.cs

@@ -36,6 +36,7 @@ namespace GFGGame
             _ui.m_btnSure.onClick.Add(OnClickBtnSure);
             _ui.m_btnCancel.onClick.Add(OnClickBtnCancel);
             _ui.m_btnRegister.onClick.Add(OnClickBtnRegister);
+            _ui.m_btnSkipUpInfo.onClick.Add(OnClickBtnOpenZhAccount);
 
             _ui.m_comAccount.m_selBtin.onClick.Add(OnClickOpenAccountListBtn);
             _ui.m_comAccount.m_txtAccount.restrict = "[0-9A-Za-z_]";
@@ -92,6 +93,16 @@ namespace GFGGame
             EventAgent.RemoveEventListener(ConstMessage.LOGIN_FAIL, OnLoginFail);
         }
 
+        private void OnClickBtnOpenZhAccount()
+        {
+            ViewManager.Show<ZhaoHuiAccountView>();
+        }
+
+        private void OnClickBtnOpenZhUpPassword(string account)
+        {
+            ViewManager.Show<ZhaoHuiPasswordView>(account);
+        }
+
         private void OnClickBtnSure()
         {
             var account = _ui.m_comAccount.m_txtAccount.text;

+ 56 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/ZhaoHuiAccountView.cs

@@ -0,0 +1,56 @@
+using UI.Login;
+using FairyGUI;
+using UnityEngine;
+using System.ComponentModel;
+using System;
+using System.Collections.Generic;
+
+namespace GFGGame
+{
+    public class ZhaoHuiAccountView : BaseWindow
+    {
+        private UI_ZhaoHuiAccountUI _ui;
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_ZhaoHuiAccountUI.PACKAGE_NAME;
+            _ui = UI_ZhaoHuiAccountUI.Create();
+            this.viewCom = _ui.target;
+            this.viewCom.Center();
+            this.modal = true;
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+            //
+        }
+
+        protected override void OnHide()
+        {
+            base.OnHide();
+        }
+
+        protected override void AddEventListener()
+        {
+            base.AddEventListener();
+        }
+
+        protected override void RemoveEventListener()
+        {
+            base.RemoveEventListener();
+        }
+    }
+}

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/ZhaoHuiAccountView.cs.meta

@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: c90b54f22dfd4114a67f03fdb2b4ec69
+timeCreated: 1760974293

+ 56 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/ZhaoHuiPasswordView.cs

@@ -0,0 +1,56 @@
+using UI.Login;
+using FairyGUI;
+using UnityEngine;
+using System.ComponentModel;
+using System;
+using System.Collections.Generic;
+
+namespace GFGGame
+{
+    public class ZhaoHuiPasswordView : BaseWindow
+    {
+        private UI_ZhaoHuiPasswordUI _ui;
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_ZhaoHuiPasswordUI.PACKAGE_NAME;
+            _ui = UI_ZhaoHuiPasswordUI.Create();
+            this.viewCom = _ui.target;
+            this.viewCom.Center();
+            this.modal = true;
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+            //
+        }
+
+        protected override void OnHide()
+        {
+            base.OnHide();
+        }
+
+        protected override void AddEventListener()
+        {
+            base.AddEventListener();
+        }
+
+        protected override void RemoveEventListener()
+        {
+            base.RemoveEventListener();
+        }
+    }
+}

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/ZhaoHuiPasswordView.cs.meta

@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 211594f56dc647d8a44edaab939abe47
+timeCreated: 1760974305

BIN
GameClient/Assets/ResIn/UI/Login/Login_fui.bytes