login_VSees.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  7. <title>VSees Login</title>
  8. <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
  9. </head>
  10. <style type="text/css">
  11. html,body{
  12. width: 100%;
  13. height: 100%;
  14. margin: 0px;
  15. }
  16. *{
  17. margin: 0px;
  18. padding: 0px;
  19. box-sizing: border-box;
  20. }
  21. #t_div{
  22. width: 100%;
  23. /*height: 200px;*/
  24. height: 25%;
  25. background-color:#66677C;
  26. margin-top: 0px;
  27. margin-bottom: -20px;
  28. /*border-bottom: solid 1px red;*/
  29. }
  30. #c_div{
  31. width: 100%;
  32. /*height: 430px ;*/
  33. height: 50%;
  34. margin-top: 0px;
  35. margin-bottom: 0px;
  36. border-top: solid 1px #66677C;
  37. position: relative;
  38. background-color: yellow;
  39. }
  40. #c_leftdiv{
  41. width: 50%;
  42. /*height: 430px;*/
  43. height: 100%;
  44. margin: 0px;
  45. background-color: #7ab6b6;
  46. float: left;
  47. /*position: relative;*/
  48. /*left: 50px;
  49. top: 100px;*/
  50. }
  51. #c_rightdiv{
  52. width: 50%;
  53. /*height: 430px;*/
  54. height: 100%;
  55. margin: 0px;
  56. background-color: #e5cfaa;
  57. float: left;
  58. }
  59. /*阴影部分*/
  60. /*#c_centerdiv-shadow{
  61. width: 350px;
  62. height: 390px;
  63. background-color: #a09177;
  64. position: absolute;
  65. left: 0;
  66. right: 0;
  67. margin-left: 37.3%;
  68. margin-top: 3.5%;
  69. z-index: 1;
  70. }*/
  71. #c_centerdiv > p{
  72. font-size: 20px;
  73. font-weight: 100;
  74. margin-left: 100px;
  75. margin: 10px auto;
  76. text-align: center;
  77. }
  78. #c_centerdiv > img{
  79. margin-left: 10px;
  80. }
  81. #password_text{
  82. width: 90%;
  83. height: 50px;
  84. line-height: 30px;
  85. /*background-color: red;*/
  86. font-size: 40px;
  87. }
  88. #c_centerdiv > img{
  89. display: block;
  90. position: relative;
  91. left: 0px;
  92. top: 10px;
  93. padding: 0px;
  94. }
  95. #c_centerdiv{
  96. background-color: #fff;
  97. position: absolute;
  98. left: 0;
  99. right: 0;
  100. margin-left: auto;
  101. margin-right: auto;
  102. top: 50%;
  103. margin-top: -193px;
  104. /*margin-top: -15.1%;*/
  105. z-index: 10;
  106. }
  107. #c_centerdiv{
  108. width: 350px;
  109. height: 390px;
  110. padding: 50px 30px;
  111. }
  112. #c_center_title{
  113. width: 100%;
  114. height: 19%;
  115. /*height: 55px;*/
  116. color: #555;
  117. font-size: 30px;
  118. font-weight: 600;
  119. font-family: 'Arimo', sans-serif;
  120. text-align: center;
  121. /*background-color: red;*/
  122. }
  123. #c_center_div1{
  124. width: 100%;
  125. height: 19%;
  126. /*height: 55px;*/
  127. color: #555;
  128. font-size: 10px;
  129. font-weight: 600;
  130. font-family: 'Arimo', sans-serif;
  131. text-align: center;
  132. /*background-color: red;*/
  133. }
  134. #c_center_div2{
  135. width: 100%;
  136. height: 13.8%;
  137. text-align: center;
  138. padding: 0px;
  139. position: relative;
  140. /*background-color: yellow;*/
  141. margin-top: 0px;
  142. margin-top: 30px;
  143. }
  144. /*图片*/
  145. #c_center_div2 > img{
  146. position: absolute;
  147. left: 0px;
  148. top: 0px;
  149. }
  150. #user_text{
  151. width: 100%;
  152. /*width: 80%;*/
  153. height: 40px;
  154. float: right;
  155. background-color: #fff;
  156. font-size: 17px;
  157. letter-spacing: 1px;
  158. box-shadow: 0 0 0 0 transparent;
  159. border: none;
  160. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  161. border-radius: 0;
  162. display: inline-block;
  163. font-family: "微软雅黑";
  164. }
  165. #password_text{
  166. width: 100%;
  167. /*width: 80%;*/
  168. height: 40px;
  169. float: right;
  170. background-color: #fff;
  171. font-size: 17px;
  172. letter-spacing: 1px;
  173. box-shadow: 0 0 0 0 transparent;
  174. border: none;
  175. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  176. border-radius: 0;
  177. display: inline-block;
  178. font-family: "微软雅黑";
  179. }
  180. #c_center_div4{
  181. width: 100%;
  182. height: 16%;
  183. text-align: center;
  184. padding: 0px;
  185. position: relative;
  186. /* background-color: yellow;*/
  187. margin-top: 0px;
  188. margin-top: 30px;
  189. }
  190. #login_button{
  191. width: 50.7%;
  192. height: 100%;
  193. /*background-image: url(img/按钮初始界面.png);*/
  194. outline:none;
  195. border:none;
  196. background-color: #7ab6b6;
  197. border-radius:30px;
  198. font-size: large;
  199. color: white;
  200. font-family: Arial;
  201. }
  202. #login_button:hover{
  203. cursor: pointer;
  204. }
  205. #b_div{
  206. width: 100%;
  207. /*height: 120px;*/
  208. height: 27.2%;
  209. background-color:#66677C;
  210. }
  211. </style>
  212. <body marginheight="0px" marginwidth="0px">
  213. <div id="t_div">
  214. </div>
  215. <div id="c_div">
  216. <div id="c_leftdiv"></div>
  217. <div id="c_rightdiv"></div>
  218. <div id="c_centerdiv">
  219. <div id="c_center_title">
  220. VSees
  221. </div>
  222. <div id="c_center_div1">
  223. Please enter your VSees account for association
  224. </div>
  225. <div id="c_center_div2">
  226. <!--<img src="img/用户.png"/>-->
  227. <input id="user_text" type="text" placeholder="Account"/>
  228. </div>
  229. <div id="c_center_div2">
  230. <!--<img src="img/密码.png"/>-->
  231. <input id="password_text" type="password" placeholder="Password"/>
  232. </div>
  233. <div id="c_center_div4">
  234. <input type="button" id="login_button" value="LOGIN" onclick="Login();return false;"/>
  235. </div>
  236. </div>
  237. <!--阴影部分-->
  238. <!-- <div id="c_centerdiv-shadow">-->
  239. </div>
  240. </div>
  241. <div id="b_div">
  242. </div>
  243. <script type="text/javascript">
  244. function Login() {
  245. var user = document.getElementById("user_text");
  246. var pwd = document.getElementById("password_text");
  247. if (user.value.length > 0) {
  248. //console.log("user: " + user.value);
  249. //console.log("pwd: " + pwd.value);
  250. var params = ("user=" + user.value + "&pwd=" + pwd.value + "&state={{ state }}" + "&client_id={{ client_id }}"
  251. + "&response_type={{ response_type }}" + "&scope={{ scope }}" + "&redirect_uri={{ redirect_uri }}"
  252. + "&skill_name={{ skill_name }}");
  253. $.get("/oa2/login", params, function (reUrl) {
  254. //alert(reUrl);
  255. let data = JSON.parse(reUrl)
  256. if(data['code']===0){
  257. console.log('request start')
  258. window.location = data['res'];
  259. }else{
  260. alert(data['msg'])
  261. }
  262. });
  263. } else {
  264. alert("please input user and password");
  265. }
  266. }
  267. </script>
  268. </body>
  269. </html>