feat: 代客下单更新,修复店铺列表编辑展示问题
This commit is contained in:
32
src/api/account/points.ts
Normal file
32
src/api/account/points.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import request from "@/utils/request";
|
||||
import { Account_BaseUrl } from "@/api/config";
|
||||
const baseURL = Account_BaseUrl + "/admin/points";
|
||||
const Api = {
|
||||
// 002-获取订单可用积分及抵扣金额(支付页面使用)
|
||||
|
||||
calcOrderUsablePoints(params: any) {
|
||||
return request<any>({
|
||||
url: `${baseURL}/member-points/calc-usable-points`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
},
|
||||
// 004-根据抵扣金额计算所需积分
|
||||
calcMoneyUsablePoints(params: any) {
|
||||
return request<any>({
|
||||
url: `${baseURL}/member-points/calc-used-points`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
},
|
||||
// 003-根据积分计算可抵扣金额
|
||||
calcPointsToMoney(params: any) {
|
||||
return request<any>({
|
||||
url: `${baseURL}/member-points/calc-deduction-amount`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export default Api;
|
||||
@@ -47,10 +47,28 @@ const API = {
|
||||
shopId: shopId
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取店铺用户详情
|
||||
get(params: getRequest) {
|
||||
return request({
|
||||
url: `${baseURL}/detail`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
}
|
||||
}
|
||||
export default API;
|
||||
|
||||
export interface getRequest {
|
||||
/**
|
||||
* 会员用户id 对应shopUserId
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 用户id 不传递id则按照userId和当前shopId查询 对应userId
|
||||
*/
|
||||
userId?: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
export interface getSummaryRequest {
|
||||
/**
|
||||
* 0 非vip 1 vip
|
||||
|
||||
@@ -19,6 +19,22 @@ const Api = {
|
||||
data
|
||||
});
|
||||
},
|
||||
//正扫
|
||||
scanPay(data: any) {
|
||||
return request<any>({
|
||||
url: `${baseURL}/scanPay`,
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
},
|
||||
//会员支付
|
||||
vipPay(data: any) {
|
||||
return request<any>({
|
||||
url: `${baseURL}/vipPay`,
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
},
|
||||
//现金支付
|
||||
cashPay(data: any) {
|
||||
return request<any>({
|
||||
@@ -26,7 +42,15 @@ const Api = {
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
}
|
||||
},
|
||||
// 获取店铺订单支付URL
|
||||
orderPayUrl(params: any) {
|
||||
return request<any>({
|
||||
url: `${baseURL}/shopPayApi/orderPayUrl`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user