login.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. <link rel="stylesheet" href="./css/uform.css">
  9. <link rel="stylesheet" href="./css/couple.css">
  10. </head>
  11. <body style="background: url(./image/coupleItem1.png) no-repeat top/cover padding-box border-box;background-size: cover;">
  12. <div class="coupleItem">
  13. <form action="" class="coupleForm">
  14. <input type="text" class="account form-control" placeholder="用户名/手机号/邮箱" maxlength="30">
  15. <div class="coupleItemInfo"></div>
  16. <input type="password" class="password form-control" placeholder="密码" maxlength="32">
  17. <div class="coupleItemInfo passwordInfo"></div>
  18. <button type="button" class="loginSubmit" onclick="UserLogin()">登陆</button>
  19. </form>
  20. </div>
  21. </body>
  22. <script src="http://www.1473.cn/uform.js"></script>
  23. <script>
  24. UserLogin = function(){
  25. var account = $(".account")[0].value;
  26. var password = $(".password")[0].value;
  27. var passwordInfo = $(".passwordInfo")[0];
  28. U.UF.CD.loadAjaxCrossDomain(function () {
  29. U.A.Request(US.AUTH, ["UserLogin", account, password],function(r){
  30. console.log(r);
  31. U.A.Request(US.AUTH, ["GetUserLoginData", account], function(r){
  32. console.log(r);
  33. if(r.value!=false){
  34. window.location.href="http://couple.1473.cn/management.html?account="+account;
  35. }else{
  36. passwordInfo.innerText = "请输入正确的密码!"
  37. }
  38. })
  39. });
  40. });
  41. }
  42. </script>
  43. </html>