Files

30 lines
723 B
JavaScript
Raw Normal View History

2023-10-11 11:27:47 +08:00
import api from './api'
2023-11-14 17:21:03 +08:00
import { VUE_APP_API_URL } from '@/config'
2023-10-11 11:27:47 +08:00
/**
* 使用手机 + 验证码登录
*/
export function smsLogin(data) {
2023-11-14 17:21:03 +08:00
return api.post('/member/auth/sms-login', data, {login: false})
2023-10-11 11:27:47 +08:00
}
/**
* 使用手机 + 验证码登录
*/
export function sendSmsCode(data) {
2023-11-14 17:21:03 +08:00
return api.post('/member/auth/send-sms-code', data, {login: false})
2023-10-11 11:27:47 +08:00
}
/**
* 小程序
*/
export function weixinLogin(data) {
2023-11-14 17:21:03 +08:00
return api.post('/member/auth/weixin-mini-app-login', data, {login: false})
2023-10-11 11:27:47 +08:00
}
2023-11-14 17:21:03 +08:00
// 用户协议地址
export const userAgreementUrl = `${ VUE_APP_API_URL }/system/dict-data/agreement/1`
// 隐私协议地址
export const privacyAgreementUrl = `${ VUE_APP_API_URL }/system/dict-data/agreement/2`