tryInfo.js 1.79 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: '/meterManage/tryInfo/index',//访问路由
        method: 'GET',//方法
        view: 'pages/meterManage/tryInfo',//视图
        src: '/meterManage/tryInfo'//控制层
    },
    //api请求数据
    {
        route: '/meterManage/tryInfo/index2',
        method: 'POST',
        url: '/productExtraInfo/queryProdExtraList',
        params: [
            {name: 'productSkn', type: 'Number'},
            {name: 'productSku', type: 'Number'},
            {name: 'productName', type: 'String'},
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    //查看具体试穿信息
    {
        route: '/meterManage/tryInfo/info/:productSkn',
        method: 'GET',
        view: 'pages/meterManage/info',
        src: '/meterManage/info'
    },
    // 获取商品详情数据
    {
        route: '/meterManage/tryInfo/info1',
        method: 'POST',
        url: '/productExtraInfo/queryProdExtraInfo',
        params: [
            {name: 'productSkn', type: 'Number'}
        ]
    },
    //保存试穿信息
    {
        route: '/meterManage/tryInfo/add',
        method: 'POST',
        url: '/productExtraInfo/saveProdExtraInfo',
        params: [
            {name: 'productSkn', type: 'Number'},
            {name: 'productModelTry', type: 'String'}
        ]
    },
    //上传excel文件
    {
        route: '/meterManage/tryInfo/batch',
        method: 'GET',
        view: 'pages/meterManage/batch',
        src: '/meterManage/batch'
    }
];