gesture-inputpassword.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>输入手势密码-创业帮</title>
  6. <meta name="keywords" content="输入手势密码-创业帮">
  7. <meta name="description" content="输入手势密码-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="输入手势密码-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="gesture">
  18. <div id="app" v-cloak>
  19. <div class="df cm loginimg"><img :src="userimg" alt=""></div>
  20. <div id="goon" @click="goindex"></div>
  21. <div id="passwordiswrong" @click="forgetpassword"></div>
  22. <div class="lock"></div>
  23. </div>
  24. <script src="./static/js/klm-vv.min.js"></script>
  25. <script src="./static/js/appfunc.min.js"></script>
  26. <script src="./static/js/klm-axios-config.js"></script>
  27. <script src="./static/js/publicfn.js"></script>
  28. <script src="./static/js/H5lock.js"> </script>
  29. <script>
  30. // 在 #app 标签下渲染一个组件
  31. let app = new Vue({
  32. el: '#app',
  33. data() {
  34. return {
  35. userimg:"./static/images/user-img-color@3x.png",
  36. timer:'',
  37. }
  38. },
  39. mounted() {
  40. //- 初始化手势密码
  41. new H5lock({
  42. //- 单位:px
  43. //- 圆圈个数
  44. chooseType: 3,
  45. //- 连接线宽度
  46. linwidth: 2,
  47. //- 成功的颜色
  48. successcolor: '#2B84FF',
  49. //- 成功地背景色
  50. successbgcolor:'rgba(43, 132, 255, 0.1)',
  51. //- 失败地颜色
  52. wariningcolor:'#FF574D',
  53. //- 失败地背景色
  54. wariningbgcolor:'rgba(255, 87, 77, 0.1)',
  55. //- 初始化小圆点颜色
  56. initcolor:'#eee',
  57. //- 初始化小圆点大小 应该比滑动时小圆点小,不然会漏出来
  58. initr:12,
  59. //- 滑动时内部小圆点大小
  60. inr:12,
  61. //- 滑动时外部大圆点大小
  62. outr:29,
  63. //- 解锁半径
  64. range:29
  65. }).init();
  66. },
  67. methods: {
  68. goindex(){
  69. PublicLib.GotoMain();
  70. //- PublicLib.Goto({Url:'index'});
  71. },
  72. forgetpassword(){
  73. PublicLib.Goto({Url:'user-login'});
  74. PublicLib.putCookieInfo('passwordxx', '');
  75. PublicLib.putCookieInfo('chooseType', '');
  76. PublicLib.putCookieInfo('step', 'close');
  77. },
  78. }
  79. });
  80. </script>
  81. </body>
  82. </html>