2024-07-12 14:23:06 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using TMPro;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
using UnityEngine.UIElements;
|
|
|
|
|
|
using Button = UnityEngine.UI.Button;
|
|
|
|
|
|
using Image = UnityEngine.UI.Image;
|
|
|
|
|
|
using Toggle = UnityEngine.UI.Toggle;
|
|
|
|
|
|
using ScrollView = PhxhSDK.PhxhScrollView;
|
|
|
|
|
|
using Framework;
|
2024-07-15 12:20:03 +08:00
|
|
|
|
using Gameplay.Net;
|
2024-07-15 16:08:28 +08:00
|
|
|
|
using NLDPB;
|
2024-07-12 14:23:06 +08:00
|
|
|
|
|
|
|
|
|
|
public class UI_StartGameInterfaceController : UIWindow
|
|
|
|
|
|
{
|
2024-07-15 12:20:03 +08:00
|
|
|
|
enum LoginType
|
|
|
|
|
|
{
|
|
|
|
|
|
Account,
|
|
|
|
|
|
PhoneCode
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#region UI_obj
|
|
|
|
|
|
//UI GameObj
|
|
|
|
|
|
///Auto Gen Start///
|
|
|
|
|
|
public Image Image_Bg;
|
2024-07-12 14:23:06 +08:00
|
|
|
|
public Image Image_BgDark;
|
|
|
|
|
|
public Button Button_StartGame;
|
|
|
|
|
|
public Image Image_LoginBg;
|
|
|
|
|
|
public Button Button_AccountLogin_1;
|
|
|
|
|
|
public Image Image_YellowLine_Account_1;
|
|
|
|
|
|
public Button Button_VerifyCodeLogin_1;
|
|
|
|
|
|
public Image Image_YellowLine_VerifyCode_1;
|
|
|
|
|
|
public TMP_InputField InputField_Account;
|
|
|
|
|
|
public Image Image_AccountIcon;
|
|
|
|
|
|
public TMP_InputField InputField_Password;
|
|
|
|
|
|
public Image Image_PasswordIcon;
|
|
|
|
|
|
public Toggle Toggle_RememberPassword;
|
|
|
|
|
|
public TMP_Text Text_RememberPassword;
|
|
|
|
|
|
public Toggle Toggle_Agreement_1;
|
|
|
|
|
|
public TMP_Text Text_Agreement_1;
|
|
|
|
|
|
public Button Button_UnLogin_1;
|
|
|
|
|
|
public Button Button_Login_1;
|
|
|
|
|
|
public TMP_InputField InputField_PhoneNumber;
|
|
|
|
|
|
public Image Image_PhoneIcon;
|
|
|
|
|
|
public TMP_InputField InputField_VerifyCode;
|
|
|
|
|
|
public Image Image_VerifyCodeIcon;
|
|
|
|
|
|
public Button Button_GetVerifyCode;
|
|
|
|
|
|
public Button Button_GetVerifyCodeCooling;
|
|
|
|
|
|
public Toggle Toggle_Agreement_2;
|
|
|
|
|
|
public TMP_Text Text_Agreement_2;
|
2024-07-15 12:20:03 +08:00
|
|
|
|
public Button Button_UnLogin_2;
|
|
|
|
|
|
public Button Button_Login_2;
|
2024-07-12 14:23:06 +08:00
|
|
|
|
public Image Image_UpdateBg;
|
|
|
|
|
|
public Button Button_Confirm;
|
|
|
|
|
|
public Button Button_Cancle;
|
|
|
|
|
|
public Image Image_BottomLine;
|
|
|
|
|
|
public Button Button_UserCenter;
|
|
|
|
|
|
public Button Button_Notice;
|
|
|
|
|
|
public TMP_Text Text_UID;
|
|
|
|
|
|
public TMP_Text Text_Version;
|
|
|
|
|
|
public Image Image_DarkSide;
|
2024-07-15 12:20:03 +08:00
|
|
|
|
|
|
|
|
|
|
public GameObject AccountLoginPanel;
|
|
|
|
|
|
public GameObject VerifyCodeLoginPanel;
|
|
|
|
|
|
///Auto Gen End///
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
LoginType loginType;
|
|
|
|
|
|
LoginData loginSaveData;
|
2024-07-15 16:08:28 +08:00
|
|
|
|
LoginData tempSaveData;
|
|
|
|
|
|
bool loginOK = false;
|
2024-07-15 12:20:03 +08:00
|
|
|
|
|
2024-07-12 14:23:06 +08:00
|
|
|
|
// deal with input data
|
|
|
|
|
|
public override void PreLoad(object data = null)
|
2024-07-15 12:20:03 +08:00
|
|
|
|
{
|
|
|
|
|
|
loginSaveData = StorageMgr.Instance.GetStorage<LoginData>("LoginData");
|
|
|
|
|
|
if (loginSaveData == null)
|
|
|
|
|
|
loginSaveData = new();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-12 14:23:06 +08:00
|
|
|
|
// Use this for initialization
|
|
|
|
|
|
public override void OnInit()
|
|
|
|
|
|
{
|
|
|
|
|
|
//bind UI GameObj
|
|
|
|
|
|
UI_StartGameInterfaceBinder.GetComponents(this);
|
2024-07-15 12:20:03 +08:00
|
|
|
|
AccountLoginPanel = FindObj("UI_LoginWindow/Image_LoginBg/LoginPanel/AccountLogin");
|
|
|
|
|
|
VerifyCodeLoginPanel = FindObj("UI_LoginWindow/Image_LoginBg/LoginPanel/VerifyCodeLogin");
|
|
|
|
|
|
|
|
|
|
|
|
BindButton(Button_AccountLogin_1, () => SetLoginType(LoginType.Account));
|
|
|
|
|
|
BindButton(Button_VerifyCodeLogin_1, () => SetLoginType(LoginType.PhoneCode));
|
|
|
|
|
|
BindButton(Button_Login_1, OnButtonLogin);
|
|
|
|
|
|
BindButton(Button_Login_2, OnButtonLogin);
|
|
|
|
|
|
BindButton(Button_UserCenter, OnUserCenterButton);
|
|
|
|
|
|
|
|
|
|
|
|
BindButton(Button_StartGame, OnStartGame);
|
|
|
|
|
|
|
|
|
|
|
|
Toggle_RememberPassword.onValueChanged.AddListener(OnRememberPassword);
|
|
|
|
|
|
Toggle_Agreement_1.onValueChanged.AddListener(OnAgreementAccept);
|
|
|
|
|
|
Toggle_Agreement_2.onValueChanged.AddListener(OnAgreementAccept);
|
|
|
|
|
|
|
2024-07-15 19:09:11 +08:00
|
|
|
|
InputField_Account.onValueChanged.AddListener(AccountEdit);
|
|
|
|
|
|
InputField_Password.onValueChanged.AddListener(PasswordEdit);
|
2024-07-15 12:20:03 +08:00
|
|
|
|
|
|
|
|
|
|
Text_Version.text = "version:" + Application.version;
|
|
|
|
|
|
Text_UID.gameObject.SetActive(false);
|
|
|
|
|
|
|
2024-07-15 16:08:28 +08:00
|
|
|
|
EventManager.Instance.Register(EventManager.EventName.LoginComplete,OnLoginOK);
|
|
|
|
|
|
|
2024-07-15 12:20:03 +08:00
|
|
|
|
if (loginSaveData.LoginByAccount && loginSaveData.rememberPassword)
|
|
|
|
|
|
{
|
|
|
|
|
|
DebugUtil.Log("<22><><EFBFBD><EFBFBD><EFBFBD>˺<EFBFBD><CBBA><EFBFBD><EFBFBD>룬<EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>¼");
|
2024-07-15 16:08:28 +08:00
|
|
|
|
LoginAction();
|
2024-07-15 12:20:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
if (loginSaveData.LoginByPhone)
|
|
|
|
|
|
{
|
|
|
|
|
|
SetLoginType(LoginType.PhoneCode);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
SetLoginType(LoginType.Account);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-07-12 14:23:06 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-15 12:20:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD>˺ŵ<CBBA>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="type"></param>
|
|
|
|
|
|
void SetLoginType(LoginType type)
|
|
|
|
|
|
{
|
|
|
|
|
|
loginType = type;
|
|
|
|
|
|
Button_StartGame.gameObject.SetActive(false);
|
|
|
|
|
|
switch (loginType)
|
|
|
|
|
|
{
|
|
|
|
|
|
case LoginType.Account://<2F>˺<EFBFBD><CBBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼
|
|
|
|
|
|
Image_LoginBg.gameObject.SetActive(true);
|
|
|
|
|
|
Image_UpdateBg.gameObject.SetActive(false);
|
|
|
|
|
|
Image_YellowLine_Account_1.gameObject.SetActive(true);
|
|
|
|
|
|
Image_YellowLine_VerifyCode_1.gameObject.SetActive(false);
|
|
|
|
|
|
|
|
|
|
|
|
Toggle_RememberPassword.isOn = loginSaveData.rememberPassword;
|
|
|
|
|
|
Toggle_Agreement_1.isOn = loginSaveData.agreement;
|
|
|
|
|
|
|
|
|
|
|
|
AccountLoginPanel.SetActive(true);
|
|
|
|
|
|
VerifyCodeLoginPanel.SetActive(false);
|
|
|
|
|
|
|
|
|
|
|
|
if (loginSaveData.account != default)
|
|
|
|
|
|
{
|
|
|
|
|
|
InputField_Account.text = loginSaveData.account;
|
|
|
|
|
|
}
|
|
|
|
|
|
if (loginSaveData.password != default && loginSaveData.rememberPassword)
|
|
|
|
|
|
{
|
|
|
|
|
|
InputField_Password.text = loginSaveData.password;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
InputField_Password.text = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case LoginType.PhoneCode://<2F>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4><EFBFBD><EFBFBD>¼
|
|
|
|
|
|
Image_LoginBg.gameObject.SetActive(true);
|
|
|
|
|
|
Image_UpdateBg.gameObject.SetActive(false);
|
|
|
|
|
|
Image_YellowLine_Account_1.gameObject.SetActive(false);
|
|
|
|
|
|
Image_YellowLine_VerifyCode_1.gameObject.SetActive(true);
|
|
|
|
|
|
|
|
|
|
|
|
Toggle_Agreement_2.isOn = loginSaveData.agreement;
|
|
|
|
|
|
|
|
|
|
|
|
AccountLoginPanel.SetActive(false);
|
|
|
|
|
|
VerifyCodeLoginPanel.SetActive(true);
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
DebugUtil.LogError("SetLoginType error");
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CheckLoginButton();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void HideLoginPanel()
|
2024-07-12 14:23:06 +08:00
|
|
|
|
{
|
2024-07-15 12:20:03 +08:00
|
|
|
|
Image_LoginBg.gameObject.SetActive(false);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CheckLoginButton()
|
|
|
|
|
|
{
|
|
|
|
|
|
switch (loginType)
|
|
|
|
|
|
{
|
|
|
|
|
|
case LoginType.Account:
|
|
|
|
|
|
if(InputField_Account.text.Length > 0 && InputField_Password.text.Length > 0 && loginSaveData.agreement)
|
|
|
|
|
|
{
|
|
|
|
|
|
Button_Login_1.gameObject.SetActive(true);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
Button_Login_1.gameObject.SetActive(false);
|
|
|
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//invoke when open window
|
|
|
|
|
|
protected override void OnShowWindow(object data = null)
|
|
|
|
|
|
{
|
|
|
|
|
|
DebugUtil.Log("<22>°<EFBFBD><C2B0><EFBFBD>¼<EFBFBD><C2BC><EFBFBD>棡Ŀǰ<C4BF><C7B0>֧<EFBFBD>ֵ<EFBFBD>¼<EFBFBD><C2BC><EFBFBD>Է<EFBFBD><D4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n====<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><>: ====");
|
|
|
|
|
|
DebugUtil.Log("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϸǰ<CFB7><EFBFBD>DebugStart<72>ڵ<EFBFBD><DAB5><EFBFBD>CmpFakeStart<72><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ѡ<EEA3AC><D1A1><EFBFBD>ɰ<EFBFBD><C9B0><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>");
|
2024-07-12 14:23:06 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//invoke when reload window
|
|
|
|
|
|
protected override void OnReloadWindow(object data = null)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//invoke when close window
|
|
|
|
|
|
protected override void OnHideWindow()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//invoke when destroy
|
|
|
|
|
|
public override void OnRelease()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnRelease();
|
2024-07-15 16:08:28 +08:00
|
|
|
|
EventManager.Instance.Unregister(EventManager.EventName.LoginComplete, OnLoginOK);
|
2024-07-12 14:23:06 +08:00
|
|
|
|
}
|
2024-07-15 12:20:03 +08:00
|
|
|
|
|
|
|
|
|
|
#region Button_Listener
|
|
|
|
|
|
|
|
|
|
|
|
void OnRememberPassword(bool isOn)
|
|
|
|
|
|
{
|
|
|
|
|
|
loginSaveData.rememberPassword = isOn;
|
|
|
|
|
|
}
|
|
|
|
|
|
void OnAgreementAccept(bool isOn)
|
|
|
|
|
|
{
|
|
|
|
|
|
loginSaveData.agreement = isOn;
|
|
|
|
|
|
CheckLoginButton();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-15 19:09:11 +08:00
|
|
|
|
void AccountEdit(string text)
|
2024-07-15 12:20:03 +08:00
|
|
|
|
{
|
|
|
|
|
|
loginSaveData.account = text;
|
|
|
|
|
|
InputField_Password.text = string.Empty;
|
|
|
|
|
|
CheckLoginButton();
|
|
|
|
|
|
}
|
2024-07-15 19:09:11 +08:00
|
|
|
|
void PasswordEdit(string text)
|
2024-07-15 12:20:03 +08:00
|
|
|
|
{
|
|
|
|
|
|
loginSaveData.password = text;
|
|
|
|
|
|
CheckLoginButton();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-15 16:08:28 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20><><EFBFBD>Ե<EFBFBD>¼
|
|
|
|
|
|
/// </summary>
|
2024-07-15 12:20:03 +08:00
|
|
|
|
void OnButtonLogin()
|
|
|
|
|
|
{
|
|
|
|
|
|
if (!loginSaveData.rememberPassword)
|
|
|
|
|
|
{
|
|
|
|
|
|
loginSaveData.password = default;
|
|
|
|
|
|
}
|
2024-07-15 16:08:28 +08:00
|
|
|
|
tempSaveData = new(loginSaveData);//<2F>ݴ<EFBFBD><DDB4><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
|
2024-07-15 12:20:03 +08:00
|
|
|
|
|
2024-07-15 16:08:28 +08:00
|
|
|
|
LoginAction();
|
2024-07-15 12:20:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-15 16:08:28 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
void LoginAction()
|
|
|
|
|
|
{
|
|
|
|
|
|
DebugUtil.Log("<22><><EFBFBD>Ե<EFBFBD>¼<EFBFBD><C2BC><EFBFBD>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ڴ˴<DAB4><CBB4>ĵ<DEB8>¼<EFBFBD><EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӳ<EFBFBD>ʱ<EFBFBD>Լ<EFBFBD><D4BC><EFBFBD>¼ʧ<C2BC><CAA7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
|
var serverInfos = AppConfig.Instance.GetServerInfo();
|
|
|
|
|
|
AppConfig.Instance.Select(0);
|
|
|
|
|
|
for (int i = 0; i < serverInfos.Count; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (serverInfos[i].name == "<22><><EFBFBD>Է<EFBFBD>1")
|
|
|
|
|
|
AppConfig.Instance.Select(i);
|
|
|
|
|
|
}
|
|
|
|
|
|
Gameplay.Net.Actor.Instance.StartLogin(NLDPB.LoginType.Phxh, loginSaveData.account);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void OnLoginOK()
|
|
|
|
|
|
{
|
|
|
|
|
|
loginOK = true;
|
|
|
|
|
|
Button_StartGame.gameObject.SetActive(true);
|
|
|
|
|
|
HideLoginPanel();
|
|
|
|
|
|
|
|
|
|
|
|
loginSaveData = StorageMgr.Instance.GetStorage<LoginData>("LoginData");
|
2024-07-15 17:07:49 +08:00
|
|
|
|
if (loginSaveData == null)
|
|
|
|
|
|
loginSaveData = new();
|
2024-07-15 16:08:28 +08:00
|
|
|
|
|
2024-07-15 17:07:49 +08:00
|
|
|
|
if (tempSaveData != null)
|
|
|
|
|
|
loginSaveData.SetData(tempSaveData);
|
2024-07-15 16:08:28 +08:00
|
|
|
|
|
|
|
|
|
|
loginSaveData.LoginByAccount = true;
|
|
|
|
|
|
StorageMgr.Instance.SyncForce = true;
|
|
|
|
|
|
|
|
|
|
|
|
Text_UID.gameObject.SetActive(true);
|
|
|
|
|
|
Text_UID.text = "UID: " + Actor.Instance.Base.GetProp(ActorProp.ActorId);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20>û<EFBFBD><C3BB><EFBFBD><EFBFBD>İ<EFBFBD>ť
|
|
|
|
|
|
/// </summary>
|
2024-07-15 12:20:03 +08:00
|
|
|
|
void OnUserCenterButton()
|
|
|
|
|
|
{
|
2024-07-15 18:59:46 +08:00
|
|
|
|
if (loginOK)//TODO <20>㿪<EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>ԭ<EFBFBD><D4AD><EFBFBD>˺<EFBFBD><CBBA>Ƿ<EFBFBD><C7B7><EFBFBD>Ҫ<EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
{
|
|
|
|
|
|
DebugUtil.Log("<22>dz<EFBFBD><C7B3><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD><EFBFBD>");
|
2024-07-15 16:08:28 +08:00
|
|
|
|
Actor.Instance.OnLogout();
|
2024-07-15 18:59:46 +08:00
|
|
|
|
NetManager.Instance.CloseClient();
|
|
|
|
|
|
loginOK = false;
|
2024-07-15 16:08:28 +08:00
|
|
|
|
}
|
2024-07-15 12:20:03 +08:00
|
|
|
|
if (loginSaveData.LoginByPhone)
|
|
|
|
|
|
{
|
|
|
|
|
|
SetLoginType(LoginType.PhoneCode);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
SetLoginType(LoginType.Account);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void OnStartGame()
|
|
|
|
|
|
{
|
2024-07-15 16:08:28 +08:00
|
|
|
|
Actor.Instance.OnEnterGame();
|
2024-07-15 12:20:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
class LoginData
|
|
|
|
|
|
{
|
2024-07-15 16:08:28 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20><><EFBFBD>˺<EFBFBD><CBBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD>¼
|
|
|
|
|
|
/// </summary>
|
2024-07-15 12:20:03 +08:00
|
|
|
|
public bool LoginByAccount = false;
|
2024-07-15 16:08:28 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20><><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD>֤<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD>¼
|
|
|
|
|
|
/// </summary>
|
2024-07-15 12:20:03 +08:00
|
|
|
|
public bool LoginByPhone = false;
|
|
|
|
|
|
|
|
|
|
|
|
public string account;
|
|
|
|
|
|
public string password;
|
|
|
|
|
|
public bool rememberPassword;
|
|
|
|
|
|
public bool agreement;
|
|
|
|
|
|
|
|
|
|
|
|
public string phoneNumber;
|
2024-07-15 16:08:28 +08:00
|
|
|
|
|
|
|
|
|
|
public LoginData()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
public LoginData(LoginData loginData)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.LoginByAccount = loginData.LoginByAccount;
|
|
|
|
|
|
this.LoginByPhone = loginData.LoginByPhone;
|
|
|
|
|
|
|
|
|
|
|
|
this.account = loginData.account;
|
|
|
|
|
|
this.password = loginData.password;
|
|
|
|
|
|
this.rememberPassword = loginData.rememberPassword;
|
|
|
|
|
|
this.agreement = loginData.agreement;
|
|
|
|
|
|
this.phoneNumber = loginData.phoneNumber;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void SetData(LoginData loginData)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.LoginByAccount = loginData.LoginByAccount;
|
|
|
|
|
|
this.LoginByPhone = loginData.LoginByPhone;
|
|
|
|
|
|
|
|
|
|
|
|
this.account = loginData.account;
|
|
|
|
|
|
this.password = loginData.password;
|
|
|
|
|
|
this.rememberPassword = loginData.rememberPassword;
|
|
|
|
|
|
this.agreement = loginData.agreement;
|
|
|
|
|
|
this.phoneNumber = loginData.phoneNumber;
|
|
|
|
|
|
}
|
2024-07-15 12:20:03 +08:00
|
|
|
|
}
|
2024-07-12 14:23:06 +08:00
|
|
|
|
}
|