From 8c1c003c60d2f27b3c55e248451caeec7f2b5631 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 28 一月 2021 19:06:28 +0800
Subject: [PATCH] 活动管理界面完善

---
 service-daylucky/src/main/resources/static/js/common.js |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/service-daylucky/src/main/resources/static/js/common.js b/service-daylucky/src/main/resources/static/js/common.js
index 1e55df6..1b5817c 100644
--- a/service-daylucky/src/main/resources/static/js/common.js
+++ b/service-daylucky/src/main/resources/static/js/common.js
@@ -10,6 +10,7 @@
                     , common.layuiElement = layui.element
                     , common.layuiLayer = layui.layer
                     , common.layuiForm = layui.form;
+                ;
                 common.layuiForm.verify({
                     decimal: [/^(?:[1-9][0-9]*\.[0-9]+|0\.(?!0+$)[0-9]+|0)$/, '璇疯緭鍏ユ暟瀛�'],
                     integer: [/^\+?[1-9][0-9]*$/, '璇疯緭鍏ユ鏁存暟'],
@@ -133,8 +134,26 @@
             error(msg) {
                 layer.msg(msg, {icon: 5, anim: 6});
             }
-
-
+        },
+        saveTempData: function (key, value) {
+            layui.data('temp', {
+                key: key
+                , value: value
+            });
+        },
+        getTempData: function (key) {
+            var local = layui.data('temp');
+            if (local) {
+                return local[key];
+            }
+            return null;
+        },
+        removeTempData: function (key) {
+            layui.data('temp', {
+                key: key
+                ,remove: true
+            });
         }
+
     }
 ;
\ No newline at end of file

--
Gitblit v1.8.0