commodity.js
775 Bytes
/**
* Created by wangqianjun on 16/2/2.
*/
//接口主域
var env = process.env.NODE_ENV || 'development';
// exports.domain = 'http://192.168.102.205:18025';
var domain = {
development:'http://localhost:30012',
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: '/erpproduct/price/index',
method: 'GET',
view: 'pages/commodity/index',
src:'/commodity/index'
},{
route: '/erpproduct/price/index1',
method: 'POST',
url: '/interface/commodity/list',
isJsonRaw: true
}
];