<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

    <title>用户信息管理</title>

    <link rel="stylesheet" href="/css/common/common.css">
    <link rel="stylesheet" href="/css/client/user.h5.css">
    <link href="/ref/layui-v2.6.8/layui/css/layui.css" rel="stylesheet" type="text/css" />

    <script src="/ref/jquery/jquery-3.4.1.js" type="text/javascript"></script>
    <script src="/ref/layui-v2.6.8/layui/layui.js" type="text/javascript"></script>

    <script>
        if(!(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent))) {
            window.location.href = "/client/chat";
        }
    </script>

</head>
<body>

    <center>

       <div class="user-header-container">

           <img id="curr-user-photo" src="https://coderutil.oss-cn-beijing.aliyuncs.com/photo/file_3d754db912d0447abdbff91e4ca374c0.png?x-oss-process=image/resize,m_fill,w_50,h_50">
           <span id="username">程序员王七七</span>
           <button id="update-user-info-btn">
            <svg t="1731337962939" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8849" width="20" height="20"><path d="M515.441778 236.032a28.444444 28.444444 0 1 0-40.220445 40.220444L711.111111 512.113778l-235.861333 235.861333a28.444444 28.444444 0 0 0 40.220444 40.220445l255.687111-255.687112a28.359111 28.359111 0 0 0 8.334223-20.423111 28.359111 28.359111 0 0 0-8.334223-20.394666L515.413333 236.032z" fill="#515151" p-id="8850"></path></svg>
           </button>
       </div>

    </center>
    <div id="h5-footer"></div>
    <input id="fileInput" type="file" style="display: none">
</body>

<script>
    // 加载底部footer
    $("#h5-footer").load("/h5/footer");
</script>

<script src="/js/client/user.js"></script>
<script>
    const fileInput = document.getElementById('fileInput');
    // 为文件输入框添加变化事件监听器，以便在文件选择后上传
    fileInput.addEventListener('change', function() {
        // 检查是否选择了文件
        if (this.files.length > 0) {
            const file = this.files[0]; // 获取选择的文件
            uploadFile(file); // 调用上传文件的函数
        }
    });

</script>
</html>