From 2dc12d419733c094bb0bbc7ef4f7a32d5067cfb9 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期三, 03 十二月 2025 17:27:32 +0800
Subject: [PATCH] #
---
src/main/webapp/views/pda/login.html | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/main/webapp/views/pda/login.html b/src/main/webapp/views/pda/login.html
index 4aa73f5..c326171 100644
--- a/src/main/webapp/views/pda/login.html
+++ b/src/main/webapp/views/pda/login.html
@@ -78,7 +78,7 @@
</header>
<div class="layui-form layadmin-user-login-body">
<div class="layui-form-item">
- <input id="mobile" class="layui-input" type="text" name="mobile" lay-verify="mobile" placeholder="璐﹀彿" autocomplete="off">
+ <input id="username" class="layui-input" type="text" name="username" lay-verify="username" placeholder="璐﹀彿" autocomplete="off">
</div>
<div class="layui-form-item">
<input id="password" class="layui-input" type="password" name="password" lay-verify="password" placeholder="瀵嗙爜" autocomplete="off">
@@ -103,10 +103,10 @@
$ = layui.jquery;
form.on('submit(login)', function (data) {
- var mobile = $("#mobile").val();
- if (mobile === "") {
+ var username = $("#username").val();
+ if (username === "") {
layer.msg("璇疯緭鍏ヨ处鍙�", {icon: 2})
- $("#mobile").focus();
+ $("#username").focus();
return;
}
var password = $("#password").val();
@@ -117,12 +117,14 @@
}
var user = {
- mobile: mobile,
+ username: username,
password: hex_md5(password)
};
+ debugger
$.ajax({
url: baseUrl+"/login.action",
- data: user,
+ headers: {'Content-Type': 'application/json'},
+ data: JSON.stringify(user),
method: 'POST',
success: function (res) {
if (res.code === 200){
--
Gitblit v1.9.1