|
|
/**
|
|
|
* Created by wangqianjun on 16/2/3.
|
|
|
*/
|
|
|
|
|
|
//接口主域
|
|
|
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: '/erpproduct/sizeattribute/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/product/size-property',
|
|
|
src: '/product/size-property',
|
|
|
isJsonRaw:true
|
|
|
}, {
|
|
|
route: '/erpproduct/sizeattribute/propertyList',
|
|
|
method: 'POST',
|
|
|
url: '/product/querySizeAttributeList', //接口的url
|
|
|
isJsonRaw:true,
|
|
|
params:[
|
|
|
{name: 'page', type: 'Number', def: '1'}, //页码
|
|
|
{name: 'size', type: 'Number', def : '10'} //每页条数
|
|
|
]
|
|
|
}, {
|
|
|
route: '/erpproduct/sizeattribute/propertyAdd', // 添加尺码属性
|
|
|
method: 'POST',
|
|
|
url: '/product/addSizeAttribute', //接口的url
|
|
|
isJsonRaw:true,
|
|
|
params:[
|
|
|
{name: 'attributeName', type: 'String'} //名称
|
|
|
]
|
|
|
}, {
|
|
|
route: '/erpproduct/sizeattribute/propertyModify', // 修改尺码属性
|
|
|
method: 'POST',
|
|
|
url: '/product/updateSizeAttribute', //接口的url
|
|
|
isJsonRaw:true,
|
|
|
params:[
|
|
|
{name: 'id', type: 'Number'}, //id
|
|
|
{name: 'attributeName', type: 'String'} //名称
|
|
|
]
|
|
|
}
|
|
|
]; |
|
|
\ No newline at end of file |
...
|
...
|
|