limit.js 1.77 KB
//接口主域
var env = process.env.NODE_ENV || 'development';
// exports.domain = 'http://192.168.102.205:18025';

var domain = {
    development:'http://localhost:30012',
    //development:'http://172.16.6.227:8083/yohobuy-platform-web',
    //development: 'http://192.168.102.215:8080/platform',
    test:'http://192.168.102.205:18025/yoho-adminportal-web',
    preview:'http://192.168.81.13:8189/yoho-admin-portal',
    production:'http://192.168.81.6:8189/yoho-admin-portal'
};

exports.domain = domain[env];


//路由配置
exports.res = [
    {
        //【限购商品】页面渲染
        route: '/limit/product/index',
        method: 'GET',
        view: 'pages/limit/index',
        isJsonRaw:true,
        src: '/product/limit'
    }, {
        // 【限购商品】ajax分页
        route: '/limit/product/page',
        method: 'POST',
        url: '/limit/queryProductList',
        isJsonRaw:true
    },{
        // 【限购商品】添加页面渲染
        route: '/limit/product/add',
        method: 'GET',
        view: 'pages/limit/add',
        src: '/product/limit-add',
        isJsonRaw:true
    },{
        // 【限购商品】ajax添加
        route: '/limit/product/new',
        method: 'POST',
        url: '/limit/newProduct',
        isJsonRaw:true,
        params: [
            {
                name: 'batch',
                type: 'Number'
            },{
                name: 'limitDate',
                type: 'String'
            },{
                name: 'optionsStock',
                type: 'number'
            },{
                name:'hotSale',
                type: 'String'
            },{
                name: 'notSaleSort',
                type: 'String'
            }
        ]
    }
];