zyejMAll-mobile/sheep/api/member/point.js

20 lines
476 B
JavaScript
Raw Permalink Normal View History

2024-08-07 10:31:42 +08:00
import request from '@/sheep/request';
const PointApi = {
// 获得用户积分记录分页
getPointRecordPage: (params) => {
if (params.addStatus === undefined) {
2024-08-07 21:40:27 +08:00
delete params.addStatus;
2024-08-07 10:31:42 +08:00
}
const queryString = Object.keys(params)
.map((key) => encodeURIComponent(key) + '=' + params[key])
.join('&');
return request({
url: `/member/point/record/page?${queryString}`,
method: 'GET',
});
2024-08-07 21:40:27 +08:00
},
2024-08-07 10:31:42 +08:00
};
export default PointApi;