api.js
380 Bytes
const http = uni.$u.http
// 获取token
export const postTokenApi = (params, config = {}) => http.post('/auth/v1/login', params, config)
// 获取用户信息
export const getUserInfoApi = (data) => http.get('/user/v1/detail', {
params: data
})
// 获取短信验证码
export const getSmsCodeApi = (data) => http.get('/basic/v1/sms_code/get', {
params: data
})