Browse Source

倒计时补充

zhangyuqian 11 months ago
parent
commit
9f75a0681b
1 changed files with 10 additions and 10 deletions
  1. 10 10
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/PhoneBindingView.cs

+ 10 - 10
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/PhoneBindingView.cs

@@ -59,7 +59,7 @@ namespace GFGGame
         protected override void OnHide()
         {
             base.OnHide();
-            //Timers.inst.Remove(UpdateCountTime);
+            Timers.inst.Remove(UpdateCountTime);
         }
         private void UpdateCountTime(object param = null)
         {
@@ -98,15 +98,15 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("麻烦输入手机号码!");
                 return;
             }
-            //if (isCountTime)
-            //{
-            //    PromptController.Instance.ShowFloatTextPrompt("刷新冷却中,请耐心等待!");
-            //    return;
-            //}
-            //isCountTime = true;
-            //_ui.m_countTime.visible = true;
-            //_ui.m_countTime.fillAmount = 1.0f;
-            //Timers.inst.AddUpdate(UpdateCountTime);
+            if (isCountTime)
+            {
+                PromptController.Instance.ShowFloatTextPrompt("刷新冷却中,请耐心等待!");
+                return;
+            }
+            isCountTime = true;
+            _ui.m_countTime.visible = true;
+            _ui.m_countTime.fillAmount = 1.0f;
+            Timers.inst.AddUpdate(UpdateCountTime);
             bool result = await RoleInfoSProxy.GetMobileVerification(_ui.m_inputPhoneNumber.text);
             if (result)
             {