uni-events-helper-wx
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.

96 lines
2.1 KiB

3 years ago
3 years ago
3 years ago
3 years ago
  1. import http from '@/nxTemp/config/requestConfig'
  2. import config from "@/nxTemp/config/index.config.js";
  3. // 用户登录
  4. export function postLogin(data) {
  5. return http.post(`${config.baseUrl}/gaMatchAssistant/login`, data ,{
  6. needLogin:false //未登录前操作取消登录验证
  7. });
  8. }
  9. //发送验证码
  10. export function postSendSMS(data) {
  11. return http.post(`${config.baseUrl}/gaMatchAssistant/captchaSms/send`, data,{
  12. // needLogin:false //未登录前操作取消登录验证
  13. });
  14. }
  15. /**
  16. * @description: 小程序授权手机号码
  17. * @param
  18. code: loginRes.code,
  19. appid: this.APPID,
  20. encryptedData: e.detail.encryptedData,
  21. iv: e.detail.iv,
  22. * @return: {*}
  23. * @author:
  24. */
  25. export function wechatGetPhoneNumber(data) {
  26. return http.post(`${config.baseUrl}/user/wechatGetPhoneNumber`, data);
  27. }
  28. /**
  29. * @description: 赛事列表
  30. * @param {*}
  31. * token
  32. page
  33. page_size
  34. */
  35. export function matchList(data) {
  36. return http.post(`${config.baseUrl}/gaMatchAssistant/match/list`, data);
  37. }
  38. /**
  39. * @description: 赛程列表(赛程打分)
  40. * @param {*}
  41. * token
  42. match_id
  43. page
  44. page_size
  45. */
  46. export function matchScheduleList(data) {
  47. return http.post(`${config.baseUrl}/gaMatchAssistant/matchSchedule/list`, data);
  48. }
  49. /**
  50. * @description: 赛程打分
  51. * @param
  52. * schedule_id 赛程id
  53. order_no 赛事订单号
  54. score 要设置的分数
  55. schedule_son_id 赛程子id
  56. */
  57. export function scoreSave(data) {
  58. return http.post(`${config.baseUrl}/gaMatchAssistant/matchSchedule/scoreSave`, data);
  59. }
  60. /**
  61. * @description: 参赛成员(赛程打分)
  62. * @param {*}
  63. * brand_id
  64. match_id
  65. page
  66. page_size
  67. */
  68. export function matchScoreMemberList(data) {
  69. return http.post(`${config.baseUrl}/gaMatchAssistant/matchScore/memberList`, data);
  70. }
  71. /**
  72. * @description: 赛程打分
  73. * @param {*}
  74. * brand_id
  75. * order_no
  76. * scode
  77. */
  78. export function matchScoreSave(data) {
  79. return http.post(`${config.baseUrl}/gaMatchAssistant/match/scoreSave`, data);
  80. }
  81. /**
  82. * @description: 录入数据-数据名称列表
  83. * @param {*}
  84. * brand_id, order_no
  85. */
  86. export function randOcondList(data) {
  87. return http.post(`${config.baseUrl}/gaMatchAssistant/rankConf/list`, data);
  88. }