rabin 3 년 전
부모
커밋
32a32ce89e
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      learn/active/assets/pc/html/off_code.html

+ 6 - 2
learn/active/assets/pc/html/off_code.html

@@ -150,7 +150,9 @@ $('#content').bind('keydown',function(event){
       },
       error: function(data){
         $('#content').val('');
-          layer.alert('核销码不存在或已核销');
+          layer.alert('核销码不存在或已核销', function() {
+            $('#content').focus();
+          });
      }
     });
    }
@@ -175,7 +177,9 @@ function hexiao() {
         */
     },
      error: function(data){
-      layer.alert('核销失败');
+      layer.alert('核销失败', function() {
+            $('#content').focus();
+          });
      }
   });
 }