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();
+          });
      }
   });
 }