rabin 3 年之前
父节点
当前提交
3876a31f71
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      learn/active/assets/pc/html/off_code.html

+ 8 - 0
learn/active/assets/pc/html/off_code.html

@@ -152,6 +152,10 @@ $('#content').bind('keydown',function(event){
         $('#content').val('');
         $('#content').val('');
           layer.alert('核销码不存在或已核销', function() {
           layer.alert('核销码不存在或已核销', function() {
             $('#content').focus();
             $('#content').focus();
+            layer.closeAll();
+          }, function() {
+            $('#content').focus();
+            layer.closeAll();
           });
           });
      }
      }
     });
     });
@@ -179,6 +183,10 @@ function hexiao() {
      error: function(data){
      error: function(data){
       layer.alert('核销失败', function() {
       layer.alert('核销失败', function() {
             $('#content').focus();
             $('#content').focus();
+            layer.closeAll();
+          }, function() {
+            $('#content').focus();
+            layer.closeAll();
           });
           });
      }
      }
   });
   });