orderActionService.js
1.08 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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';
export default class MyAssetsService extends BaseService {
//获取订单列表
async actionOrder(params, complete) {
return await this.GET(
{
...params
},
{
complete
}
).then((data) => {
return data;
}).catch((error) => {
return error;
})
}
//删除订单
async deleteOrder(params, complete) {
return await this.GET(
{
...params,
method: UFO_BUYER_DELETE_ORDER
},
{
complete
}
).then((data) => {
return data;
}).catch((error) => {
return error;
})
}
//取消订单
async cancelOrder(params, complete) {
return await this.GET(
{
...params,
method: UFO_BUYER_CANCEL_ORDER
},
{
complete
}
).then((data) => {
return data;
}).catch((error) => {
return error;
})
}
}