完成部分接口联调

This commit is contained in:
XGL-THINKPAD-X1\rucky
2024-01-16 17:43:41 +08:00
parent 3c258cff70
commit 27b1eab2ce
8 changed files with 182 additions and 19 deletions

View File

@@ -5,10 +5,12 @@ import qs from "qs";
// json格式请求头
const headerJSON = {
"Content-Type": "application/json;charset=UTF-8",
'internetGatewaySource':'internetGwSourceExt'
};
// FormData格式请求头
const headerFormData = {
"Content-Type": "application/x-www-form-urlencoded",
'internetGatewaySource':'internetGwSourceExt'
};

View File

@@ -1,7 +1,33 @@
import http from './http'
export function drawApi(data, authorization) {
return http.post("/api/user/addSurveyed",
// 获取code
export function authorize(data, authorization) {
return http.post("/h5/Oauth/authorize",
data,
true,
);
}
// 获取用户信息
export function getUserInfo(data, authorization) {
return http.post("/h5/Oauth/getUserInfo",
data,
true,
);
}
// 我的奖品
export function getMyPrize(data, authorization) {
return http.post("/h5/activity/getMyPrize",
data,
true,
authorization
);
}
// 抽奖
export function draw(data, authorization) {
return http.post("/h5/activity/draw",
data,
true,
authorization