goods.js 1.46 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: '/supplier/baseaudit/index',
        method: 'GET',
        view: 'pages/goods/index',
        noApi:true,
        data: {
            bottons:'{"detail":true}',
            gridurl:'/goods/review/getList',
            searchStatus: [
                {name:"未审核",value:"100"},
                {name:"已通过",value:"200"},
                {name:"驳回",value:"300"}
            ],
            searchJIT: true,
            pageTitle:"商品审核"
        },
        src:'/goods/index'
    },
    {
        route: '/goods/review/getList',
        method: 'POST',
        url: '/goods/review/getReviewList',
        isJsonRaw:true,
        params: [
            {name: 'skn', type: 'String'},
            {name: 'brandName', type: 'String'},
            {name: 'storeName', type: 'String'},
            {name: 'status', type: 'String'},
            {name: 'jit', type: 'String'}
        ]
    }
];