登录新增图文验证

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