vip.index.js
1.84 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
56
57
58
59
60
61
62
63
64
/**
* Created by yoho on 2016/6/20.
* 搜索词管理
*/
module.exports = function (app) {
/*************************************VIP管理*************************************/
app.get("/vip/index", "vip.Index", function(response) {
this.$extend={
actions:response.data,
moduleName:"VIP设置",
pageName:"VIP设置"
}
});
app.get("/vip/index/:productSkn", "vip.Index", function(response) {
this.$extend={
actions:response.data,
moduleName:"VIP设置",
pageName:"VIP设置"
}
});
//列表页
app.get("/vip/shop/list", "vip.ShopVip", function(response){
this.$extend={
moduleName:'VIP管理',
pageName:'店铺VIP',
gridurl:'/supplier/store/indexPage'
}
});
//店铺VIP开关
app.post("/vip/shop/trigger", "vip_shopVipTrigger");
//商品VIP设置
app.get("/vip/ProductVip", "vip.ProductVip", function(response) {
this.$extend={
actions:response.data,
moduleName:"VIP设置",
pageName:"商品VIP设置"
}
});
//修改商品VIP状态
app.post("/vip/changeStatus", "vip_changeStatus");
//批量修改商品VIP状态
app.post("/vip/batchChangeStatus", "vip_batchChangeStatus");
//修改商品VIP反币状态
app.post("/vip/changeReturnCoinStatus", "vip_changeReturnCoinStatus");
//批量修改商品VIP反币状态
app.post("/vip/batchChangeReturnCoinStatus", "vip_batchChangeReturnCoinStatus");
//获取商品VIP列表
app.post("/vip/queryProductVipList", "vip_queryProductVipList");
app.get("/vip/batch/import", "vip.Import", function(req, res) {
this.$extend = {
moduleName: "VIP设置",
pageName: "商品VIP状态导入"
}
});
};