123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
- <title>Zosi smart Login</title>
- <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
- </head>
- <style type="text/css">
- html,body{
- width: 100%;
- height: 100%;
- margin: 0px;
- }
- *{
- margin: 0px;
- padding: 0px;
- box-sizing: border-box;
- }
- #t_div{
- width: 100%;
- /*height: 200px;*/
- height: 25%;
- background-color:#66677C;
- margin-top: 0px;
- margin-bottom: -20px;
- /*border-bottom: solid 1px red;*/
- }
- #c_div{
- width: 100%;
- /*height: 430px ;*/
- height: 50%;
- margin-top: 0px;
- margin-bottom: 0px;
- border-top: solid 1px #66677C;
- position: relative;
- background-color: yellow;
-
- }
- #c_leftdiv{
- width: 50%;
- /*height: 430px;*/
- height: 100%;
- margin: 0px;
- background-color: #7ab6b6;
- float: left;
- /*position: relative;*/
- /*left: 50px;
- top: 100px;*/
- }
- #c_rightdiv{
- width: 50%;
- /*height: 430px;*/
- height: 100%;
- margin: 0px;
- background-color: #e5cfaa;
- float: left;
- }
- /*阴影部分*/
- /*#c_centerdiv-shadow{
- width: 350px;
- height: 390px;
- background-color: #a09177;
- position: absolute;
- left: 0;
- right: 0;
- margin-left: 37.3%;
- margin-top: 3.5%;
- z-index: 1;
- }*/
- #c_centerdiv > p{
- font-size: 20px;
- font-weight: 100px;
- margin-left: 100px;
- margin: 10px auto;
- text-align: center;
- }
-
- #c_centerdiv > img{
- margin-left: 10px;
- }
- #password_text{
- width: 90%;
- height: 50px;
- line-height: 30px;
- /*background-color: red;*/
- font-size: 40px;
-
- }
- #c_centerdiv > img{
- display: block;
- position: relative;
- left: 0px;
- top: 10px;
- padding: 0px;
- }
-
- #c_centerdiv{
- background-color: #fff;
- position: absolute;
- left: 0;
- right: 0;
- margin-left: auto;
- margin-right: auto;
- top: 50%;
- margin-top: -193px;
- /*margin-top: -15.1%;*/
- z-index: 10;
- }
- #c_centerdiv{
- width: 350px;
- height: 390px;
- padding: 50px 30px;
- }
- #c_center_title{
- width: 100%;
- height: 19%;
- /*height: 55px;*/
- color: #555;
- font-size: 30px;
- font-weight: 600;
- font-family: 'Arimo', sans-serif;
- text-align: center;
- /*background-color: red;*/
- }
- #c_center_div1{
- width: 100%;
- height: 19%;
- /*height: 55px;*/
- color: #555;
- font-size: 10px;
- font-weight: 600;
- font-family: 'Arimo', sans-serif;
- text-align: center;
- /*background-color: red;*/
- }
- #c_center_div2{
- width: 100%;
- height: 13.8%;
- text-align: center;
- padding: 0px;
- position: relative;
- /*background-color: yellow;*/
- margin-top: 0px;
- margin-top: 30px;
- }
- /*图片*/
- #c_center_div2 > img{
- position: absolute;
- left: 0px;
- top: 0px;
- }
- #user_text{
- width: 100%;
- /*width: 80%;*/
- height: 40px;
- float: right;
- background-color: #fff;
- font-size: 17px;
- letter-spacing: 1px;
- box-shadow: 0 0 0 0 transparent;
- border: none;
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
- border-radius: 0;
- display: inline-block;
- font-family: "微软雅黑";
- }
-
- #password_text{
- width: 100%;
- /*width: 80%;*/
- height: 40px;
- float: right;
- background-color: #fff;
- font-size: 17px;
- letter-spacing: 1px;
- box-shadow: 0 0 0 0 transparent;
- border: none;
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
- border-radius: 0;
- display: inline-block;
- font-family: "微软雅黑";
- }
- #c_center_div4{
- width: 100%;
- height: 16%;
- text-align: center;
- padding: 0px;
- position: relative;
- /* background-color: yellow;*/
- margin-top: 0px;
- margin-top: 30px;
- }
- #login_button{
- width: 50.7%;
- height: 100%;
- /*background-image: url(img/按钮初始界面.png);*/
- outline:none;
- border:none;
- background-color: #7ab6b6;
- border-radius:30px;
- font-size: large;
- color: white;
- font-family: Arial;
- }
- #login_button:hover{
- cursor: pointer;
- }
- #b_div{
- width: 100%;
- /*height: 120px;*/
- height: 27.2%;
- background-color:#66677C;
- }
-
- </style>
- <body marginheight="0px" marginwidth="0px">
- <div id="t_div">
- </div>
- <div id="c_div">
- <div id="c_leftdiv"></div>
- <div id="c_rightdiv"></div>
- <div id="c_centerdiv">
- <div id="c_center_title">
- ZOSI SMART
- </div>
- <div id="c_center_div1">
- Please enter your Zosi Smart account for association
- </div>
- <div id="c_center_div2">
- <!--<img src="img/用户.png"/>-->
- <input id="user_text" type="text" placeholder="Account"/>
- </div>
- <div id="c_center_div2">
- <!--<img src="img/密码.png"/>-->
- <input id="password_text" type="password" placeholder="Password"/>
- </div>
- <div id="c_center_div4">
- <input type="button" id="login_button" value="LOGIN" onclick="Login();return false;"/>
- </div>
- </div>
- <!--阴影部分-->
- <!-- <div id="c_centerdiv-shadow">-->
-
- </div>
- </div>
- <div id="b_div">
-
- </div>
- <script type="text/javascript">
- function Login() {
- var user = document.getElementById("user_text");
- var pwd = document.getElementById("password_text");
- if (user.value.length > 0) {
- //console.log("user: " + user.value);
- //console.log("pwd: " + pwd.value);
- var params = ("user=" + user.value + "&pwd=" + pwd.value + "&state={{ state }}" + "&client_id={{ client_id }}" + "&response_type={{ response_type }}" + "&scope={{ scope }}" + "&redirect_uri={{ redirect_uri }}");
- $.get("/oa2/login", params, function (reUrl) {
- //alert(reUrl);
- let data = JSON.parse(reUrl)
- if(data['code']===0){
- console.log('request start')
- window.location = data['res'];
- }else{
- alert(data['msg'])
- }
- });
- } else {
- alert("please input user and password");
- }
- }
- </script>
- </body>
- </html>
|