step1 申请appid
step2 引用
<script src="https://ssl.captcha.qq.com/TCaptcha.js"></script>
step3 调用
new TencentCaptcha('腾讯验证码APPID', (rsp)=>{
if(rsp.ret===0){
//我的验证码通过后的逻辑写在此
}else{
this.$vux.toast.show({
text: '请完成滑块验证',
type: 'warn'
})
}
},{});
网友评论