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

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 wechatGetPhoneNumberLogin(data) {
// return http.post(`${config.baseUrl}/user/wechatGetPhoneNumber`, data,{
return http.post(`${config.baseUrl}/gaMatchAssistant/getPhoneNumber`, data,{
needLogin:false //未登录前操作取消登录验证
});
}
/**
* @description: 赛程-列表
* @param {*}
* token
match_id
page
page_size
*/
export function schedule_matchList(data) {
return http.post(`${config.baseUrl}/gaMatchAssistant/matchSchedule/list`, data);
}
/**
* @description: 赛程-打分
* @param
* schedule_id 赛程id
order_no 赛事订单号
score 要设置的分数
schedule_son_id 赛程子id
*/
export function schedule_scoreSave(data) {
return http.post(`${config.baseUrl}/gaMatchAssistant/matchSchedule/scoreSave`, data);
}
/**
* @description: 赛事-列表
* @param {*}
* token
page
page_size
*/
export function matchList(data) {
return http.post(`${config.baseUrl}/gaMatchAssistant/match/list`, data);
}
/**
* @description: 赛事打分
* @param {*}
* brand_id
* order_no
* scode
*/
export function scoreSave(data) {
return http.post(`${config.baseUrl}/gaMatchAssistant/match/scoreSave`, data);
}
/**
* @description: 参赛成员列表
* @param {*}
* brand_id
match_id
page
page_size
*/
export function scoreMemberList(data) {
return http.post(`${config.baseUrl}/gaMatchAssistant/matchScore/memberList`, data);
}
/**
* @description: 录入数据-数据名称列表
* @param {*}
* brand_id, order_no
*/
export function rankOcondList(data) {
return http.post(`${config.baseUrl}/gaMatchAssistant/rankConf/list`, data);
}
/**
* @description: 录入数据-数据保存
* @param {*}
* brand_id, order_no , rank_data{id,val}
*/
export function rankSave(data) {
return http.post(`${config.baseUrl}/gaMatchAssistant/rankData/save`,data);
}
/**
* @description: 消息中心-消息列表
* @param {*}
*/
export function msgList(data) {
return http.post(`${config.baseUrl}/matchAssistant/msgCenter/list`,data);
}
/**
* @description: 消息中心-未读消息数量
* @param {*}
*/
export function msgNum(data) {
return http.post(`${config.baseUrl}/matchAssistant/msgCenter/notReadNum`,data);
}
/**
* @description: 消息中心-消息详情
* @param {*}
*/
export function msgGet(data) {
return http.post(`${config.baseUrl}/matchAssistant/msgCenter/get`,data);
}
/**
* @description: 隐私协议
* @param {*}
* // /config/get?key=
// UserRegistrationServiceAgreement 用户注册服务协议
// PrivacyPolicy 隐私政策
*/
export function configGet(data) {
return http.post(`${config.baseUrl}/config/get`,data,{
needLogin:false //未登录前操作取消登录验证
});
}