加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mm.php 3.49 KB
一键复制 编辑 原始数据 按行查看 历史
酷侠 提交于 2023-10-29 04:16 . 功能文件
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<title>云文档————修改密码</title>
<style>
@media only screen and (min-width:1024px){
*{
margin: 0;
padding: 0;
}
body{
width: 100vw;
height: 100vh;
background: url("https://api.oick.cn/random/api.php");
background-size: cover;
background-attachment: fixed;
text-align: center;
}
.zt{
width: 50vw;
height: 500px;
background:white;
opacity: 0.7;
margin: auto;
margin-top: 10vh;
border-radius: 15px;
}
.zt:hover{
width: 50vw;
height: 500px;
background:white;
opacity: 1;
margin: auto;
margin-top: 10vh;
border-radius: 15px;
transition: 0.5s;
}
.nr{
width: 45vw;
height:15vh;
background: lightblue;
margin-top: 5vh;
font-size: 9vh;
border-radius: 15px;
}
.an{
width: 40vw;
height: 13vh;
background: indianred;
margin: auto;
margin-top: 7vh;
font-size: 10vh;
border-radius: 15px;
}
}
@media only screen and (max-width:1024px){
*{
margin: 0;
padding: 0;
}
body{
width: 100vw;
height: 100vh;
background: url("https://api.oick.cn/random/api.php");
background-size: cover;
background-attachment: fixed;
text-align: center;
}
.zt{
width: 80vw;
height: 50vh;
background: white;
opacity: 0.7;
margin: auto;
margin-top: 10vh;
border-radius: 25px;
}
.zt:hover{
width: 80vw;
height: 50vh;
background: white;
opacity: 1;
margin: auto;
margin-top: 10vh;
border-radius: 25px;
transition: 0.5s;
}
.nr{
width: 70vw;
height: 10vh;
margin-top: 10vh;
background: coral;
border-radius: 15px;
font-size: 30px;
border:none;
}
.an{
width: 60vw;
height:8vh;
background: cornflowerblue;
margin: auto;
margin-top: 5vh;
border-radius: 10px;
font-size: 30px;
line-height: 60px;
}
}
</style>
</head>
<body>
<div class="zt" onload="getzhmm()">
<input type="text" class="nr" placeholder="请输入修改密码" id="mm">
<div class="an" onclick="xg()">确定</div>
<div class="an" onclick="window.history.back()">返回</div>
</div>
</body>
</html>
<script type="text/javascript">
function xg(){
var user=$.cookie('user');
var pass=$.cookie('pass');
var xmm=document.getElementById('mm').value;
if(user=='' || pass=='' || xmm==''){
alert("参数不完整");
}else{
$.post("xgmm.php",{
user:user,
pass:pass,
new:xmm
},
function (data){
if(data=="密码修改成功"){
alert(data);
}
}
);
}
}
function getzhmm(){
var zh=$.cookie('user');
var mm=$.cookie('pass');
$.post("denglu.php",{
user:zh,
pass:mm
},
function (data){
if(data.msg=="登录成功"){
}else{
alert("身份验证失败,请重新登录");
window.location.href='login.php';
}
},"json");
}
</script>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化