123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <!DOCTYPE html>
- <html class="h100p">
- <head>
- <meta charset="utf-8">
- <title>忘记支付密码-创业帮</title>
- <meta name="keywords" content="忘记支付密码-创业帮">
- <meta name="description" content="忘记支付密码-创业帮">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="忘记支付密码-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- <style>.borderno{border:none;background-color:#f7f7f7;}</style>
- </head>
- <body class="h100p nopb bgcf7f7f7 ovh">
- <div id="app" v-cloak>
- <van-nav-bar class="bgcf7f7f7 user_rank_explan_title" left-arrow @click-left="goback" v-if="toptitleisshow">
- <template #left> <img src="./static/images/left.png" alt=""></template>
- </van-nav-bar>
- <div class="pt8 pb32 pl32 pr32">
- <div class="f24 c333 pb32">验证身份信息</div>
- <van-cell-group class="forgetpaypwd">
- <van-field class="forgetpaypwd_plr0 bgcf7f7f7" v-model="userinfo.RealName" placeholder="请输入真实姓名"> </van-field>
- <van-field class="forgetpaypwd_plr0 bgcf7f7f7" v-model="userinfo.Mobile" placeholder="请输入注册手机号"> </van-field>
- <van-field class="forgetpaypwd_plr0 bgcf7f7f7" v-model="userinfo.CertId" placeholder="请输入姓名对应的身份证号"> </van-field>
- <van-field class="bottom_line forgetpaypwd_plr0 bgcf7f7f7" v-model="userinfo.MobileCode" type="number" placeholder="请输入验证码">
- <template #button>
- <van-button class="borderno" plain color="#ff502a" size="small" v-if="codeisclick" @click="getsmscode">获取验证码</van-button>
- <van-button class="borderno fl" plain size="small" color="#ff502a" disabled v-else>{{countdown}}s</van-button>
- </template>
- </van-field>
- </van-cell-group>
- <div class="pt16 bc333" v-cloak>
- <van-button class="border_radius8" type="primary" block color="#FFD500" @click="changepaypwd">确认修改</van-button>
- </div>
- </div>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/appfunc.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script src="./static/js/publicfn.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
-
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- toptitleisshow:false,
- userinfo:{
- Id:'',
- RealName: '',
- CertId:'',
- Mobile:'',
- MobileCode:''
- },
- codeisclick:true,
- countdown:60
- };
- },
- created() {
- this.toptitleisshow = toptitleisshow;
- this.userinfo.Id = PublicLib.getCookieInfo('userId');
- },
- methods: {
- goback(){
- PublicLib.GoBack({Level:1});
- },
- async getsmscode(){
- //- 验证码发送间隔
- if(verification(this.userinfo.Mobile)) return ;
- this.codeisclick = false;
- setTimeout(()=>{
- this.codeisclick = true;
- },60000);
- const timer = setInterval(()=>{
- this.countdown--;
- if(this.countdown === 0) {
- this.countdown = 60;
- clearInterval(timer);
- }
- },1000);
- const res = await postRequest('api/v1/mobilecodecheck/sendsms',JSON.stringify({Mobile:this.userinfo.Mobile}));
- if(res.status === '1' ) {
- tips('验证码发送成功,请注意查收!');
- };
- },
- async changepaypwd(){
- //- 验证信息是否完整
- if(this.userinfo.Id === '' || this.userinfo.RealName === '' || this.userinfo.CertId === '' || this.userinfo.Mobile === '' || this.userinfo.MobileCode === '' ) {
- return tips('请将信息填写完整!');
- };
- //- 验证手机号码
- if(verification(this.userinfo.Mobile)) return ;
- //- 验证身份证格式
- if(!verificationIdCardNumber(this.userinfo.CertId)){
- return tips('身份证格式不正确!');
- };
- const res = await postRequest('api/v1/users/checkforgetpwd?t='+Math.random(6),JSON.stringify(this.userinfo));
- if(res.status !== '1') {
- return tips(res.info);
- };
- PublicLib.Goto({Url:'user-changepaypwd-2'});
- }
- }
- });
- </script>
- </body>
- </html>
|