You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
815 B
JavaScript
44 lines
815 B
JavaScript
import request from '@/sheep/request';
|
|
|
|
const PayOrderApi = {
|
|
|
|
// 开始抽奖
|
|
lottery: (id) => {
|
|
return request({
|
|
url: '/promotion/prize-draw/lottery',
|
|
method: 'GET',
|
|
params: { activityId: id },
|
|
});
|
|
},
|
|
// 已获奖品
|
|
PrizesWon: (id) => {
|
|
return request({
|
|
url: '/promotion/prize-draw/getMyPrizeLogDO',
|
|
method: 'GET',
|
|
params: { activityId: id },
|
|
});
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获得抽奖照片
|
|
prizeImg: (id) => {
|
|
return request({
|
|
url: '/promotion/prize-draw/activity-prize/list-by-activity-id',
|
|
method: 'GET',
|
|
params: { activityId:id },
|
|
});
|
|
},
|
|
// 规则
|
|
ActivityRules: (params) => {
|
|
return request({
|
|
url: '/promotion/prize-draw/getOne',
|
|
method: 'GET',
|
|
params,
|
|
});
|
|
},
|
|
};
|
|
|
|
export default PayOrderApi;
|