球星卡微信小程序
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.

59 lines
1.0 KiB

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. }
  38. // 获取系统消息列表
  39. export async function notify(page) {
  40. return await request({
  41. url: '/api/v1/notifys',
  42. method: 'post',
  43. data:{page:page}
  44. })
  45. }
  46. // 获取系统消息详情
  47. export async function notifyDetail(id) {
  48. return await request({
  49. url: '/api/v1/notify_detail',
  50. method: 'post',
  51. data:{id:id}
  52. })
  53. }