heyang 3 éve%!(EXTRA string=óta)
szülő
commit
aae0f909d9
1 módosított fájl, 4 hozzáadás és 3 törlés
  1. 4 3
      microserviceUserH5/vcloud/exchangePhoneActivity.html

+ 4 - 3
microserviceUserH5/vcloud/exchangePhoneActivity.html

@@ -137,7 +137,7 @@
 		toastr.options.timeOut = '1500';
 	</script>
 	<script type="text/javascript">
-        // var baseUrl = 'https://per.cs.se.androidscloud.com'
+        var baseUrl = 'https://per.cs.se.androidscloud.com'
 		let timer, flag = true;
 		let time = 60, codeTimer = null, enable = false, isStart = false,  changePhoneType = 2, phone = '', code = '', captchaVerification = '';
 		var url = window.location.href;
@@ -177,7 +177,6 @@
 							document.getElementById('form-btn').click();
 						},500)
 					} else if(res.status === 0) {
-						timerHandle('back');
 						if(changePhoneType == 1){
 							$('.copy-dialog').animate({top: '5.75rem'},"fast");
 							$('.copy-mask').show();
@@ -186,6 +185,7 @@
 							$('.ios-mask').show();
 						}
 						document.documentElement.style.overflow='hidden';
+						timerHandle('back');
 					} else {
 						toastr.error(res.msg);
 					}
@@ -463,12 +463,13 @@
 			time = 60;
 			clearInterval(codeTimer);
 			$('.get-code').eq(0).text('获取验证码');
-			$('.get-code-active')[0].className = 'get-code';
 			if(type == 'back'){
 				$('.phone-ipt').eq(0).val('');
 				$('.code-ipt').eq(0).val('');
 				phone = '';
 				code = '';
+			} else {
+				$('.get-code-active')[0].className = 'get-code';
 			}
 		}
 		//防止提示一秒内重复显示