Commit f0123913 by 朱继来

添加SKUID校验

parent 8c8a841d
Showing with 9 additions and 1 deletions
......@@ -233,7 +233,15 @@
$('.get-sku').click(function() {
var sku_id = $(this).siblings('.search-sku').val();
if (!sku_id) return false;
if (!sku_id) {
layer.msg('请输入SKU_ID');
return false;
}
if (!/\d/.test(sku_id)) {
layer.msg('参数错误,请输入正确的SKU_ID');
return false;
}
$.ajax({
url: '/ajax/getSku',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment