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