login.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>登录</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="renderer" content="webkit">
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <meta name="keywords" content="登录">
  10. <meta name="description" content="登录">
  11. <link rel="shortcut icon" href="../../favicon.ico">
  12. <link rel="stylesheet" type="text/css" href="../../css/font-awesome.min.css"/>
  13. <link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
  14. <link rel="stylesheet" type="text/css" href="../../plugins/artDialog/6.0.5/api/css/ui-dialog.css"/>
  15. <link rel="stylesheet" type="text/css" href="../../css/style.min.css"/>
  16. <link href="../../plugins/toastr/toastr.min.css" rel="stylesheet">
  17. <link rel="stylesheet" type="text/css" href="../../css/cross.css"/>
  18. <link rel="stylesheet" type="text/css" href="login.css"/>
  19. </head>
  20. <body>
  21. <div id="main">
  22. <div class="row">
  23. <div class="col-sm-8 left-img">
  24. <img src="../../images/icon_chahua.png" />
  25. </div>
  26. <div id="loginForm" class="col-sm-4">
  27. <div class="tabs-container">
  28. <ul class="nav nav-tabs">
  29. <li :class="{'active': type==1}" @click="changeType(1)"><a>手机号登录</a>
  30. </li>
  31. <li :class="{'active': type==2}" @click="changeType(2)"><a>验证码登录</a>
  32. </li>
  33. </ul>
  34. <div class="tab-content">
  35. <div class="tab-pane" :class="{'active': type==1}">
  36. <div class="panel-body">
  37. <form id="form1" class="m-t" role="form" onsubmit="return false;">
  38. <div class="form-group">
  39. <input class="form-control" type="text" maxlength="11" v-model="mobile" placeholder="请输入手机号码">
  40. </div>
  41. <div class="form-group">
  42. <input class="form-control" :type="eyeIsOpen?'text':'password'" v-model="password" placeholder="初始密码为手机号码后六位">
  43. <i class="fa" :class="eyeIsOpen? 'fa-eye': 'fa-eye-slash'"></i>
  44. </div>
  45. <div class="form-group" style="display: -webkit-flex;display: flex;">
  46. <input class="form-control" type="text" v-model="imgCaptcha" placeholder="请输入图形验证码" style="-webkit-flex: 1;flex: 1;">
  47. <img :src="imgCode" style="width: 120px;height: 34px;" @click="getImgCode"/>
  48. </div>
  49. <button type="submit" class="btn btn-success block full-width m-b" @click="login">登 录</button>
  50. </form>
  51. </div>
  52. </div>
  53. <div class="tab-pane" :class="{'active': type==2}">
  54. <div class="panel-body">
  55. <form id="form2" class="m-t" role="form" onsubmit="return false;">
  56. <div class="form-group">
  57. <input class="form-control" type="text" maxlength="11" v-model="mobile" placeholder="请输入手机号码">
  58. </div>
  59. <div class="form-group">
  60. <input class="form-control" type="text" v-model="captcha" placeholder="请输入短信验证码">
  61. <a class="getCaptcha" :class="{'disabled': countdown}" @click="getCaptcha">{{infoText}}</a>
  62. </div>
  63. <div class="form-group" style="display: -webkit-flex;display: flex;">
  64. <input class="form-control" type="text" v-model="imgCaptcha" placeholder="请输入图形验证码" style="-webkit-flex: 1;flex: 1;">
  65. <img :src="imgCode" style="width: 120px;height: 34px;" @click="getImgCode"/>
  66. </div>
  67. <button type="submit" class="btn btn-success block full-width m-b" @click="login">登 录</button>
  68. </form>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <script src="../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  77. <script src="../../js/jquery-2.2.4.js"></script>
  78. <script src="../../js/bootstrap.min.js"></script>
  79. <script src="../../js/validate/jquery.validate.min.js"></script>
  80. <script src="../../js/validate/messages_zh.min.js"></script>
  81. <script src="../../js/security.js"></script>
  82. <script src="../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  83. <script src="../../plugins/toastr/toastr.min.js"></script>
  84. <script src="../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  85. <script src="../../js/util.js" type="text/javascript" charset="utf-8"></script>
  86. <script src="../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  87. <script src="../../plugins/artDialog/6.0.5/api/js/dialog-plus.js" type="text/javascript" charset="utf-8"></script>
  88. <script src="login.js"></script>
  89. </body>
  90. </html>