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.

153 lines
3.3 KiB

3 years ago
3 years ago
3 years ago
3 years ago
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 wechatGetPhoneNumberLogin(data) {
  26. // return http.post(`${config.baseUrl}/user/wechatGetPhoneNumber`, data,{
  27. return http.post(`${config.baseUrl}/gaMatchAssistant/getPhoneNumber`, data,{
  28. needLogin:false //未登录前操作取消登录验证
  29. });
  30. }
  31. /**
  32. * @description: 赛程-列表
  33. * @param {*}
  34. * token
  35. match_id
  36. page
  37. page_size
  38. */
  39. export function schedule_matchList(data) {
  40. return http.post(`${config.baseUrl}/gaMatchAssistant/matchSchedule/list`, data);
  41. }
  42. /**
  43. * @description: 赛程-打分
  44. * @param
  45. * schedule_id 赛程id
  46. order_no 赛事订单号
  47. score 要设置的分数
  48. schedule_son_id 赛程子id
  49. */
  50. export function schedule_scoreSave(data) {
  51. return http.post(`${config.baseUrl}/gaMatchAssistant/matchSchedule/scoreSave`, data);
  52. }
  53. /**
  54. * @description: 赛事-列表
  55. * @param {*}
  56. * token
  57. page
  58. page_size
  59. */
  60. export function matchList(data) {
  61. return http.post(`${config.baseUrl}/gaMatchAssistant/match/list`, data);
  62. }
  63. /**
  64. * @description: 赛事打分
  65. * @param {*}
  66. * brand_id
  67. * order_no
  68. * scode
  69. */
  70. export function scoreSave(data) {
  71. return http.post(`${config.baseUrl}/gaMatchAssistant/match/scoreSave`, data);
  72. }
  73. /**
  74. * @description: 参赛成员列表
  75. * @param {*}
  76. * brand_id
  77. match_id
  78. page
  79. page_size
  80. */
  81. export function scoreMemberList(data) {
  82. return http.post(`${config.baseUrl}/gaMatchAssistant/matchScore/memberList`, data);
  83. }
  84. /**
  85. * @description: 录入数据-数据名称列表
  86. * @param {*}
  87. * brand_id, order_no
  88. */
  89. export function rankOcondList(data) {
  90. return http.post(`${config.baseUrl}/gaMatchAssistant/rankConf/list`, data);
  91. }
  92. /**
  93. * @description: 录入数据-数据保存
  94. * @param {*}
  95. * brand_id, order_no , rank_data{id,val}
  96. */
  97. export function rankSave(data) {
  98. return http.post(`${config.baseUrl}/gaMatchAssistant/rankData/save`,data);
  99. }
  100. /**
  101. * @description: 消息中心-消息列表
  102. * @param {*}
  103. */
  104. export function msgList(data) {
  105. return http.post(`${config.baseUrl}/matchAssistant/msgCenter/list`,data);
  106. }
  107. /**
  108. * @description: 消息中心-未读消息数量
  109. * @param {*}
  110. */
  111. export function msgNum(data) {
  112. return http.post(`${config.baseUrl}/matchAssistant/msgCenter/notReadNum`,data);
  113. }
  114. /**
  115. * @description: 消息中心-消息详情
  116. * @param {*}
  117. */
  118. export function msgGet(data) {
  119. return http.post(`${config.baseUrl}/matchAssistant/msgCenter/get`,data);
  120. }
  121. /**
  122. * @description: 隐私协议
  123. * @param {*}
  124. * // /config/get?key=
  125. // UserRegistrationServiceAgreement 用户注册服务协议
  126. // PrivacyPolicy 隐私政策
  127. */
  128. export function configGet(data) {
  129. return http.post(`${config.baseUrl}/config/get`,data,{
  130. needLogin:false //未登录前操作取消登录验证
  131. });
  132. }