From e5d31b50665bb61328d73194eec68a8eaefbdb66 Mon Sep 17 00:00:00 2001 From: vincent <1341870251@qq.com> Date: 星期一, 25 五月 2020 10:29:16 +0800 Subject: [PATCH] # --- src/main/webapp/views/login.html | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/views/login.html b/src/main/webapp/views/login.html index 9449100..c61e906 100644 --- a/src/main/webapp/views/login.html +++ b/src/main/webapp/views/login.html @@ -5,7 +5,7 @@ <title>绯荤粺鐧诲綍</title> <link rel="stylesheet" href="../static/layui/css/layui.css" media="all"> <script type="text/javascript" src="../static/layui/layui.js"></script> - + <script type="text/javascript" src="../static/js/common.js"></script> <style> html{ height: 100%; @@ -138,10 +138,10 @@ // 鍒濆鍖栭獙璇佺爜 function initCode() { var random = Math.random(); - $('#codeImg').attr("src", "/code.action?sd="+random); + $('#codeImg').attr("src", baseUrl+"/code.action?sd="+random); setTimeout(function () { $.ajax({ - url: "/code.do", + url: baseUrl+"/code.do", data: {sd: random}, method: 'POST', async: false, @@ -173,21 +173,21 @@ return; } var code = $("#code").val(); - // if (code === "") { - // layer.msg("璇疯緭鍏ラ獙璇佺爜", {offset: '150px'}); - // return; - // } - // if (sessionStorage.getItem("code").toUpperCase() !== code.toUpperCase()){ - // layer.msg("楠岃瘉鐮侀敊璇�", {offset: '150px'}); - // return; - // } + if (code === "") { + layer.msg("璇疯緭鍏ラ獙璇佺爜", {offset: '150px'}); + return; + } + if (sessionStorage.getItem("code").toUpperCase() !== code.toUpperCase()){ + layer.msg("楠岃瘉鐮侀敊璇�", {offset: '150px'}); + return; + } var user = { mobile: mobile, password: hex_md5(password) }; $.ajax({ - url: "/login.action", + url: baseUrl+"/login.action", data: user, method: 'POST', success: function (res) { -- Gitblit v1.9.1