54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
using Assets.MyGame.Scripts.Net;
|
|
using Assets.MyGame.Scripts.Net.APIRequest.Params;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ReSetPassword : SubUIBase
|
|
{
|
|
public TMP_InputField tMPInput_UserName;
|
|
|
|
public TMP_InputField tMPInput_SFZName;
|
|
public TMP_InputField tMPInput_SFZID;
|
|
public TMP_InputField tMPInput_Password;
|
|
public TMP_InputField tMPInput_QueRenPassword;
|
|
public TMP_InputField tMPInput_PhoneNumber;
|
|
public TMP_InputField tMPInput_YZM;
|
|
public TextMeshProUGUI tMP_YZMDJS;
|
|
public Button btn_YZM;
|
|
public Button btn_ReSetPassWord;
|
|
// Start is called before the first frame update
|
|
public override void Awake()
|
|
{
|
|
base.Awake();
|
|
btn_YZM.onClick.AddListener(() =>
|
|
{
|
|
APIRequestList.YZM(new YZMParam
|
|
{
|
|
mobile = tMPInput_PhoneNumber.text
|
|
}, (a) =>
|
|
{
|
|
|
|
UIManager.Instance.ShowBoardError(a);
|
|
|
|
});
|
|
});
|
|
btn_ReSetPassWord.onClick.AddListener(() =>
|
|
{
|
|
APIRequestList.ResetPassword(new ReSetPassWordParam
|
|
{
|
|
code = tMPInput_YZM.text,
|
|
mobile = tMPInput_UserName.text,
|
|
password = tMPInput_Password.text
|
|
}, (a) =>
|
|
{
|
|
|
|
UIManager.Instance.ShowBoardError(a);
|
|
uIManager.Close(UIPanel.ResetPasswordPanel);
|
|
});
|
|
});
|
|
}
|
|
}
|