feat: 短信发送

This commit is contained in:
cgd_mac 2022-02-26 18:03:52 +08:00
parent b7804faedc
commit d9e2960173
1 changed files with 7 additions and 6 deletions

View File

@ -348,12 +348,13 @@ export default {
getSmsCaptcha({ phone: values.mobile, type: 'register' })
.then(res => {
setTimeout(hide, 2500)
$notification['success']({
message: '提示',
description: '验证码获取成功,您的验证码为:' + res.result.captcha,
duration: 8
})
hide()
this.$message.success('发送成功!')
// $notification['success']({
// message: '',
// description: '' + res.result.captcha,
// duration: 8
// })
})
.catch(err => {
setTimeout(hide, 1)