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.
97 lines
2.1 KiB
97 lines
2.1 KiB
import http from '@/nxTemp/config/requestConfig'
|
|
import config from "@/nxTemp/config/index.config.js";
|
|
|
|
// 用户登录
|
|
export function postLogin(data) {
|
|
return http.post(`${config.baseUrl}/gaMatchAssistant/login`, data ,{
|
|
needLogin:false //未登录前操作取消登录验证
|
|
});
|
|
}
|
|
|
|
//发送验证码
|
|
export function postSendSMS(data) {
|
|
return http.post(`${config.baseUrl}/gaMatchAssistant/captchaSms/send`, data,{
|
|
// needLogin:false //未登录前操作取消登录验证
|
|
});
|
|
}
|
|
|
|
/**
|
|
* @description: 小程序授权手机号码
|
|
* @param
|
|
code: loginRes.code,
|
|
appid: this.APPID,
|
|
encryptedData: e.detail.encryptedData,
|
|
iv: e.detail.iv,
|
|
* @return: {*}
|
|
* @author:
|
|
*/
|
|
export function wechatGetPhoneNumber(data) {
|
|
return http.post(`${config.baseUrl}/user/wechatGetPhoneNumber`, data);
|
|
}
|
|
|
|
/**
|
|
* @description: 赛事列表
|
|
* @param {*}
|
|
* token
|
|
page
|
|
page_size
|
|
*/
|
|
export function matchList(data) {
|
|
return http.post(`${config.baseUrl}/gaMatchAssistant/match/list`, data);
|
|
}
|
|
|
|
/**
|
|
* @description: 赛程列表(赛程打分)
|
|
* @param {*}
|
|
* token
|
|
match_id
|
|
page
|
|
page_size
|
|
*/
|
|
export function matchScheduleList(data) {
|
|
return http.post(`${config.baseUrl}/gaMatchAssistant/matchSchedule/list`, data);
|
|
}
|
|
|
|
/**
|
|
* @description: 赛程打分
|
|
* @param
|
|
* schedule_id 赛程id
|
|
order_no 赛事订单号
|
|
score 要设置的分数
|
|
schedule_son_id 赛程子id
|
|
*/
|
|
export function scoreSave(data) {
|
|
return http.post(`${config.baseUrl}/gaMatchAssistant/matchSchedule/scoreSave`, data);
|
|
}
|
|
|
|
/**
|
|
* @description: 参赛成员(赛程打分)
|
|
* @param {*}
|
|
* brand_id
|
|
match_id
|
|
page
|
|
page_size
|
|
*/
|
|
export function matchScoreMemberList(data) {
|
|
return http.post(`${config.baseUrl}/gaMatchAssistant/matchScore/memberList`, data);
|
|
}
|
|
|
|
/**
|
|
* @description: 赛程打分
|
|
* @param {*}
|
|
* brand_id
|
|
* order_no
|
|
* scode
|
|
*/
|
|
export function matchScoreSave(data) {
|
|
return http.post(`${config.baseUrl}/gaMatchAssistant/match/scoreSave`, data);
|
|
}
|
|
|
|
/**
|
|
* @description: 录入数据-数据名称列表
|
|
* @param {*}
|
|
* brand_id, order_no
|
|
*/
|
|
export function randOcondList(data) {
|
|
return http.post(`${config.baseUrl}/gaMatchAssistant/rankConf/list`, data);
|
|
}
|