From a4c86b6b9d61bec99bff97415ac25e1fd36fe28a Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期日, 09 四月 2023 19:17:56 +0800 Subject: [PATCH] 优化 --- management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon_info.js | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon_info.js b/management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon_info.js index dbb7d8b..91fbf7b 100644 --- a/management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon_info.js +++ b/management/guns-admin/src/main/webapp/static/modular/system/tCoupon/tCoupon_info.js @@ -29,6 +29,10 @@ validators: { notEmpty: { message: '优惠券数量不能为空' + }, + regexp: { + regexp: /^[1-9]\d*$/, + message: '请输入大于0的正整数' } } }, @@ -36,6 +40,10 @@ validators: { notEmpty: { message: '条件金额不能为空' + }, + regexp: { + regexp: /^[1-9]\d*$/, + message: '请输入大于0的正整数' } } }, @@ -43,6 +51,10 @@ validators: { notEmpty: { message: '优惠金额不能为空' + }, + regexp: { + regexp: /^[1-9]\d*$/, + message: '请输入大于0的正整数' } } }, @@ -50,6 +62,10 @@ validators: { notEmpty: { message: '有效期不能为空' + }, + regexp: { + regexp: /^[1-9]\d*$/, + message: '请输入大于0的正整数' } } }, @@ -57,6 +73,10 @@ validators: { notEmpty: { message: '优惠券总量不能为空' + }, + regexp: { + regexp: /^[1-9]\d*$/, + message: '请输入大于0的正整数' } } }, -- Gitblit v1.7.1