| | |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="/static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../static/layui/css/layui.css" media="all"> |
| | | <style> |
| | | #password-div { |
| | | padding: 20px 20px 20px 13px; |
| | |
| | | </div> |
| | | </div> |
| | | </body> |
| | | <script type="text/javascript" src="/static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script src="/static/layui/layui.js"></script> |
| | | <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script src="../static/layui/layui.js"></script> |
| | | <script> |
| | | layui.use(['form'], function() { |
| | | var form = layui.form, |
| | |
| | | password: $('#password').val(), |
| | | }; |
| | | $.ajax({ |
| | | url: "/user/update/auth", |
| | | url: baseUrl+"/user/update/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: user, |
| | | method: 'POST', |
| | |
| | | btn: ['确定'], |
| | | btn1: function(){ |
| | | localStorage.removeItem("token"); |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | }, |
| | | cancel: function(){ |
| | | localStorage.removeItem("token"); |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | }, |
| | | closeBtn: 0, |
| | | shadeClose: false, |
| | | }) |
| | | } else if (res.code === 403){ |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg); |
| | | } |