operations.webshare.js 1.4 KB
/**
 * Created by ty on 2016/7/6.
 * 活动分享管理
 */

module.exports = function (app) {

    /*活动分享管理首页*/
    app.get("/operations/webshare/index", "operations.webshare.Index", function () {
        this.$extend = {
            moduleName: "活动分享管理",
            pageName: "活动分享列表管理"
        }
    });
    
    /*添加活动分享页面*/
    app.get("/operations/webshare/add", "operations.webshare.Edit", function () {
        this.$extend = {
            moduleName: "活动分享管理",
            pageName: "添加活动分享",
            url: "/webShare/addWebShare"
        }
    });
    
    /*编辑活动分享*/
    app.get("/operations/webshare/edit/:id", "operations.webshare.Edit", function (req) {
        this.$extend = {
            moduleName: "活动分享管理",
            pageName: "编辑活动分享",
            id: req.params.id,
            url: "/webShare/updateWebShare"
        }
    });
    
    /*首页列表*/
    app.post("/webShare/getWebShareList", "webshare_getWebShareList");
    
    /*新增活动分享 [注意在shareImage加上客户端需要的imageView参数]*/
    app.post("/webShare/addWebShare", "webshare_addWebShare");
    
    /*更新活动分享*/
    app.post("/webShare/updateWebShare", "webshare_updateWebShare");
    
    /*根据id查询数据*/
    app.post("/webShare/selectWebShare", "webshare_selectWebShare");
}