61 lines
1.1 KiB
JavaScript
61 lines
1.1 KiB
JavaScript
import http from './http'
|
|
|
|
// 获取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 subAnswer(data, authorization) {
|
|
return http.post("/h5/activity/subAnswer",
|
|
data,
|
|
true,
|
|
authorization
|
|
);
|
|
}
|
|
|
|
// 抽奖
|
|
export function drawApi(data, authorization) {
|
|
return http.post("/h5/activity/draw",
|
|
data,
|
|
true,
|
|
authorization
|
|
);
|
|
}
|
|
|
|
// 兑奖
|
|
export function exchangePrize(data, authorization) {
|
|
return http.post("/h5/activity/exchangePrize",
|
|
data,
|
|
true,
|
|
authorization
|
|
);
|
|
}
|
|
|
|
// 分享接口
|
|
export function getShareConfig(data, authorization) {
|
|
return http.post("/h5/Oauth/getShareConfig",
|
|
data,
|
|
true,
|
|
);
|
|
} |