mall-uniapp/api/member/auth.js

24 lines
489 B
JavaScript
Raw Normal View History

import request from "@/utils/request.js";
2023-08-19 11:24:24 +00:00
// 发送手机验证码
export function sendSmsCode(mobile, scene) {
return request.post('app-api/member/auth/send-sms-code', {
mobile,
scene
});
}
// 校验手机验证码
export function validateSmsCode(mobile, scene, code) {
return request.post('app-api/member/auth/validate-sms-code', {
mobile,
scene,
code
});
}
// 登出系统
export function logout() {
return request.post('app-api/member/auth/logout');
}