cull(engine-cleanup): pass-8 phase-2 cascade round 7 after MyPageItemHome stub
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
using Cute;
|
||||
using UnityEngine;
|
||||
|
||||
public class NtDataTranslate : MonoBehaviour
|
||||
{
|
||||
|
||||
public NtDataTranslateInput InputObj;
|
||||
|
||||
public static NtDataTranslate Instance;
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using Cute;
|
||||
using UnityEngine;
|
||||
|
||||
public class NtDataTranslateInput : MonoBehaviour
|
||||
{
|
||||
public UIInput InputEmail1;
|
||||
|
||||
public UIInput InputEmail2;
|
||||
|
||||
public string EmailAddress;
|
||||
|
||||
private NtDataTranslateInfo info;
|
||||
|
||||
private string checkInput()
|
||||
{
|
||||
string result = string.Empty;
|
||||
string value = InputEmail1.value;
|
||||
string value2 = InputEmail2.value;
|
||||
if (string.IsNullOrEmpty(value))
|
||||
{
|
||||
result = info.emailAddressTip2;
|
||||
}
|
||||
else if (!Regex.IsMatch(value, "(?i)^([a-z0-9\\+_\\-]+)(\\.[a-z0-9\\+_\\-]+)*@([a-z0-9\\-]+\\.)+[a-z]{2,6}$"))
|
||||
{
|
||||
result = info.emailAddressTip2;
|
||||
}
|
||||
else if (!value2.Equals(value))
|
||||
{
|
||||
result = info.emailAddressTip1;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public void UpLoadEmail(Action callback)
|
||||
{
|
||||
string text = checkInput();
|
||||
if (string.IsNullOrEmpty(text))
|
||||
{
|
||||
EmailAddress = InputEmail1.value;
|
||||
callback.Call();
|
||||
return;
|
||||
}
|
||||
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
|
||||
dialogBase.SetTitleLabel(info.ERROR_TITLE);
|
||||
dialogBase.SetText(text);
|
||||
dialogBase.SetButtonLayout(DialogBase.ButtonLayout.DecisionBtn);
|
||||
dialogBase.SetPanelDepth(6000);
|
||||
}
|
||||
}
|
||||
@@ -28,21 +28,6 @@ public class NtDataTranslateManager
|
||||
return instance;
|
||||
}
|
||||
|
||||
public string GetSetTranslateInfoUrl()
|
||||
{
|
||||
return string.Format("{0}{1}", TranslateInfo.serverUrl, "netease_data_transaction/set_email_address");
|
||||
}
|
||||
|
||||
public void ShowSuccess()
|
||||
{
|
||||
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
|
||||
dialogBase.SetTitleLabel(TranslateInfo.titleSuccess);
|
||||
dialogBase.SetText(TranslateInfo.containSuccess);
|
||||
dialogBase.SetButtonLayout(DialogBase.ButtonLayout.OkBtn);
|
||||
dialogBase.SetSize(DialogBase.Size.XL);
|
||||
dialogBase.SetButtonText(TranslateInfo.button_id4);
|
||||
}
|
||||
|
||||
public void ShowRejectLogin(Action callback = null)
|
||||
{
|
||||
DialogBase dialogBase = Dialog.Create(330);
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
using Cute;
|
||||
using Wizard;
|
||||
|
||||
public class SetDataTranslateTask : NetworkTask
|
||||
{
|
||||
public class SetDataTranslateTaskParam : BaseParam
|
||||
{
|
||||
public string email_address;
|
||||
}
|
||||
|
||||
public override string Url => NtDataTranslateManager.GetInstance().GetSetTranslateInfoUrl();
|
||||
|
||||
public void SetParameter(string address)
|
||||
{
|
||||
SetDataTranslateTaskParam setDataTranslateTaskParam = new SetDataTranslateTaskParam();
|
||||
setDataTranslateTaskParam.email_address = address;
|
||||
base.Params = setDataTranslateTaskParam;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int result = base.Parse();
|
||||
_ = 1;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user