新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
12
api/auth.js
12
api/auth.js
@ -1,25 +1,26 @@
|
||||
import api from './api'
|
||||
import { requestUtil } from '@/utils/request'
|
||||
|
||||
import { VUE_APP_API_URL } from '@/config'
|
||||
|
||||
/**
|
||||
* 使用手机 + 验证码登录
|
||||
*/
|
||||
export function smsLogin(data) {
|
||||
return api.post('/member/auth/sms-login', data, {login: false})
|
||||
return requestUtil.post('/member/auth/sms-login', data, {login: false})
|
||||
}
|
||||
|
||||
/**
|
||||
* 使用手机 + 验证码登录
|
||||
*/
|
||||
export function sendSmsCode(data) {
|
||||
return api.post('/member/auth/send-sms-code', data, {login: false})
|
||||
return requestUtil.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})
|
||||
return requestUtil.post('/member/auth/weixin-mini-app-login', data, {login: false})
|
||||
}
|
||||
|
||||
// 用户协议地址
|
||||
@ -27,3 +28,6 @@ export const userAgreementUrl = `${ VUE_APP_API_URL }/system/dict-data/agreement
|
||||
|
||||
// 隐私协议地址
|
||||
export const privacyAgreementUrl = `${ VUE_APP_API_URL }/system/dict-data/agreement/2`
|
||||
|
||||
// 分销商协议地址
|
||||
export const distributionAgreementUrl = `${ VUE_APP_API_URL }/system/dict-data/get-stream?dictType=distributor_agreement&label=分销商协议`
|
||||
|
Reference in New Issue
Block a user