officialPartnerGoldLog.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import axios from '@/libs/axios.js';
  2. // 交易记录列表
  3. export const getGoldLogList = params => {
  4. let url = `officialPartnerGoldLog/query/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios.request({
  8. url: url,
  9. method: 'post',
  10. data: params
  11. })
  12. };
  13. // 撤销单据
  14. export const GoldLogCancel = params => {
  15. return axios.request({
  16. url: `officialPartnerGoldLog/cancel/${params.id}`,
  17. method: 'get',
  18. })
  19. };
  20. // 总计乐豆数
  21. export const GoldLogTotal = params => {
  22. return axios.request({
  23. url: `officialPartnerGoldLog/total`,
  24. method: 'post',
  25. data: params
  26. })
  27. }
  28. // 根据手机号码查询用户乐豆余额
  29. export const queryldByMobile = params => {
  30. return axios.request({
  31. url: `customer/queryByMobile/${params.mobile}`,
  32. method: 'get',
  33. })
  34. };
  35. // 乐豆核销
  36. export const offPartnerHx = params => {
  37. return axios.request({
  38. url: `offPartner/verification`,
  39. method: 'post',
  40. data: params
  41. })
  42. }
  43. // 发送短信验证码
  44. export const sendVerifyCode = params => {
  45. return axios.request({
  46. url: `offPartner/sendVerifiCode/${params.mobile}`,
  47. method: 'get',
  48. })
  49. }
  50. // 校验验证码
  51. export const checkVerificationCode = params => {
  52. return axios.request({
  53. url: `offPartner/checkVerificationCode/${params.mobile}/${params.code}`,
  54. method: 'get',
  55. })
  56. }