From 5099dfcf8e015c35a2f81986101e08e93a7d7944 Mon Sep 17 00:00:00 2001
From: L <L@123>
Date: 星期一, 13 十月 2025 17:09:01 +0800
Subject: [PATCH] *
---
src/main/webapp/static/layuiadmin/lib/admin.js | 30 +++++++++++++++++++++++-------
1 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/src/main/webapp/static/layuiadmin/lib/admin.js b/src/main/webapp/static/layuiadmin/lib/admin.js
index 6f6f1f6..0e69e9e 100644
--- a/src/main/webapp/static/layuiadmin/lib/admin.js
+++ b/src/main/webapp/static/layuiadmin/lib/admin.js
@@ -381,9 +381,24 @@
,note: function(othis){
var mobile = admin.screen() < 2
,note = layui.data(setter.tableName).note;
-
+ // 鑾峰彇婵�娲荤姸鎬�
+ var activation = false;
+ var exprTime;
+ $.ajax({
+ url: baseUrl+"/system/activation/auth",
+ dataType:'json',
+ method: 'GET',
+ async: false,
+ success: function (res) {
+ if (res.code === 200) {
+ activation = true;
+ exprTime = res.data;
+ }
+ }
+ });
+
events.note.index = admin.popup({
- title: 'WMS 绉橀挜'
+ title: (activation?"宸叉縺娲伙紙鏈夋晥鏈熻嚦"+exprTime+"锛�":"Activation Code(鏈縺娲�)")
// title: 'license'
,shade: 0
,offset: [
@@ -395,7 +410,7 @@
,skin: 'layadmin-note layui-anim layui-anim-upbit'
,content: '<textarea placeholder="鍐呭"></textarea>'
,resize: false
- ,btn: ['娣诲姞', '鍙栨秷']
+ ,btn: [(activation?"鏇存柊":"绔嬪嵆婵�娲�"), '鍙栨秷']
,success: function(layero, index){
var textarea = layero.find('textarea')
,value = note === undefined ? '' : note;
@@ -411,13 +426,15 @@
$.ajax({
url: baseUrl+"/system/secret/auth",
headers: {'token': localStorage.getItem('token')},
- data: "secret="+note,
+ data: "secret="+$("#LAY_adminNote").children("textarea").val(),
dataType:'json',
method: 'POST',
success: function (res) {
- console.log(note)
if (res.code === 200) {
- layer.msg(res.msg)
+ alert("婵�娲绘垚鍔�");
+ location.reload();
+ // layer.msg(res.msg);
+ // layer.close(index);
} else if (res.code === 403) {
top.location.href = baseUrl+"/login";
} else {
@@ -425,7 +442,6 @@
}
}
});
- layer.close(index);
}
,btn2: function(index, layero){
layer.close(index);
--
Gitblit v1.9.1