From 8e9440ea0a09fc6d9cea1c205904c51ccbf62a2a Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期一, 24 七月 2023 15:07:53 +0800
Subject: [PATCH] 超省2.0

---
 management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js b/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js
index bd32ace..e989234 100644
--- a/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js
+++ b/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js
@@ -8,6 +8,10 @@
             validators: {
                 notEmpty: {
                     message: '优推名称不能为空'
+                },
+                regexp: {
+                    regexp:  /^[\u4E00-\u9FA5A-Za-z\s]+$/,
+                    message: '不能输入特殊字符和数字'
                 }
             }
         },
@@ -22,6 +26,10 @@
             validators: {
                 notEmpty: {
                     message: '兑换条件不能为空'
+                },
+                regexp: {
+                    regexp: /^[1-9]\d*$/,
+                    message: '请输入大于0的正整数'
                 }
             }
         },
@@ -29,6 +37,10 @@
             validators: {
                 notEmpty: {
                     message: '优推距离不能为空'
+                },
+                regexp: {
+                    regexp: /^[1-9]\d*$/,
+                    message: '请输入大于0的正整数'
                 }
             }
         },
@@ -36,6 +48,10 @@
             validators: {
                 notEmpty: {
                     message: '有效期不能为空'
+                },
+                regexp: {
+                    regexp: /^[1-9]\d*$/,
+                    message: '请输入大于0的正整数'
                 }
             }
         },
@@ -108,6 +124,7 @@
     .set('status')
     .set('distance')
     .set('serviceContent')
+    .set('picture')
     .set('createTime');
 }
 

--
Gitblit v1.7.1