登录新增图文验证

This commit is contained in:
2022-10-12 10:01:32 +08:00
parent 1619e53ad1
commit c8159718c4
6 changed files with 15 additions and 50 deletions

View File

@@ -24,7 +24,6 @@
hover-class="none" url="/pages/vip/agreement?id=4">隐私政策</navigator>
</view>
<view class="auth-other" v-if="isKeyAuth">
<button @click="login('Akey')">使用本机号码一键登录</button>
</view>
</view>
@@ -106,7 +105,8 @@
icon: 'none',
mask: true,
duration: 2000
})
})
},
// 获取图片验证码
@@ -120,6 +120,9 @@
})
return;
}
this.captchaCode = ''
this.captchaKey = ''
this.captchaImg = ''
this.showCaptchaCode = true;
captcha().then(res => {
this.captchaKey = res.key;
@@ -176,6 +179,8 @@
this.sendCode = smsTime + 's后重新获取';
smsTime -= 1;
}, 1000);
this.captchaKey = ''
this.captchaCode = ''
}).catch((err) => {
console.log(err)
this.captchaCode = ''

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long