| | |
| | | /// <summary>
|
| | | /// 发送验证码到手机
|
| | | /// </summary>
|
| | | private async void SendCodeToPhone(BottomClickButton btnNext,string areaCode, string phoneNum)
|
| | | private void SendCodeToPhone(BottomClickButton btnNext,string areaCode, string phoneNum)
|
| | | {
|
| | | var sendCodePra = new SendCodePra();
|
| | | sendCodePra.Account = phoneNum;
|
| | | sendCodePra.AreaCode = Convert.ToInt32(areaCode);
|
| | |
|
| | | bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/RegisterSendVerCode", false, sendCodePra);
|
| | | bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/RegisterSendVerCode", false, sendCodePra);
|
| | | if (flage == false)
|
| | | {
|
| | | return;
|
| | |
| | | /// 验证验证码
|
| | | /// </summary>
|
| | | /// <returns></returns>
|
| | | private async void CheckVerificationCode(string code)
|
| | | private void CheckVerificationCode(string code)
|
| | | {
|
| | | if (this.canCheckCode == false)
|
| | | {
|
| | |
| | | checkCodePra.Code = code;
|
| | | checkCodePra.Account = newPhone;
|
| | |
|
| | | bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
|
| | | bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
|
| | | if (flage == false)
|
| | | {
|
| | | //验证码错误,请重新输入
|
| | |
| | | /// <summary>
|
| | | /// 变更手机号
|
| | | /// </summary>
|
| | | private async void SaveNewPhoneNumber()
|
| | | private void SaveNewPhoneNumber()
|
| | | {
|
| | | var pra = new SaveNewPhoneNumPra();
|
| | | pra.Account = newPhone;
|
| | |
|
| | | bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/BindAccount", false, pra);
|
| | | bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/BindAccount", false, pra);
|
| | | if (flage == false)
|
| | | {
|
| | | //绑定手机失败
|