login.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  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="Content-Type" content="text/html; charset=utf-8" />
  7. <link rel="icon" href="http://static.test.weifenghr.com/static/images/saas/qxt/layout/logo.ico">
  8. <style>
  9. body{
  10. font-size: 12px;
  11. min-width: 980px;
  12. }
  13. .sectionbg{
  14. position: fixed;
  15. inset: 0 0 0 0;
  16. color: #c4c3ca;
  17. background-color: #ffffff;
  18. top: 0;
  19. left: 0;
  20. right: 0;
  21. bottom: 0;
  22. }
  23. .loginPage {
  24. display: flex;
  25. }
  26. .loginPage_left {
  27. width: 50%;
  28. background-color: #ffffff;
  29. height: 100%;
  30. min-height: 100vh;
  31. background: url(http://static.test.weifenghr.com/static/images/saas/qxt/layout/login_bg.png);
  32. background-image: url(http://static.test.weifenghr.com/static/images/saas/qxt/layout/login_bg.png);
  33. background-size: auto 100%;
  34. background-position: left;
  35. background-repeat: no-repeat;
  36. }
  37. .logoinpage_left_toptext{
  38. position: fixed;
  39. left: 25%;
  40. top: 12%;
  41. width: 32rem;
  42. margin-left: -16rem;
  43. font-size: 24px;
  44. font-weight: 400;
  45. color: #2A3849;
  46. line-height: 2rem;
  47. }
  48. .loginPage_left_contant{
  49. width: 100%;
  50. height: 100vh;
  51. }
  52. .loginPage_left_head{
  53. position: relative;
  54. }
  55. .loginPage_left_head_logo{
  56. width: 18rem;
  57. position: fixed;
  58. top: 3%;
  59. left: 3%;
  60. }
  61. .section_retave{
  62. background-color: #ffffff;
  63. position: absolute;
  64. border-radius: 6px;
  65. right: 0;
  66. top: 0;
  67. box-shadow: 0 1px 20px #e7e7e787;
  68. width: 100%;
  69. height: 25rem;
  70. padding: 0 2rem;
  71. }
  72. .mb_pb{
  73. margin-top: 2rem;
  74. font-size: 16px;
  75. font-weight: 400;
  76. margin-right: 2rem;
  77. cursor: pointer;
  78. color: #62717B;
  79. text-align: left;
  80. }
  81. .loginPage_content_outsize{
  82. position: fixed;
  83. width: 26rem;
  84. height: 25rem;
  85. padding: 0 35px;
  86. top: 50%;
  87. right: 20%;
  88. z-index: 20;
  89. display: block;
  90. border-radius: 6px;
  91. margin-top: -16rem;
  92. margin-right: -10rem;
  93. }
  94. .loginPage_right_head{
  95. position: absolute;
  96. right: 0;
  97. top: 0;
  98. width: 3rem;
  99. z-index: 66;
  100. }
  101. .loginPage_content{
  102. display: block;
  103. position: relative;
  104. transition: all 600ms ease-out;
  105. }
  106. .card_front, .card_back {
  107. width: 100%;
  108. height: 100%;
  109. background-color: #ffffff;
  110. position: absolute;
  111. border-radius: 6px;
  112. left: 0;
  113. top: 0;
  114. -webkit-transform-style: preserve-3d;
  115. transform-style: preserve-3d;
  116. -webkit-backface-visibility: hidden;
  117. -moz-backface-visibility: hidden;
  118. -o-backface-visibility: hidden;
  119. backface-visibility: hidden;
  120. }
  121. .card_back {
  122. transform: rotateY(180deg);
  123. }
  124. .form-group{
  125. position: relative;
  126. display: block;
  127. margin: 0;
  128. margin: 1rem 0;
  129. }
  130. .form_inpstyle{
  131. position: relative;
  132. display: inline-flex;
  133. width: 100%;
  134. box-sizing: border-box;
  135. vertical-align: middle;
  136. height: 3rem;
  137. margin-bottom: 0.6rem;
  138. line-height: 3rem;
  139. border-radius: 6px;
  140. padding-left: 1.6rem;
  141. border: 1px solid #dcdfe6;
  142. }
  143. .form-group input:focus {
  144. border-color: #C6CDD2;
  145. outline: none;
  146. }
  147. .form-group input:hover {
  148. border-color: #C6CDD2;
  149. outline: none;
  150. }
  151. .form_inpstyle2{
  152. position: relative;
  153. display: inline-flex;
  154. width: 64%;
  155. box-sizing: border-box;
  156. vertical-align: middle;
  157. height: 3rem;
  158. margin-bottom: 0.6rem;
  159. line-height: 3rem;
  160. border-radius: 6px 0 0 6px;
  161. padding-left: 1.6rem;
  162. border: 1px solid #dcdfe6;
  163. }
  164. .margin_duoyu{
  165. margin-bottom: 1.2rem;
  166. }
  167. .btn_mt{
  168. width: 100%;
  169. font-size: 16px;
  170. font-weight: 400;
  171. color: #fff;
  172. border: 1px solid #5DAEF0;
  173. height: 3rem;
  174. background: #5DAEF0;
  175. border-radius: 2px;
  176. display: block;
  177. line-height: 3rem;
  178. text-align: center;
  179. }
  180. .loginPage_right_tip{
  181. padding-bottom: 2rem;
  182. font-size: 12px;
  183. font-weight: 400;
  184. color: #999999;
  185. padding-top: 0.1rem;
  186. width: 100%;
  187. }
  188. .loginPage_right_tip input{
  189. float: left;
  190. font-size: 12px;
  191. margin-right: 0.6rem;
  192. }
  193. .loginPage_right_tip a{
  194. color: #5DAEF0;
  195. font-size: 12px;
  196. text-decoration: none;
  197. }
  198. .loginPage_right_tip b{
  199. color: #FF6140;
  200. font-size: 12px;
  201. font-weight: normal;
  202. float: right;
  203. }
  204. .section{
  205. position: relative;
  206. width: 100%;
  207. display: block;
  208. }
  209. .position_relatefo [type="checkbox"]:checked,
  210. .position_relatefo [type="checkbox"]:not(:checked){
  211. position: absolute;
  212. left: -9999px;
  213. }
  214. .checkbox:checked + label,
  215. .checkbox:not(:checked) + label{
  216. position: relative;
  217. display: block;
  218. text-align: center;
  219. width: 60px;
  220. height: 60px;
  221. border-radius: 8px;
  222. padding: 0;
  223. float: right;
  224. cursor: pointer;
  225. background-color: transparent;
  226. }
  227. .checkbox:checked + label:before,
  228. .checkbox:not(:checked) + label:before{
  229. position: absolute;
  230. display: block;
  231. width: 60px;
  232. height: 60px;
  233. content: '';
  234. z-index: 20;
  235. top: 0px;
  236. left: 0px;
  237. background-image: url(http://static.test.weifenghr.com/static/images/saas/qxt/layout/login_lock.png);
  238. background-size: 100%;
  239. transition: all 0.5s ease;
  240. }
  241. .checkbox:checked + label:before {
  242. background-image: url(http://static.test.weifenghr.com/static/images/saas/qxt/layout/login_message.png);
  243. }
  244. .card-3d-wrap {
  245. position: relative;
  246. width: 480px;
  247. max-width: 100%;
  248. height: 400px;
  249. -webkit-transform-style: preserve-3d;
  250. transform-style: preserve-3d;
  251. perspective: 800px;
  252. margin-top: 60px;
  253. }
  254. .card-3d-wrapper {
  255. width: 100%;
  256. height: 100%;
  257. position:absolute;
  258. top: 0;
  259. left: 0;
  260. -webkit-transform-style: preserve-3d;
  261. transform-style: preserve-3d;
  262. transition: all 600ms ease-out;
  263. }
  264. .card-front, .card-back {
  265. width: 100%;
  266. height: 100%;
  267. background-color: #ffffff;
  268. background-position: bottom center;
  269. background-repeat: no-repeat;
  270. background-size: 300%;
  271. position: absolute;
  272. border-radius: 6px;
  273. left: 0;
  274. top: 0;
  275. -webkit-transform-style: preserve-3d;
  276. transform-style: preserve-3d;
  277. -webkit-backface-visibility: hidden;
  278. -moz-backface-visibility: hidden;
  279. -o-backface-visibility: hidden;
  280. backface-visibility: hidden;
  281. box-shadow: 0 1px 20px #e7e7e787;
  282. }
  283. .card-back {
  284. transform: rotateY(180deg);
  285. }
  286. .checkbox:checked ~ .card-3d-wrap .card-3d-wrapper {
  287. transform: rotateY(180deg);
  288. }
  289. .center-wrap{
  290. z-index: 20;
  291. display: block;
  292. padding: 1rem 2.6rem;
  293. }
  294. .form-group{
  295. position: relative;
  296. display: block;
  297. margin: 0;
  298. padding: 0;
  299. margin-bottom: 0.4rem;
  300. }
  301. .form-group p{
  302. position: absolute;
  303. bottom: -0.7rem;
  304. left: 0;
  305. color: #FF6140;
  306. }
  307. .loginPage_right_tip [type="checkbox"]:checked,
  308. .loginPage_right_tip [type="checkbox"]:not(:checked){
  309. position: relative;
  310. left: 0;
  311. color: #5DAEF0;
  312. }
  313. .bottom_title{
  314. font-size: 12px;
  315. margin-top: 1rem;
  316. font-weight: 400;
  317. color: #999999;
  318. line-height: 20px;
  319. text-align: center;
  320. }
  321. .yzm_btn{
  322. float: right;
  323. width: 36%;
  324. height: 3rem;
  325. background-color: #5DAEF0;
  326. color: #ffffff;
  327. border-radius: 0 6px 6px 0;
  328. line-height: 3rem;
  329. text-align: center;
  330. border: none;
  331. z-index: 66;
  332. }
  333. .logoinpage_left_checkmins{
  334. margin: 1rem 3rem;
  335. font-size: 16px;
  336. font-weight: 400;
  337. color: #62717B;
  338. }
  339. .login_check{
  340. width: 18px;
  341. height: 18px;
  342. float: left;
  343. margin-right: 0.6rem;
  344. margin-top: 0rem;
  345. margin-left: 1.6rem;
  346. }
  347. .logoinpage_left_checkmins span{
  348. float: left;
  349. line-height: 18px;
  350. }
  351. .about_top_tit{
  352. position: fixed;
  353. right: 3%;
  354. top: 3%;
  355. font-size: 14px;
  356. font-weight: 400;
  357. color: #62717B;
  358. }
  359. .about_top_tit span{
  360. margin-left: 2.2rem;
  361. }
  362. .about_bottom_tit{
  363. position: fixed;
  364. right: 0;
  365. bottom: 3%;
  366. width: 46%;
  367. font-size: 12px;
  368. font-weight: 400;
  369. color: #9DA8B0;
  370. padding: 0 2rem;
  371. /* transform: scale(0.8); */
  372. text-align: center;
  373. }
  374. .ins_shakekeyfram {
  375. animation: shakekeyfram 800ms ease-in-out;
  376. }
  377. @keyframes shakekeyfram {
  378. 10%, 90% { transform: translate3d(-2px, 0, 0); }
  379. 20%, 80% { transform: translate3d(+4px, 0, 0); }
  380. 30%, 70% { transform: translate3d(-6px, 0, 0); }
  381. 40%, 60% { transform: translate3d(+6px, 0, 0); }
  382. 50% { transform: translate3d(-6px, 0, 0); }
  383. }
  384. </style>
  385. <title>登录</title>
  386. </head>
  387. <body>
  388. <div class="sectionbg" id="mins_logins">
  389. <div class="loginPage">
  390. <div class="loginPage_left">
  391. <div class="loginPage_left_head">
  392. <img
  393. src="http://static.test.weifenghr.com/static/images/saas/qxt/layout/login_logo.png"
  394. class="loginPage_left_head_logo"
  395. />
  396. </div>
  397. <div class="about_top_tit">我要试用 <span>关于我们</span></div>
  398. <div class="about_bottom_tit">
  399. <p>备案号:京ICP 备11033355号-3 京公网安备:1101050202266 Copyright © 2014-2018 北京易才博普奥管理顾问有限公司 微蜂网版权所有 版权声明 </p>
  400. <p>【免责声明】本站部分信息来自互联网,如内容侵犯了您的版权,请与我们取得联系,我们会及时做出处理! 网站地图</p>
  401. </div>
  402. <div class="logoinpage_left_toptext">
  403. 快速为企业与员工提供入在离电子化签署服务
  404. <div class="logoinpage_left_checkmins">
  405. <img
  406. src="http://static.test.weifenghr.com/static/images/saas/qxt/layout/login_check.png"
  407. class="login_check"
  408. /><span>一键发起</span>
  409. <img
  410. src="http://static.test.weifenghr.com/static/images/saas/qxt/layout/login_check.png"
  411. class="login_check"
  412. /><span>批量签署</span>
  413. <img
  414. src="http://static.test.weifenghr.com/static/images/saas/qxt/layout/login_check.png"
  415. class="login_check"
  416. /><span>企业化定制</span>
  417. </div>
  418. </div>
  419. </div>
  420. <div class="loginPage_content_outsize">
  421. <div class="position_relatefo">
  422. <input class="checkbox" type="checkbox" id="reg-log" name="reg-log">
  423. <label for="reg-log"></label>
  424. <div class="card-3d-wrap">
  425. <div class="card-3d-wrapper">
  426. <div class="card-front">
  427. <div class="center-wrap">
  428. <div class="section">
  429. <h4 class="mb_pb">短信验证码登录</h4>
  430. <div class="form-group">
  431. <input type="email" name="logemail" class="form_inpstyle margin_duoyu" placeholder="账号" id="phone_num" autocomplete="off"/>
  432. <p id="phonenull"></p>
  433. </div>
  434. <div class="form-group">
  435. <input type="button" class="yzm_btn" id="send_phone" value="获取验证码" onclick="sendmin_code(this)" />
  436. <input type="password" name="logpass" class="form_inpstyle2" placeholder="输入验证码" id="phone_password" autocomplete="off"/>
  437. <!-- <div class="yzm_btn" id="mins_actbtn">获取验证码</div> -->
  438. </div>
  439. <div
  440. class="loginPage_right_tip"
  441. id="shakespear_message"
  442. >
  443. <input id="shakespear_message_check" type="checkbox" />
  444. 我同意<a
  445. href="https://www.weifenghr.com/issues/35774" target="_blank"
  446. >《微蜂网用户协议》</a><a href="https://www.weifenghr.com/issues/35775" target="_blank">《隐私声明》</a>
  447. </div>
  448. <div class="btn_mt" onclick="logins_message()">注册/登录</div>
  449. <div class="bottom_title">未注册手机验证后自动创建账号</div>
  450. </div>
  451. </div>
  452. </div>
  453. <div class="card-back">
  454. <div class="center-wrap">
  455. <div class="section">
  456. <h4 class="mb_pb">密码登录</h4>
  457. <div class="form-group">
  458. <input type="email" name="logemail" class="form_inpstyle margin_duoyu" placeholder="账号" id="logemail" autocomplete="off"/>
  459. <p id="passworldnull"></p>
  460. </div>
  461. <div class="form-group">
  462. <input type="password" name="logpass" class="form_inpstyle" placeholder="密码" id="logpass" autocomplete="off"/>
  463. </div>
  464. <div
  465. class="loginPage_right_tip"
  466. id="shakespear_lock"
  467. >
  468. <input id="shakespear_lock_check" type="checkbox" />
  469. 我同意<a
  470. href="https://www.weifenghr.com/issues/35774" target="_blank"
  471. >《微蜂网用户协议》</a><a href="https://www.weifenghr.com/issues/35775" target="_blank">《隐私声明》</a>
  472. <b>忘记密码?</b>
  473. </div>
  474. <div class="btn_mt" onclick="logins()">注册/登录</div>
  475. <div class="bottom_title">未注册手机验证后自动创建账号</div>
  476. </div>
  477. </div>
  478. </div>
  479. </div>
  480. </div>
  481. </div>
  482. </div>
  483. </div>
  484. </div>
  485. <script type="text/javascript">
  486. var xmlhttp = new XMLHttpRequest();
  487. var clock = '';
  488. var nums = 60;
  489. var btn = document.getElementById('send_phone');
  490. //创建xmlhttprequest对象
  491. // function createXMLHttpRequest(){
  492. // xmlhttp=new XMLHttpRequest(); //这里要判断IE的写法
  493. // }
  494. function startRequest(url, logemail, logpass) {
  495. xmlhttp.open("POST",url,true); //true:异步,false:同步
  496. xmlhttp.setRequestHeader('Content-Type', 'application/json');
  497. // xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded;charset=UTF-8");
  498. xmlhttp.onreadystatechange = handleStateChange;
  499. // let minsformdata = "userPhone="+logemail+"&password="+logpass+"&type=1&companyId=5736"
  500. // minsformdata = formData2Json(minsformdata)
  501. let minsformdata = {
  502. userPhone: logemail,
  503. password: logpass,
  504. validCode: "",
  505. type: 1,
  506. companyId: 5736
  507. }
  508. minsformdata = JSON.stringify(minsformdata)
  509. xmlhttp.send(minsformdata);
  510. }
  511. function handleStateChange() {
  512. if(xmlhttp.status==200){
  513. var txt=xmlhttp.responseText;
  514. if(txt !=null && txt !=""){
  515. console.log(txt);
  516. // 登录成功跳转
  517. window.location,href="http://qxq.test.weifenghr.com/contract/signContract?token="+txt.token
  518. }
  519. }
  520. }
  521. function tureegger() {
  522. let loginPage_content = document.getElementById('loginPage_content')
  523. loginPage_content.className = loginPage_content.className == 'loginPage_content_outsize' ? 'loginPage_content_outsize checked_select' : 'loginPage_content_outsize'
  524. }
  525. function logins() {
  526. let logemail = document.getElementById('logemail').value
  527. let logpass = document.getElementById('logpass').value
  528. if (logemail == '' || logpass == '') {
  529. document.getElementById('passworldnull').innerHTML = '请输入账号或密码';
  530. document.getElementById('passworldnull').className = 'ins_shakekeyfram';
  531. return
  532. }
  533. let mins_bool = document.getElementById('shakespear_lock_check').checked
  534. if (mins_bool) {
  535. document.getElementById('shakespear_lock').className = 'loginPage_right_tip'
  536. startRequest("/wfsaas-auth/login", logemail, logpass)
  537. } else {
  538. document.getElementById('shakespear_lock').className = 'loginPage_right_tip ins_shakekeyfram'
  539. }
  540. setTimeout(() => {
  541. document.getElementById('shakespear_lock').className = 'loginPage_right_tip'
  542. }, 800)
  543. }
  544. function logins_message() {
  545. let logemail = document.getElementById('phone_num').value
  546. let logpass = document.getElementById('phone_password').value
  547. if (logemail == '' || logpass == '') {
  548. document.getElementById('phonenull').innerHTML = '请输入账号或密码';
  549. document.getElementById('phonenull').className = 'ins_shakekeyfram';
  550. return
  551. } else {
  552. document.getElementById('phonenull').innerHTML = '';
  553. }
  554. let mins_bool = document.getElementById('shakespear_message_check').checked
  555. if (mins_bool) {
  556. document.getElementById('shakespear_message').className = 'loginPage_right_tip'
  557. startRequest("/wfsaas-auth/login", logemail, logpass)
  558. } else {
  559. document.getElementById('shakespear_message').className = 'loginPage_right_tip ins_shakekeyfram'
  560. }
  561. setTimeout(() => {
  562. document.getElementById('shakespear_message').className = 'loginPage_right_tip'
  563. }, 800)
  564. }
  565. function sendmin_code(thisBtn) {
  566. btn = thisBtn;
  567. btn.disabled = true; //将按钮置为不可点击
  568. btn.style = "background-color: #999999;"
  569. btn.value = nums+'秒后重新获取';
  570. clock = setInterval(doLoop, 1000); //一秒执行一次
  571. }
  572. function doLoop() {
  573. nums--;
  574. if(nums > 0){
  575. btn.value = nums+'秒后重新获取';
  576. }else{
  577. clearInterval(clock); //清除js定时器
  578. btn.disabled = false;
  579. btn.style = "background-color: #5DAEF0;"
  580. btn.value = '点击发送验证码';
  581. nums = 60; //重置时间
  582. }
  583. }
  584. </script>
  585. </body>
  586. </html>