mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 15:51:52 +08:00
27 lines
442 B
JavaScript
27 lines
442 B
JavaScript
|
import { request } from '@/common/js/request.js'
|
||
|
|
||
|
// 手机号 + 密码登陆
|
||
|
export function login(mobile, password) {
|
||
|
const data = {
|
||
|
mobile,
|
||
|
password
|
||
|
}
|
||
|
return request({
|
||
|
url: 'login',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 手机号 + 验证码登陆
|
||
|
export function smsLogin(mobile, code) {
|
||
|
const data = {
|
||
|
mobile,
|
||
|
code
|
||
|
}
|
||
|
return request({
|
||
|
url: 'sms-login',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|