main
kgdxpr 2 years ago
parent 0c4c913cc1
commit 7980f528a3

@ -60,6 +60,7 @@
<!-- 功 能 菜 单 -->
<dl class="layui-nav-child">
<dd><a href="javascript:void(0);" id="changePwd">修改密码</a></dd>
<dd><a href="javascript:void(0);" id="changeContact">修改联系方式</a></dd>
<dd><a href="javascript:void(0);" class="logout">注销登录</a></dd>
</dl>
</li>
@ -152,6 +153,17 @@
});
});
$("#changeContact").click(function () {
$(".layui-this").removeAttr("class");
layer.open({
type: 2,
title: '修改联系方式',
shade: 0.1,
area: ['650px', '230px'],
content: './view/changeContact.html'
});
});
var loginPersonInfo = getPersonLoginInfo($);
$("#personName").html(" " + loginPersonInfo.person_name);

@ -0,0 +1,138 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="../component/pear/css/pear.css" />
<style>
.require-star {
position: absolute;
width: 3px;
height: 14px;
background-color: #ea4335;
top: 12px;
right: 8px;
border-radius: 1.5px;
}
.input-width {
max-width: 455px
}
.layui-form-select {
width: 455px;
}
</style>
</head>
<body>
<form class="layui-form" action="">
<div class="mainBox">
<div class="main-container">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 50px !important;">电话</label>
<div class="layui-input-block">
<input type="text" id="tel" name="telephone" autocomplete="off" placeholder="请输入电话"
class="layui-input input-width">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label" style="width: 50px !important;">邮箱</label>
<div class="layui-input-block">
<input type="text" id="email" name="email" autocomplete="off" placeholder="请输入邮箱"
class="layui-input input-width">
</div>
</div>
</div>
</div>
<div class="bottom">
<div class="button-container">
<button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save">
<i class="layui-icon layui-icon-ok"></i>
提交
</button>
<button type="reset" class="pear-btn pear-btn-sm">
<i class="layui-icon layui-icon-refresh"></i>
重置
</button>
</div>
</div>
</form>
<script src="../component/layui/layui.js"></script>
<script src="../component/pear/pear.js"></script>
<script>
layui.use(['form', 'jquery'], function () {
let form = layui.form;
let $ = layui.jquery;
// 自定义验证
form.verify({
len: [/^.{6,18}$/, '密码长度需要6-18位'],
confirmPassword: function (value, item) {
var passwordValue = $('#reg-password').val();
if (value !== passwordValue) {
return '两次密码输入不一致';
}
}
});
$.ajax({
url: "/QingLong/hk/getStudentInfo",
async: false,
type: 'GET',
success: function (result) {
if (result.success) {
$("#tel").val(result.data.telephone);
$("#email").val(result.data.email);
} else {
layer.msg(result.message, {
icon: 2,
time: 2000
});
}
},
}, error: function (xhr, status, error) {
layer.msg("获取学生信息异常!", {
icon: 2,
time: 1000
});
}
});
form.on('submit(save)', function (data) {
$.ajax({
url: '/QingLong/loginPerson/changePwd',
data: data.field,
type: 'post',
success: function (result) {
if (result.success) {
layer.msg("修改成功!", {
icon: 1,
time: 1300
}, function () {
parent.layer.close(parent.layer.getFrameIndex(window.name));
// parent.layui.table.reload("global-table");
});
} else {
layer.msg(result.message, {
icon: 2,
time: 2000
});
}
}
})
return false;
});
});
</script>
<script>
</script>
</body>
</html>

@ -37,7 +37,7 @@
<table id="data-table"></table>
<script type="text/html" id="progress-Templet">
{{# if(d.publish_state === 1){ }}
<div class="layui-progress layui-progress-big" lay-filter="fill_progress" lay-showpercent="true" style="margin-top: 8px;">
<div class="layui-progress layui-progress-big" lay-filter="fill_progress" lay-showpercent="true" style="margin-top: 8px;cursor: pointer;" onclick='progress("{{= d.job_id }}","{{= d.total_count }}","{{= d.finish_count }}")'>
<div class="layui-progress-bar" lay-percent="{{= d.fill_progress }}"></div>
</div>
{{# } else { }}

@ -117,9 +117,9 @@
{ title: '填报状态', align: 'center', width: "10%", templet: '#status-Templet' },
{ title: '填报时间', field: 'fill_time', align: 'center', width: "15%" },
{ title: '联系人', field: 'person_name', align: 'center', width: "15%" },
{ title: '电话', field: 'telephone', align: 'center', width: "15%" },
{ title: '邮', field: 'email', align: 'center', width: "10%" },
{ title: '操作', align: 'center', width: "20%", toolbar: '#table-bar' }
{ title: '电话', field: 'telephone', align: 'center', width: "10%" },
{ title: '邮', field: 'email', align: 'center', width: "10%" },
{ title: '操作', align: 'center', width: "15%", toolbar: '#table-bar' }
]],
skin: 'line',
defaultToolbar: []

Loading…
Cancel
Save