You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
4.4 KiB
110 lines
4.4 KiB
<?php /*a:2:{s:57:"E:\waibao\ahbcqz\server\app\shop\view\admin\password.html";i:1679478874;s:50:"E:\waibao\ahbcqz\server\app\shop\view\layout2.html";i:1679478874;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo url(); ?></title>
|
|
<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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<link rel="stylesheet" href="/static/lib/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/app.css">
|
|
<link rel="stylesheet" href="/static/admin/css/like.css">
|
|
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/admin/js/app.js"></script>
|
|
</head>
|
|
<body style="background-color: #FFFFFF">
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
<div class="wrapper">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header">修改密码</div>
|
|
<div class="layui-card-body" pad15>
|
|
<div class="layui-form" lay-filter="">
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">账号</label>
|
|
<div class="layui-input-inline">
|
|
<div class="layui-form-mid layui-word-aux"><?php echo htmlentities($account); ?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">当前密码</label>
|
|
<div class="layui-input-inline">
|
|
<input type="password" name="old_password" lay-verify="required" lay-verType="tips"
|
|
class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">新密码</label>
|
|
<div class="layui-input-inline">
|
|
<input type="password" maxlength="16" name="password" lay-verify="required|length"
|
|
lay-verType="tips" autocomplete="off" class="layui-input">
|
|
</div>
|
|
<div class="layui-form-mid layui-word-aux">6到16个字符</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">确认新密码</label>
|
|
<div class="layui-input-inline">
|
|
<input type="password" name="re_password" lay-verify="required|comparison" lay-verType="tips"
|
|
autocomplete="off" class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<div class="layui-input-block">
|
|
<button class="layui-btn <?php echo htmlentities($view_theme_color); ?>" lay-submit lay-filter="setmypass">确认修改</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
|
layui.use(['table'], function () {
|
|
var $ = layui.$
|
|
, form = layui.form;
|
|
|
|
form.verify({
|
|
length: function (value, item) {
|
|
if (value.length < 6 || value.length > 16) {
|
|
return '长度为' + 6 + '到' + 16 + '之间';
|
|
}
|
|
},
|
|
comparison: function (value, item) {
|
|
password = layui.$('[name=password]').val();
|
|
if (password != value) {
|
|
return '两次密码输入不一致';
|
|
}
|
|
}
|
|
});
|
|
|
|
form.on('submit(setmypass)', function (data) {
|
|
like.ajax({
|
|
url: '<?php echo url(); ?>'
|
|
, data: data.field
|
|
, type: 'post'
|
|
, success: function (res) {
|
|
if(res.code == 1) {
|
|
layui.layer.msg(res.msg, {
|
|
offset: '15px'
|
|
, icon: 1
|
|
, time: 1000
|
|
}, function () {
|
|
location.href = location.href;
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|