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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
| /**
| * 团购管理API
| */
|
| import request from '@/utils/request'
|
| // 团购活动相关
| export default {
| // 获取团购活动列表
| activeList(data, errorback) {
| return request._post('/operations/plus.groupbuy.active/index', data, errorback)
| },
|
| // 获取团购活动详情
| activeDetail(data, errorback) {
| return request._post('/operations/plus.groupbuy.active/detail', data, errorback)
| },
|
| // 添加团购活动
| addActive(data, errorback) {
| return request._post('/operations/plus.groupbuy.active/add', data, errorback)
| },
|
| // 更新团购活动
| updateActive(data, errorback) {
| return request._post('/operations/plus.groupbuy.active/edit', data, errorback)
| },
|
| // 更新团购活动状态
| updateActiveStatus(data, errorback) {
| return request._post('/operations/plus.groupbuy.active/updateStatus', data, errorback)
| },
|
| // 删除团购活动
| deleteActive(data, errorback) {
| return request._post('/operations/plus.groupbuy.active/delete', data, errorback)
| },
|
| // 团购商品相关
| productList(data, errorback) {
| return request._post('/operations/plus.groupbuy.product/index', data, errorback)
| },
|
| // 获取可添加的团购商品列表(用于选择商品)
| getAddableProductList(data, errorback) {
| return request._post('/operations/plus.groupbuy.product/add', data, errorback)
| },
|
| // 获取团购商品详情
| productDetail(data, errorback) {
| return request._post('/operations/plus.groupbuy.product/detail', data, errorback)
| },
|
| // 获取团购商品编辑详情
| getGroupbuyProductEdit(data, errorback) {
| return request._post('/operations/plus.groupbuy.product/detail', data, errorback)
| },
|
| // 更新团购商品(用于审核)
| putGroupbuyProductEdit(data, errorback) {
| return request._post('/operations/plus.groupbuy.product/edit', data, errorback)
| },
|
| // 添加团购商品
| addProduct(data, errorback) {
| return request._post('/operations/plus.groupbuy.product/add', data, errorback)
| },
|
| // 更新团购商品
| updateProduct(data, errorback) {
| return request._post('/operations/plus.groupbuy.product/edit', data, errorback)
| },
|
| // 删除团购商品
| deleteProduct(data, errorback) {
| return request._post('/operations/plus.groupbuy.product/delete', data, errorback)
| },
|
| // 获取商品规格
| getProductSku(data, errorback) {
| return request._post('/operations/plus/product.product/getSku', data, errorback)
| },
|
| // 团购订单相关
| orderList(data, errorback) {
| return request._post('/operations/plus.groupbuy.bill/index', data, errorback)
| },
|
| // 更新订单状态
| updateOrderStatus(data, errorback) {
| return request._post('/operations/plus.groupbuy.bill/updateStatus', data, errorback)
| }
| }
|
|