yohoCoin.js 3.32 KB
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.214:8088/platform';

exports.res = [

/*************************yoho币管理页面接口*******************************/

    {//yoho币管理页面渲染
        route: '/goods/yohoCoin/index',
        method: 'GET',
        view: 'pages/goods/yohoCoin',
        src:'/goods/yohoCoin',
        'data': {
            pagetitle: {
                level1title: '商品管理',
                level2title: '价格管理',
                level3title: 'YOHO币管理'
            },
            filter: {
                skn: true,
                store: true,
                brand: true,
                supplier: true,
                gender: true,
                sortTree: true,
                returnCoinTime: false,
                bulkImport: true
            },
            gridurl: '/good/yohoCoin/queryPageList'
        }
    },

    {//查询yoho币页面
        route: "/good/yohoCoin/queryPageList",
        method: "POST",
        url: "/yohoCoin/queryPageList",
        params:[
            {name: 'productSkn', type: 'Number'},
            {name: 'shopId', type: 'Number'},
            {name: 'brandId', type: 'Number'},
            {name: 'supplierId', type: 'Number'},
            {name: 'gender', type: 'String'},
            {name: 'auditStatus', type: 'Number'},
            {name: 'maxSortId', type: 'Number'},
            {name: 'middleSortId', type: 'Number'},
            {name: 'smallSortId', type: 'Number'},
            {name: 'sortId', type: 'Number'}
        ]
    },

    {//编辑保存yoho币
        route: "/good/yohoCoin/set",
        method: "POST",
        url: "/yohoCoin/set",
        params:[
            {name: 'productSkn', type: 'Number'},
            {name: 'returnCoin', type: 'Number'},
            {name: 'salesPrice', type: 'Number'},
            {name: 'auditorId', type: 'Number'}
        ]
    },

    {//批量上传
        route: "/yohoCoin/importResult/queryBatchImportResult",
        method: "POST",
        url: "/importResult/queryBatchImportResult",
        params:[
            {name: 'param', type: 'String'},
        ]
    },
/*************************yoho币审核页面接口*******************************/

    {//yoho币审核页面渲染
        route: '/goods/yohoCoin/Audit',
        method: 'GET',
        view: 'pages/goods/yohoCoinAudit',
        src:'/goods/yohoCoinAudit',
        'data': {
            pagetitle: {
                level1title: '商品管理',
                level2title: '价格管理',
                level3title: 'YOHO币审核'
            },
            filter: {
                skn: true,
                store: true,
                brand: true,
                supplier: true,
                gender: true,
                sortTree: true,
                returnCoinTime: false
            },
            gridurl: '/good/yohoCoin/queryPageList'
        }
    },

    {//审核通过
        route: "/good/yohoCoin/pass",
        method: "POST",
        url: "/yohoCoin/pass",
        params:[
            {name: 'productSkn', type: 'Number'},
        ]
    },

    {//驳回
        route: "/good/yohoCoin/reject",
        method: "POST",
        url: "/yohoCoin/reject",
        params:[
            {name: 'productSkn', type: 'Number'},
            {name: 'comment', type: 'String'},
        ]
    },
]