orderListService.js
928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import BaseService from '../../libs/services/baseService.js';
const UFO_ORDER_LIST = 'ufo.order.list';
const UFO_BUYER_DELETE_ORDER = 'ufo.buyer.delete';
const UFO_BUYER_CANCEL_ORDER = 'ufo.buyer.cancel';
const UFO_CANCEL_ORDER_INFO = 'ufo.buyer.cancelCompute';
export default class MyAssetsService extends BaseService {
//获取订单列表
async getOrderListInfo(params, complete) {
return await this.GET(
{
...params,
method: UFO_ORDER_LIST
},
{
complete
}
).then((data) => {
return data;
}).catch((error) => {
return error;
})
}
//获取取消订单数据
async getCancelOrderInfo(params, complete) {
return await this.GET(
{
...params,
method: UFO_CANCEL_ORDER_INFO
},
{
complete
}
).then((data) => {
return data;
}).catch((error) => {
return error;
})
}
}