|
@@ -4,24 +4,25 @@ import request from '@/utils/request'
|
|
|
export function page(header) {
|
|
|
return request({
|
|
|
url: `/point/lottery/lotteryPage`,
|
|
|
- header: header,
|
|
|
+ header,
|
|
|
method: 'get'
|
|
|
})
|
|
|
}
|
|
|
|
|
|
// 抽奖结果
|
|
|
-export function result(data){
|
|
|
+export function result(header) {
|
|
|
return request({
|
|
|
url: `/point/lottery/getLotteryResult`,
|
|
|
- method: 'get',
|
|
|
- data
|
|
|
+ header,
|
|
|
+ method: 'get'
|
|
|
})
|
|
|
}
|
|
|
|
|
|
// 领奖
|
|
|
-export function receive(data){
|
|
|
+export function receive(header, data) {
|
|
|
return request({
|
|
|
url: `/point/lottery/doLottery`,
|
|
|
+ header,
|
|
|
method: 'post',
|
|
|
data
|
|
|
})
|