You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/common/api/index.js

24 lines
539 B

3 years ago
/*
* @Author: ch
* @Date: 2022-03-17 16:37:45
* @LastEditors: ch
* @LastEditTime: 2022-04-06 10:02:29
3 years ago
* @Description: file content
*/
3 years ago
import {MsbRequest, ToAsyncAwait} from '@/common/utils';
3 years ago
const BASE_URL = '/uc';
3 years ago
/**
* 登录
* @param {*} data
*/
export const ApiPostLogin = (data) => ToAsyncAwait(MsbRequest.post(`${BASE_URL}/user/login`, data));
3 years ago
/**
* 获取手机验证码
* @param {*} params
*/
export const ApiGetCode = (params) => ToAsyncAwait(MsbRequest.get(`${BASE_URL}/user/login/verificationCode`, params));
3 years ago