thirdLogin.ftl 859 B

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  6. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <title>第三方登录</title>
  8. </head>
  9. <body>
  10. 登陆中...
  11. <script>
  12. window.onload = function () {
  13. setTimeout(function (){
  14. var thirdLoginInfo = "${token!''}";
  15. if(!thirdLoginInfo){
  16. var thirdLoginModel = '${thirdLoginModel!""}';
  17. if(thirdLoginModel){
  18. thirdLoginInfo = JSON.parse(thirdLoginModel);
  19. thirdLoginInfo['isObj'] = true
  20. }
  21. }
  22. window.opener.postMessage(thirdLoginInfo, "*");
  23. window.close();
  24. },1000)
  25. }
  26. </script>
  27. </body>
  28. </html>