From d12182e55e566fe3d9e64a8d9dee7931600dda00 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期二, 31 十月 2023 09:49:33 +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