operations.officialAccounts.js 1.1 KB
/**
 * 公众号管理
 */

module.exports=function(app) {

    /* 列表页面 */
    app.get("/resources/officialAccounts/index","operations.officialAccounts.Index", function () {
        this.$extend = {
            moduleName: "运营管理",
            pageName: "公众号管理"
        }
    });

    /* 添加页面 */
    app.get("/resources/officialAccounts/add","operations.officialAccounts.Edit", function () {
        this.$extend = {
            moduleName: "运营管理",
            pageName: "公众号管理",
            action: '/resources/saveSingleResource'
        }
    });

    /* 编辑页面 */
    app.get("/resources/officialAccounts/:id","operations.officialAccounts.Edit","singleResource_getSingleResource", function (response) {
        // 转化成 json 页面直接获取
        response.data.contentData = JSON.parse(response.data.contentData);
        this.$extend = {
            moduleName: "运营管理",
            pageName: "公众号管理",
            action: "/resources/updateSingleResource",
            type: "update",
            data: response.data
        }
    });

}