12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>修改支付密码1-创业帮</title>
- <meta name="keywords" content="修改支付密码1-创业帮">
- <meta name="description" content="修改支付密码1-创业帮">
- <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="修改支付密码1-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="bgc-back nopb ovh">
- <div id="app" v-cloak>
- <div class="tc">
- <van-row class="pt8 pb8">
- <van-col offset="7" span="10">
- <div class="f12 c999 pt32 pb16">{{tipText}}</div>
- </van-col>
- </van-row>
- </div>
- <van-password-input :value="value2" :gutter="1" :focused="showKeyboard" @focus="showKeyboard = true"></van-password-input>
- <!-- 数字键盘-->
- <van-number-keyboard v-model="value2" random-key-order :show="showKeyboard" @blur="showKeyboard = false"></van-number-keyboard>
- </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 {
- tipText: '请输入原支付密码,验证身份',
- value2: '',
- showKeyboard: true,
- userid:'',
- };
- },
- created() {
- //- 初始化密码
- this.userid = PublicLib.getCookieInfo('userId');
- },
- watch: {
- async value2(value) {
- if (value.length === 6) {
- //- 验证原支付密码
- const res = await getRequest('api/v1/users/checkpaypwd?t='+Math.random(6),JSON.stringify({Id:this.userid,PayPwd:this.value2}));
- if(res.status === '1'){
- this.successToast();
- }else{
- this.giveToast(res.info);
- };
- } else {
- };
- },
- },
- methods: {
- giveToast(data){
- vant.Toast({
- message:data,
- onClose: () => {
- this.value2 = '';
- }}
- );
- },
- successToast(){
- vant.Toast('密码正确');
- PublicLib.putCookieInfo('paypwd', true);
- setTimeout(()=>{
- PublicLib.Goto({Url:'user-changepaypwd-2'});
- },500);
- },
- },
- });
- </script>
- </body>
- </html>
|