vip.index.js 1.84 KB
/**
 * 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状态导入"
        }
    });

};