更新登录模板

支持短信验证码登录
This commit is contained in:
酱包
2022-04-27 11:31:18 +08:00
parent 878445a238
commit 5139117b13
20 changed files with 838 additions and 141 deletions

View File

@ -100,3 +100,30 @@ export function socialUnbind(type, unionId) {
}
})
}
// 获取登录验证码
export function sendLoginSmsCode(mobile,scene,uuid,code) {
var datas = {
mobile
,scene
,uuid,
code
};
return request({
url: '/system/send-login-sms-code',
method: 'post',
data: datas
})
}
// 短信验证码登录
export function smsLogin(mobile, code) {
return request({
url: '/system/sms-login',
method: 'post',
data: {
mobile,
code
}
})
}