user-verification.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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="bgc-back nopb pt0" style="padding-top:0;">
  18. <div id="app" v-cloak>
  19. <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="登录密码验证" v-if="toptitleisshow" @click-left="goback">
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. </van-nav-bar>
  22. <div class="verification_title f14 c666 tc">输入登录密码以验证您的身份</div>
  23. <div class="verification_input pt16 ml16 mr16">
  24. <input type="password" v-model="inputval">
  25. </div>
  26. <div class="pt16 pl16 pr16 bc333">
  27. <van-button class="border_radius8" type="primary" block :disabled="inputval !== '' ? false : true" color="#FFD500" @click="surebtn">确定</van-button>
  28. </div>
  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. toptitleisshow:false,
  44. inputval:''
  45. };
  46. },
  47. created(){
  48. this.toptitleisshow = toptitleisshow;
  49. },
  50. methods: {
  51. surebtn:undebounce(async function(){
  52. const Id = PublicLib.getCookieInfo('userId');
  53. const res = await getRequest('api/v1/users/checkloginpwd?t='+Math.random(6),JSON.stringify({Id,LoginPwd:this.inputval}));
  54. if(res.status !== '1'){
  55. this.inputval = '';
  56. return tips(res.info);
  57. };
  58. //- 跳转具体页面
  59. switch(PublicLib.getCookieInfo("settingto")
  60. ){
  61. case 'changeCheckcard':
  62. PublicLib.Goto({Url:'user-changebank', Jump: 1});
  63. break;
  64. case 'forgetpaypwd':
  65. PublicLib.Goto({Url:'user-forgetpaypwd', Jump: 1});
  66. break;
  67. case 'changephone':
  68. PublicLib.Goto({Url:'user-changephone', Jump: 1});
  69. break;
  70. };
  71. }),
  72. goback(){
  73. PublicLib.GoBack({Level:1});
  74. }
  75. }
  76. });
  77. </script>
  78. </body>
  79. </html>