1
13693261870
2022-09-16 762f2fb45db004618ba099aa3c0bd89dba1eb843
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>门户页面用户信息</title>
 
    <script src="../../../js/paramconfig.js"></script>
    <script>
        remoteToLoadJs('BootStrap4/assets/js/jquery.min.js');
    </script>
    <script>
        $(function () {
            $.ajax({
                url: '/org/user/info',
                type: 'post',
                dataType: "text",
                success: function (data) {
                    var json = eval('('+data+')');
                    if(json.code == 0) {
                        $("#username").text(json.user.chinesename);
                    }
                },
                error: function (e) {
                    alert(e.message);
                }
            });
        });
 
        function loginout() {
            var keys = document.cookie.match(/[^ =;]+(?=\=)/g);
            if(keys) {
                for(var i=keys.length;i--;) {
                    document.cookie = keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString();
                }
            }
            parent.window.location.href = "/logout";
            window.location.href = "/logout";
        }
 
        //修改个人信息
        function editUserInfo() {
            window.open("/lanwebapp/admin/userinfo_edit.html", "_blank");
        }
 
        //弹出修改密码窗口
        function openPasswordChangeLayer(){
            var parentwin = window.parent;
            parentwin.postMessage({ type: "modifypassword_show" }, "*");
        }
    </script>
</head>
<body>
<div style="width: 100%; height: 35px; margin-top: 10px; float: left;">
    <div style="margin-right: 20px; float: right;"><a
            style="color: rgb(48, 138, 243); font-size: 16px; text-decoration: none; cursor: pointer;"
            href="#" onclick="loginout();"> <img style="vertical-align: top;" src="/lanwebapp/image/liferay_userinfo/exit.png">&nbsp;&nbsp;安全退出
    </a></div>
    <div style="color: rgb(48, 138, 243); font-size: 16px; margin-right: 20px; float: right; cursor: pointer;"><img
            style="vertical-align: top;" src="/lanwebapp/image/liferay_userinfo/modifyuserinfo.png">&nbsp;&nbsp; <a
            style="color: rgb(48, 138, 243); font-size: 16px; text-decoration: none;"
            onclick="editUserInfo()">修改个人信息</a></div>
    <div style="color: rgb(48, 138, 243); font-size: 16px; margin-right: 20px; float: right; cursor: pointer;"><img
            style="vertical-align: top;" src="/lanwebapp/image/liferay_userinfo/modifypassword.png">&nbsp;&nbsp; <a
            style="color: rgb(48, 138, 243); font-size: 16px; text-decoration: none;"
            onclick="openPasswordChangeLayer()">修改密码</a></div>
    <div style="color: rgb(48, 138, 243); font-size: 16px; margin-right: 20px; float: right; cursor: pointer;"><img
            style="vertical-align: top;" src="/lanwebapp/image/liferay_userinfo/admin.png">&nbsp;&nbsp;<span id="username"></span>
    </div>
</div>
 
</body>
</html>