purchase-let/api/user.js

57 lines
1.2 KiB
JavaScript

import request from '@/utils/request';
// 密码登录
export const userLoginApi = (data)=>{
return request.post('/login/account', data, {
noAuth: true
});
}
// 微信登录
export const userLoginWeixinApi = (data)=>{
return request.post('/login/mnpLogin', data, {
noAuth: true
});
}
// 微信获取手机号
export const getMobileByMnpApi = (data)=>{
return request.post('/user/User/getMobileByMnp', data, {
noAuth: true
});
}
// 更新信息
export const loginUpdateUserApi = (data)=>{
return request.post('/login/updateUser', data);
}
// 添加地址
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)=>{
return request.get('/user/address/lists', data);
}
// 地址详情
export const addressDetailApi = (data)=>{
return request.get('/user/address/detail', data);
}
// 自提点列表
export const merchantListApi = (data)=>{
return request.get('/merchant/merchant/lists', data);
}