gesture-inputpassword.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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>
  22. <script src="./static/js/klm-vv.min.js"></script>
  23. <script src="./static/js/klm-axios-config.js"></script>
  24. <script src="./static/js/H5lock.js"> </script>
  25. <script>
  26. // 在 #app 标签下渲染一个组件
  27. let app = new Vue({
  28. el: '#app',
  29. data() {
  30. return {
  31. userimg:"./static/images/user-img-color@3x.png",
  32. timer:''
  33. }
  34. },
  35. mounted() {
  36. //- 初始化手势密码
  37. new H5lock({
  38. //- 单位:px
  39. //- 圆圈个数
  40. chooseType: 3,
  41. //- 连接线宽度
  42. linwidth: 2,
  43. //- 成功的颜色
  44. successcolor: '#2B84FF',
  45. //- 成功地背景色
  46. successbgcolor:'rgba(43, 132, 255, 0.1)',
  47. //- 失败地颜色
  48. wariningcolor:'#FF574D',
  49. //- 失败地背景色
  50. wariningbgcolor:'rgba(255, 87, 77, 0.1)',
  51. //- 初始化小圆点颜色
  52. initcolor:'#eee',
  53. //- 初始化小圆点大小 应该比滑动时小圆点小,不然会漏出来
  54. initr:12,
  55. //- 滑动时内部小圆点大小
  56. inr:12,
  57. //- 滑动时外部大圆点大小
  58. outr:29,
  59. //- 解锁半径
  60. range:29
  61. }).init();
  62. },
  63. methods: {
  64. goindex(){
  65. PublicLib.Goto({Url:'index'});
  66. }
  67. }
  68. });
  69. </script>
  70. </body>
  71. </html>