purchase-let/api/user.js

41 lines
934 B
JavaScript
Raw Normal View History

2024-04-28 18:08:57 +08:00
import request from '@/utils/request';
// 密码登录
export const userLoginApi = (data)=>{
return request.post('/login/account', data);
}
2024-04-30 16:24:55 +08:00
// 微信登录
export const userLoginWeixinApi = (data)=>{
return request.post('/login/mnpLogin', data);
}
2024-04-28 18:08:57 +08:00
// 添加地址
export const addressCreateApi = (data)=>{
return request.post('/user/address/create', data);
}
// 修改地址
export const addressEditApi = (data)=>{
return request.post('/user/address/edit', data);
}
// 删除地址
export const addressDeleteApi = (data)=>{
return request.post('/user/address/delete', data);
}
// 地址列表
export const addressListsApi = (data)=>{
2024-04-29 10:44:50 +08:00
return request.get('/user/address/lists', data);
2024-04-28 18:08:57 +08:00
}
// 地址详情
export const addressDetailApi = (data)=>{
2024-04-29 10:44:50 +08:00
return request.get('/user/address/detail', data);
2024-04-30 16:24:55 +08:00
}
// 自提点列表
export const merchantListApi = (data)=>{
return request.get('/merchant/merchant/lists', data);
2024-04-28 18:08:57 +08:00
}