12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <head>
- <meta charset="UTF-8">
- <title>扫码绑定简历</title>
- </head>
- <style>
- .container{
- height: 100vh;
- display: flex;
- /*align-items: center;*/
- justify-content: center;
- }
- .container > div{
- width: 300px;
- margin-top: 200px;
- }
- h1{
- font-size:30px;
- }
- p {
- font-size:20px;
- }
- </style>
- <body class="p-3">
- <div class="container">
- <div>
- <h1>请告知我们人事小伙伴为您查找简历吧... <br> 请稍等..</h1>
- <!-- 显示用户的 UUID -->
- <p class="alert alert-info">您的扫码标识: <strong>{{.UUID}}</strong></p>
- </div>
- </div>
- <script>
- var uuid = "{{.UUID}}";
- // 建立 SSE 连接,监听后端绑定事件
- var source = new EventSource("/resume/events?uuid=" + encodeURIComponent(uuid));
- source.addEventListener('bind', function(e) {
- var data = JSON.parse(e.data);
- // 当绑定后自动跳转到页面2,将 uuid 和 resume_id 作为参数传递
- window.location.href = "https://jybx2-webtest.jydev.jianyu360.com/succbi/zpgl/app/zpgl.app/biographical_notes.spg?:user=resume_visitor&:password=visitor123¬es_id=" + data.resume_id;
- }, false);
- source.onerror = function(e) {
- console.error("SSE error", e);
- };
- </script>
- </body>
- </html>
|