tryInfo.js 1.46 KB
/**
 * Created by JiangMin on 2016/3/22.
 * 试穿信息管理
 */
exports.domain = require('../config/common.js').domain;

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/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'
    }
];