From 06a23537f48e1bfd74fab2346798838afd9f30bf Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 17 十月 2023 15:00:08 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/cstmr/cstmr.js | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/cstmr/cstmr.js b/src/main/webapp/static/js/cstmr/cstmr.js
index 1c5069d..0537c31 100644
--- a/src/main/webapp/static/js/cstmr/cstmr.js
+++ b/src/main/webapp/static/js/cstmr/cstmr.js
@@ -431,6 +431,28 @@
}
}
});
+ },
+ on: function (data) {
+ console.log(data)
+ let arr = data.arr
+ let change = data.change;
+ if (arr.length > 0 && change.length>0) {
+ let name = arr[0].name;
+ $.ajax({
+ url: baseUrl + "/cstmr/name/check/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: {
+ name: name
+ },
+ method: 'POST',
+ success: function (res) {
+ if (res.code === 200) {
+ } else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ });
+ }
}
});
}
--
Gitblit v1.9.1