public void OnReSendBtnClick() { if (mRof == eRegisterOrForgetAccount.Register) { UIAccountController.RegByPhone(PhoneNumber, delegate(string err) { if (string.IsNullOrEmpty(err)) { RegisterVerificationInfoDic[PhoneNumber].ExpireTime = EB.Time.Now + 60; mExpireTime = GetExpireTime(); StartCoroutine(SendVerificationCodeCountdown()); } }); } else if (mRof == eRegisterOrForgetAccount.Forget) { UIAccountController.Forgetpassword(PhoneNumber, delegate(string msg) { if (msg == "OK") { ForgetVerificationInfoDic[PhoneNumber].ExpireTime = EB.Time.Now + 60; mExpireTime = GetExpireTime(); StartCoroutine(SendVerificationCodeCountdown()); } }); } }
public void OnBtnClick() { if (string.IsNullOrEmpty(UserPhoneInput.value)) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_ManHuangAskController_1039")); return; } string inputStr = UserPhoneInput.value; long phoneNum = 0; if (!long.TryParse(inputStr, out phoneNum) || phoneNum.ToString().Length != 11 || phoneNum.ToString().Substring(0, 1) != "1") { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_ManHuangAskController_1329")); UserPhoneInput.value = ""; return; } if (!mDMono.transform.parent.parent.GetUIControllerILRComponent <ManHuangAccountUIController>().InputVerificationController.GetIsExpire(mRof, UserPhoneInput.value)) { Show(false); mDMono.transform.parent.parent.GetUIControllerILRComponent <ManHuangAccountUIController>().InputVerificationController.Show(true); mDMono.transform.parent.parent.GetUIControllerILRComponent <ManHuangAccountUIController>().InputVerificationController.SetData(mRof, UserPhoneInput.value, 0); return; } if (mRof == eRegisterOrForgetAccount.Register) { UIAccountController.RegByPhone(UserPhoneInput.value, delegate(string err) { if (string.IsNullOrEmpty(err)) { Show(false); mDMono.transform.parent.parent.GetUIControllerILRComponent <ManHuangAccountUIController>().InputVerificationController.Show(true); mDMono.transform.parent.parent.GetUIControllerILRComponent <ManHuangAccountUIController>().InputVerificationController.SetData(mRof, UserPhoneInput.value, EB.Time.Now + 60); } }); } else if (mRof == eRegisterOrForgetAccount.Forget) { UIAccountController.Forgetpassword(UserPhoneInput.value, delegate(string msg) { if (msg == "OK") { Show(false); mDMono.transform.parent.parent.GetUIControllerILRComponent <ManHuangAccountUIController>().InputVerificationController.Show(true); mDMono.transform.parent.parent.GetUIControllerILRComponent <ManHuangAccountUIController>().InputVerificationController.SetData(mRof, UserPhoneInput.value, EB.Time.Now + 60); } }); } }