purchase-let/api/user.js

193 lines
4.2 KiB
JavaScript
Raw Normal View History

2024-04-28 18:08:57 +08:00
import request from '@/utils/request';
// 密码登录
2024-06-05 18:45:30 +08:00
export const userLoginApi = (data) => {
return request.post('/login/account', data, {
noAuth: true
});
2024-04-28 18:08:57 +08:00
}
2024-04-30 16:24:55 +08:00
// 微信登录
2024-06-05 18:45:30 +08:00
export const userLoginWeixinApi = (data) => {
return request.post('/login/mnpLogin', data, {
noAuth: true
});
2024-04-30 16:24:55 +08:00
}
2024-04-28 18:08:57 +08:00
2024-05-06 11:51:21 +08:00
// 微信获取手机号
2024-06-05 18:45:30 +08:00
export const getMobileByMnpApi = (data) => {
return request.post('/user/User/getMobileByMnp', data, {
noAuth: true
});
2024-05-06 11:51:21 +08:00
}
// 更新信息
2024-06-05 18:45:30 +08:00
export const loginUpdateUserApi = (data) => {
return request.post('/login/updateUser', data);
2024-05-06 11:51:21 +08:00
}
2024-04-28 18:08:57 +08:00
// 添加地址
2024-06-05 18:45:30 +08:00
export const addressCreateApi = (data) => {
return request.post('/user/address/create', data);
2024-04-28 18:08:57 +08:00
}
// 修改地址
2024-06-05 18:45:30 +08:00
export const addressEditApi = (data) => {
return request.post('/user/address/edit', data);
2024-04-28 18:08:57 +08:00
}
// 删除地址
2024-06-05 18:45:30 +08:00
export const addressDeleteApi = (data) => {
return request.post('/user/address/delete', data);
2024-04-28 18:08:57 +08:00
}
// 地址列表
2024-06-05 18:45:30 +08:00
export const addressListsApi = (data) => {
return request.get('/user/address/lists', data);
2024-04-28 18:08:57 +08:00
}
// 地址详情
2024-06-05 18:45:30 +08:00
export const addressDetailApi = (data) => {
return request.get('/user/address/detail', data);
2024-04-30 16:24:55 +08:00
}
// 自提点列表
2024-06-05 18:45:30 +08:00
export const merchantListApi = (data) => {
return request.get('/merchant/merchant/lists', data);
}
// 充值
export const rechargeApi = (data) => {
return request.post('/user/user/recharge', data);
2024-06-06 17:50:25 +08:00
}
// 商品访问记录
export const productLogApi = (data) => {
return request.post('/user/UserVisit/productLog', data);
}
// 用户页面访问记录
export const htmlLogApi = (data) => {
return request.post('/user/UserVisit/htmlLog', data);
}
// 用户页面访问记录
export const userInfoApi = (data) => {
return request.post('/user/user/info', data);
}
// 充值规格
export const rechargeAmountApi = (data) => {
return request.post('/user/user/rechange_amount', data);
}
// 会员账户统计
export const capitalCountAPi = (data) => {
return request.post('/user/user/capital_count', data);
}
// 会员账户详情
export const chargeListApi = (data) => {
return request.post('/user/user/capital_flow', data);
2024-06-17 15:29:52 +08:00
}
export const vipRechargeApi = (data) => {
return request.post('/store/store/recharge', data);
}
2024-06-24 18:40:03 +08:00
export const reVipRechargeApi = (data) => {
return request.post('/store/store/again_recharge', data);
}
2024-06-17 15:29:52 +08:00
export const rechargeCountApi = (data) => {
return request.get('/store/store/recharge_count', data);
}
export const rechargeListsApi = (data) => {
return request.get('/user/UserRecharge/lists', data);
}
export const updataOrderApi = (data) => {
return request.get('/pay/wechatQuery', data);
2024-06-17 17:16:09 +08:00
}
export const getStoreByPhone = (data) => {
return request.get('/store/Store/detail', data);
2024-06-17 20:47:54 +08:00
}
export const getStoreInfo = (data) => {
return request.get('/config', data);
2024-06-22 18:52:03 +08:00
}
export const getUserLabel = (data) => {
return request.get('/user_label/UserLabel/lists', data);
}
export const getUserShip = (data) => {
return request.get('/user_ship/UserShip/lists', data);
}
export const getCreateLists = (data) => {
return request.get('/store/store/create_lists', data);
2024-06-22 19:21:24 +08:00
}
export const getloginSms = (data) => {
return request.post('/user/user/login_sms', data);
2024-06-25 15:34:24 +08:00
}
export const getReportingSms = (data) => {
return request.post('/user/user/reporting_sms', data);
2024-06-27 20:15:39 +08:00
}
export const uploadImg = (data) => {
return request.post('/Upload/image', data);
2024-06-28 19:53:27 +08:00
}
export const getVipInfoByPhone = (data) => {
return request.get('/user/user/other_user_info', data);
2024-06-29 18:25:37 +08:00
}
export const checkInventoryApi = (data) => {
return request.post('/order/order/checkInventory', data);
2024-07-03 17:37:41 +08:00
}
export const isUserShipApi = (data) => {
return request.post('/user_ship/UserShip/is_user_ship', data);
2024-07-05 18:18:02 +08:00
}
export const getRechargeListApi = (data) => {
return request.get('/user/UserRecharge/recharge_list', data);
2024-08-05 18:00:36 +08:00
}
/**
* 提现信息
*/
export const getCashInfoApi = (data) => {
return request.get('/user/User/cash_info', data);
}
/**
* 提交提现申请
*/
export const CashApplicationApi = (data) => {
return request.post('/user/User/cash_application', data);
}
/**
* 提现申请记录
*/
export const getCashRecordApi = (data) => {
return request.get('/user/User/cash_record', data);
2024-08-16 18:02:02 +08:00
}
/**
* 提交身份证
*/
export const UpdateIdCardApi = (data) => {
return request.post('/user/User/update_id_card', data);
2024-04-28 18:08:57 +08:00
}