point.js 474 B

12345678910111213141516171819
  1. import request from '@/sheep/request';
  2. const PointApi = {
  3. // 获得用户佣金记录分页
  4. getPointRecordPage: (params) => {
  5. if (params.addStatus === undefined) {
  6. delete params.addStatus
  7. }
  8. const queryString = Object.keys(params)
  9. .map((key) => encodeURIComponent(key) + '=' + params[key])
  10. .join('&');
  11. return request({
  12. url: `/member/point/record/page?${queryString}`,
  13. method: 'GET',
  14. });
  15. }
  16. };
  17. export default PointApi;