proPhoto.js 1.68 KB
/**
 * Created by JiangMin on 2016/3/22.
 * 产品图片管理
 */
//exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.162:8088/platform'; //李建
exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境

exports.res = [
    //主界面
    {
        route: '/shotManage/proPhoto/index',//访问路由
        method: 'GET',//方法
        view: 'pages/shotManage/proPhoto',//视图
        src: '/shotManage/proPhoto'//控制层
    },
    //api请求数据
    {
        route: '/shotManage/proPhoto/index2',
        method: 'POST',
        url: '/productPhoto/queryProductPhotoList',
        params: [
            //查询参数
            {name: 'productSkn', type: 'Number'},
            {name: 'productSkc', type: 'Number'},
            {name: 'productSku', type: 'Number'},
            {name: 'startTime', type: 'Number'},
            {name: 'endTime', type: 'Number'},
            //分页参数
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    //新增图片
    {
        route: '/shotManage/proPhoto/add',
        method: 'POST',
        url: '/productPhoto/addProductPhoto',
        params: [
            {name: 'productSkn', type: 'Number'},
            {name: 'productSkc', type: 'Number'},
            {name: 'productSku', type: 'Number'},
            {name: 'productPhotoAddStrList', type: 'string'}
        ]
    },
    //编辑图片
    {
        route: '/shotManage/proPhoto/update',
        method: 'POST',
        url: '/productPhoto/updateProductPhoto',
        params: [
            {name: 'productSkn', type: 'Number'},
            {name: 'ids', type: 'string'}
        ]
    }
];