heyang 3 년 전
부모
커밋
c2043a6537
2개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 1
      microserviceUserH5/static/css/changePhoneActivity.css
  2. 10 10
      microserviceUserH5/vcloud/invite.html

+ 1 - 1
microserviceUserH5/static/css/changePhoneActivity.css

@@ -176,7 +176,7 @@ ul, li {
   font-size: 0.28rem;
 }
 .login-row-ipt{
-  flex: 1;
+  width: 3.2rem;
   border: none;
   outline: none;
   margin-top: 0.06rem;

+ 10 - 10
microserviceUserH5/vcloud/invite.html

@@ -204,16 +204,16 @@
 		// input自带的select()方法在苹果端无法进行选择,所以需要自己去写一个类似的方法
 		// 选择文本。createTextRange(setSelectionRange)是input方法
 		function selectText(textbox, startIndex, stopIndex) {
-		if (textbox.createTextRange) {//ie
-			const range = textbox.createTextRange();
-			range.collapse(true);
-			range.moveStart('character', startIndex);//起始光标
-			range.moveEnd('character', stopIndex - startIndex);//结束光标
-			range.select();//不兼容苹果
-		} else {//firefox/chrome
-			textbox.setSelectionRange(startIndex, stopIndex);
-			textbox.focus();
-		}
+			if (textbox.createTextRange) {//ie
+				const range = textbox.createTextRange();
+				range.collapse(true);
+				range.moveStart('character', startIndex);//起始光标
+				range.moveEnd('character', stopIndex - startIndex);//结束光标
+				range.select();//不兼容苹果
+			} else {//firefox/chrome
+				textbox.setSelectionRange(startIndex, stopIndex);
+				textbox.focus();
+			}
 		}
 		//点击选择框
 		$('.login-row-select')[0].addEventListener('click',()=>{