|
@@ -75,7 +75,7 @@ td {
|
|
<div class="grid-demo">活动时间:<{$act_time}></div>
|
|
<div class="grid-demo">活动时间:<{$act_time}></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <input type="text" value="<{$write_code}>" autocomplete="off" id="content" class="layui-input" style="width: auto;display: inline;" placeholder="输入核销码">
|
|
|
|
|
|
+ <input type="text" value="" autocomplete="off" id="content" class="layui-input" style="width: auto;display: inline;" placeholder="输入核销码">
|
|
<div class="layui-card-body">
|
|
<div class="layui-card-body">
|
|
<{if(isset($write_code)):}>
|
|
<{if(isset($write_code)):}>
|
|
<table class="table layui-table layui-table-body" id="table">
|
|
<table class="table layui-table layui-table-body" id="table">
|
|
@@ -146,17 +146,10 @@ $('#content').bind('keydown',function(event){
|
|
location.href = config.host + 'lib/manage.code&type=1&code=' + $('#content').val() +'&id=<{$active_id}>';
|
|
location.href = config.host + 'lib/manage.code&type=1&code=' + $('#content').val() +'&id=<{$active_id}>';
|
|
} else {
|
|
} else {
|
|
layer.alert('填写错误');
|
|
layer.alert('填写错误');
|
|
- // alert('填写错误');
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
error: function(data){
|
|
error: function(data){
|
|
- layer.alert('核销码不存在或已核销', function(){
|
|
|
|
- location.href = config.host + "lib/manage.code&id=<{$active_id}>";
|
|
|
|
- layer.close();
|
|
|
|
- });
|
|
|
|
- var code = '';
|
|
|
|
- $('#id').val('');
|
|
|
|
- //location.href = config.host + "lib/manage.code&id=<{$active_id}>";
|
|
|
|
|
|
+ layer.alert('核销码不存在或已核销');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -172,23 +165,17 @@ function hexiao() {
|
|
// json : 1
|
|
// json : 1
|
|
},
|
|
},
|
|
dataType: "json",
|
|
dataType: "json",
|
|
-
|
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
- // var index = config.host + "lib/manage.code&id=<{$active_id}>";
|
|
|
|
|
|
+ location.href = config.host + "lib/manage.code&id=<{$active_id}>";
|
|
|
|
+ /*
|
|
layer.alert(data.data.msg, function(){
|
|
layer.alert(data.data.msg, function(){
|
|
location.href = config.host + "lib/manage.code&id=<{$active_id}>";
|
|
location.href = config.host + "lib/manage.code&id=<{$active_id}>";
|
|
layer.close();
|
|
layer.close();
|
|
- });
|
|
|
|
- // layer.alert(data.data.msg);
|
|
|
|
- // alert(data.data.msg);
|
|
|
|
- var code = '';
|
|
|
|
- $('#id').val('');
|
|
|
|
- // location.href = config.host + "lib/manage.code&id=<{$active_id}>";
|
|
|
|
- },
|
|
|
|
|
|
+ */
|
|
|
|
+ }
|
|
error: function(data){
|
|
error: function(data){
|
|
- console.log('error',data);
|
|
|
|
|
|
+ layer.alert('核销失败');
|
|
}
|
|
}
|
|
-
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|