添加index.html和alter_info.html更新LoginUserInfo,和其他页面对main.js的引入

This commit is contained in:
Yang Zhao 2016-12-29 13:06:16 +00:00
parent 2a90c817b6
commit 8af2993f25
6 changed files with 16 additions and 1 deletions

View File

@ -161,7 +161,8 @@
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
<!-- Custom Scripts -->
<script src="include/main.js">
<script src="pages/include/main.js"></script>
<script>
$(document).ready(function(){
$.ajax({
type: "get",

View File

@ -144,6 +144,8 @@
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- date select and query -->
<!-- Custom Scripts -->
<script src="include/main.js"></script>
<script>
//alert("111");
$(document).ready(function(){
@ -182,6 +184,10 @@
200: function(data) {// 请求成功
alert("更新成功!");
window.location.reload();
// alter
LoginUserInfo.name=name;
LoginUserInfo.email=email;
LoginUserInfo.phone=phone;
},
401:function(){// 未授权
alert("未登录!");

View File

@ -143,6 +143,8 @@
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- date select and query -->
<!-- Custom Scripts -->
<script src="include/main.js"></script>
</body>
</html>

View File

@ -152,6 +152,8 @@
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- date select and query -->
<!-- Custom Scripts -->
<script src="include/main.js"></script>
</body>
</html>

View File

@ -259,6 +259,8 @@
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- date select and query -->
<!-- Custom Scripts -->
<script src="include/main.js"></script>
<script>
//alert("111");
$(document).ready(function(){

View File

@ -527,6 +527,8 @@
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- date select and query -->
<!-- Custom Scripts -->
<script src="include/main.js"></script>
</body>
</html>