<!DOCTYPE html>
<html lang="zh">
<head>
    <title>Sooka-SSO-Server 认证中心-登录</title>
    <meta charset="utf-8"/>
    <base th:href="@{/}"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <link rel="stylesheet" href="./sa-res/login.css"/>
</head>
<body>
<div class="home-box">
    <div class="login-header">
        <img class="login-header-img" src="sa-res/images/logo-sj.png"/>
        <span class="login-h-text">首佳科技SSO平台</span>
        <div class="user-info" onmouseover="showUserInfo()" onmouseout="userInfoHide()">
            <img class="home-header-img"  th:src="${userInfo.avatar}" style="width:38px; height:38px; overflow: hidden; object-fit: cover;"/>
            <div class="user-info-content show-user" onmouseover="showUserInfo()" onmouseout="userInfoHide()">
                <span class="user-info-content-text">
                    姓名：<span th:text="${userInfo.username}"></span><br>
                    电话：<span th:text="${userInfo.phone}"></span><br>
                    登录次数：<span th:text="${userInfo.loginCount}"></span><br>
                    &nbsp;&nbsp;欢迎您登录本系统!
                </span>
                <button class="sj-u-btn s-btn logout-btn">退出登录</button>
            </div>
        </div>
    </div>
    <div id="userId" th:text="${userInfo.id}" style="display: none;"></div>
    <div class="home-container" id="container">
        <div class="home-btn-content" th:each="item : ${dataSource}" th:data="${item.intro}"
             th:onclick="jumpClick([[${item.intro}]])">
            <img class="home-content-img" th:src="${item.sysClientLogo}"/>
            <span class="h-span" th:text="${item.sysClientName}"></span>
        </div>
    </div>
</div>
<!-- scripts -->
<script src="./sa-res/jquery.min.js"></script>
<script src="./sa-res/layer/layer.js"></script>
<script src="./sa-res/login.js"></script>
<script>

    // 添加点击事件监听器
    function jumpClick(e) {
        window.location.href = e;
    }
</script>
</body>
</html>
