public override void OnEnter(BaseContext context) { base.OnEnter(context); _context = context as InputTransferAmountContext; _account = _context.account; if (string.IsNullOrEmpty(_account.nickname) || _account.nickname == ContentHelper.Read(5)) { _nameText.text = _account.realName + "(" + Utils.FormatStringForSecrecy(_account.realName, FInputType.Name) + ")"; } else { _nameText.text = _account.nickname + "(" + Utils.FormatStringForSecrecy(_account.realName, FInputType.Name) + ")"; } _accountText.text = Utils.FormatStringForSecrecy(_account.phoneNumber, FInputType.PhoneNumber); HeadSpriteUtils.Instance.SetHead(_headImg, _account.accountId); }
public void OnClickNext() { string phoneNum = _phoneNumText.text.Replace(" ", ""); if (Utils.CheckPhoneNumberExist(phoneNum)) { if (Utils.CheckIsSelfNumber(phoneNum)) { ShowNotice(ContentHelper.Read(ContentHelper.CanNotTransToSelf)); } else { AccountSaveData data = XMLSaver.saveData.GetAccountDataByPhoneNumber(phoneNum); InputTransferAmountContext context = new InputTransferAmountContext(data); UIManager.Instance.Push(context); } } else { ShowNotice(ContentHelper.Read(ContentHelper.TransAccountNotExist)); } }