v1.0
This commit is contained in:
23
api/auth.js
Normal file
23
api/auth.js
Normal file
@ -0,0 +1,23 @@
|
||||
import api from './api'
|
||||
|
||||
/**
|
||||
* 使用手机 + 验证码登录
|
||||
*/
|
||||
export function smsLogin(data) {
|
||||
console.log('--> % smsLogin % data:\n', data)
|
||||
return api.post('/member/auth/sms-login', data, { login: false })
|
||||
}
|
||||
|
||||
/**
|
||||
* 使用手机 + 验证码登录
|
||||
*/
|
||||
export function sendSmsCode(data) {
|
||||
return api.post('/member/auth/send-sms-code', data, { login: false })
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序
|
||||
*/
|
||||
export function weixinLogin(data) {
|
||||
return api.post('/member/auth/weixin-mini-app-login', data, { login: false })
|
||||
}
|
Reference in New Issue
Block a user