index.js
1013 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
/**
* Created by yoho on 2016/6/20.
* 搜索词管理
*/
module.exports = function (app) {
/*************************************VIP管理*************************************/
//列表页
app.get("/vip/shop/list", "vip.ShopVip", function(response){
this.$extend={
moduleName:'VIP管理',
pageName:'店铺VIP',
gridurl:'/supplier/store/indexPage'
}
});
//修改商品VIP状态
app.post("/vip/changeStatus", "vip_changeStatus");
//批量修改商品VIP状态
app.post("/vip/batchChangeStatus", "vip_batchChangeStatus");
//获取商品VIP列表
app.post("/vip/queryProductVipList", "vip_queryProductVipList");
app.get("/vip/ProductVip", "vip.ProductVip", function(response) {
this.$extend={
actions:response.data,
moduleName:"VIP设置",
pageName:"商品VIP设置"
}
});
//店铺VIP开关
app.post("/vip/shop/trigger", "vip_shopVipTrigger");
};