2023-05-17 15:25:16 +08:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询会员档次信息
|
|
|
|
*/
|
|
|
|
export function memberGradeInfo(){
|
2023-05-19 16:09:25 +08:00
|
|
|
return request.get('api/order/member/memberGradeInfo', {})
|
2023-05-17 15:25:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取当前登录账号的充值记录
|
|
|
|
*/
|
2023-05-18 18:03:06 +08:00
|
|
|
export function memberOrderInfo(){
|
2023-05-19 16:09:25 +08:00
|
|
|
return request.get('api/order/member/memberOrderInfo', {})
|
2023-05-17 15:25:16 +08:00
|
|
|
}
|
|
|
|
|
2023-05-25 14:33:27 +08:00
|
|
|
/**
|
|
|
|
* 根据当前手机号获取账号的充值记录
|
|
|
|
*/
|
|
|
|
export function memberOrderInfoByPhone(phone){
|
|
|
|
return request.get(`api/order/member/memberOrderInfoByPhone?phone=${phone}`, {})
|
|
|
|
}
|
|
|
|
|
2023-05-24 16:59:54 +08:00
|
|
|
/**
|
|
|
|
* 查询权益档位信息
|
|
|
|
*/
|
|
|
|
export function query(phone){
|
|
|
|
return request.get(`shop/refund-fee-record/query?phone=${phone}`, {})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询档位返费信息
|
|
|
|
*/
|
|
|
|
export function memberQuery(reportId){
|
|
|
|
return request.get(`shop/refund-fee-record/query-item?reportId=${reportId}`, {})
|
|
|
|
}
|
|
|
|
|
2023-05-23 12:03:27 +08:00
|
|
|
/**
|
|
|
|
* 根据手机号查询档次信息
|
|
|
|
*/
|
|
|
|
export function memberByHomeGradeInfo(phone){
|
|
|
|
return request.get(`api/order/member/memberByHomeGradeInfo?phone=${phone}`, {})
|
|
|
|
}
|
2023-05-22 13:29:42 +08:00
|
|
|
/**
|
|
|
|
* 会员头部信息
|
|
|
|
*/
|
|
|
|
export function memberHeadInfo(){
|
|
|
|
return request.get('api/order/member/memberHeadInfo', {})
|
|
|
|
}
|
|
|
|
|
2023-05-17 15:25:16 +08:00
|
|
|
/**
|
|
|
|
* 会员充值
|
|
|
|
*/
|
|
|
|
export function memberTopUp(data) {
|
2023-05-19 16:09:25 +08:00
|
|
|
return request.post('api/order/member/memberTopUp',data);
|
2023-05-17 15:25:16 +08:00
|
|
|
}
|
2023-05-19 16:09:25 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 申请退款
|
|
|
|
*/
|
|
|
|
export function memberApplyRefund(data) {
|
|
|
|
return request.post('api/order/member/memberApplyRefund',data);
|
2023-05-22 13:29:42 +08:00
|
|
|
}
|
2023-05-30 17:15:26 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* "获取当前登录账号为推广员的推广会员记录
|
|
|
|
*/
|
|
|
|
export function promoterOrderInfo(data) {
|
|
|
|
return request.post('api/order/member/promoterOrderInfo',data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* "获取当前登录发展会员数量统计
|
|
|
|
*/
|
|
|
|
export function promoterOrderCount(type) {
|
|
|
|
return request.get(`api/order/member/promoterOrderCount?type=${type}`);
|
|
|
|
}
|