完成部分接口联调
This commit is contained in:
@@ -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'
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user