球星卡微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
734 B

3 years ago
  1. import request from '@/common/request.js'
  2. // 个人中心
  3. export async function my() {
  4. return await request({
  5. url: '/api/v1/my',
  6. method: 'post',
  7. })
  8. }
  9. // 获取优惠码
  10. export async function checkAgentCode(code) {
  11. return await request({
  12. url: '/api/v1/check_agent_code',
  13. data:{code:code},
  14. method: 'post',
  15. })
  16. }
  17. // 获取优惠码
  18. export async function couponSearch() {
  19. return await request({
  20. url: '/api/v1/coupon_search',
  21. method: 'post',
  22. })
  23. }
  24. // 更新优惠码
  25. export async function couponUpdate() {
  26. return await request({
  27. url: '/api/v1/coupon_update',
  28. method: 'post',
  29. })
  30. }
  31. // 获取系统信息
  32. export async function sysInfo() {
  33. return await request({
  34. url: '/api/v1/sys_info',
  35. method: 'post',
  36. })
  37. }