user-changepaypwd-2.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>修改支付密码2-创业帮</title>
  6. <meta name="keywords" content="修改支付密码2-创业帮">
  7. <meta name="description" content="修改支付密码2-创业帮">
  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="修改支付密码2-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="bgc-back nopb">
  18. <div id="app" v-cloak>
  19. <div class="tc">
  20. <van-row class="pt8 pb8">
  21. <van-col offset="7" span="10">
  22. <div class="f12 c999 pt32 pb16">{{tipText}}</div>
  23. </van-col>
  24. </van-row>
  25. </div>
  26. <van-password-input :value="value1" :gutter="1" :focused="showKeyboard" @focus="showKeyboard = true"></van-password-input>
  27. <!-- 数字键盘-->
  28. <van-number-keyboard v-model="value1" random-key-order :show="showKeyboard" @blur="showKeyboard = false"></van-number-keyboard>
  29. </div>
  30. <script src="./static/js/klm-vv.min.js"></script>
  31. <script src="./static/js/appfunc.min.js"></script>
  32. <script src="./static/js/klm-axios-config.js"></script>
  33. <script src="./static/js/publicfn.js"></script>
  34. <script>
  35. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  36. // 可以通过下面的方式手动注册
  37. Vue.use(vant.Lazyload);
  38. // 在 #app 标签下渲染一个按钮组件
  39. let app = new Vue({
  40. el: '#app',
  41. data() {
  42. return {
  43. tipText: '请重新设置6位数字支付密码',
  44. value1: '',
  45. showKeyboard: true,
  46. };
  47. },
  48. mounted() {
  49. },
  50. watch: {
  51. value1(value) {
  52. if (value.length === 6) {
  53. PublicLib.putCookieInfo('newpaypwd', value);
  54. this.successToast();
  55. } else {
  56. console.log('');
  57. };
  58. },
  59. },
  60. methods: {
  61. successToast(){
  62. setTimeout(()=>{
  63. PublicLib.Goto({Url:'user-changepaypwd-3'});
  64. },500);
  65. }
  66. }
  67. });
  68. </script>
  69. </body>
  70. </html>