user-verification.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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">
  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">
  27. <van-button class="border_radius8" type="primary" block :disabled="inputval !== '' ? false : true" color="#FF502A" @click="surebtn">确定</van-button>
  28. </div>
  29. </div>
  30. <script src="./static/js/klm-vv.min.js"></script>
  31. <script src="./static/js/klm-axios-config.js"></script>
  32. <script>
  33. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  34. // 可以通过下面的方式手动注册
  35. Vue.use(vant.Lazyload);
  36. // 在 #app 标签下渲染一个按钮组件
  37. let app = new Vue({
  38. el: '#app',
  39. data() {
  40. return {
  41. toptitleisshow:false,
  42. inputval:''
  43. };
  44. },
  45. created(){
  46. this.toptitleisshow = toptitleisshow;
  47. },
  48. methods: {
  49. async surebtn(){
  50. const Id = PublicLib.getCookieInfo('userId');
  51. const res = await getRequest('/api/v1/users/checkloginpwd',JSON.stringify({Id,LoginPwd:this.inputval}));
  52. if(res.status !== '1'){
  53. this.inputval = '';
  54. return tips(res.info);
  55. };
  56. //- 跳转具体页面
  57. switch(PublicLib.getCookieInfo("settingto")
  58. //- PublicLib.getCookieInfo("setpaypwd");
  59. ){
  60. case 'changeCheckcard':
  61. PublicLib.Goto({Url:'user-changebank', Jump: 1});
  62. break;
  63. case 'forgetpaypwd':
  64. PublicLib.Goto({Url:'user-forgetpaypwd', Jump: 1});
  65. break;
  66. case 'changephone':
  67. PublicLib.Goto({Url:'user-changephone', Jump: 1});
  68. break;
  69. }
  70. },
  71. goback(){
  72. PublicLib.GoBack({Level:1});
  73. }
  74. }
  75. });
  76. </script>
  77. </body>
  78. </html>