30 lines
723 B
JavaScript
30 lines
723 B
JavaScript
import api from './api'
|
|
import { VUE_APP_API_URL } from '@/config'
|
|
|
|
/**
|
|
* 使用手机 + 验证码登录
|
|
*/
|
|
export function smsLogin(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})
|
|
}
|
|
|
|
// 用户协议地址
|
|
export const userAgreementUrl = `${ VUE_APP_API_URL }/system/dict-data/agreement/1`
|
|
|
|
// 隐私协议地址
|
|
export const privacyAgreementUrl = `${ VUE_APP_API_URL }/system/dict-data/agreement/2`
|