orderDetail.js 784 Bytes
/**
 * Created by PhpStorm.
 * User: Targaryen
 * Date: 2016/8/10
 * Time: 13:43
 */

'use strict';

const api = global.yoho.API;
const singleAPI = global.yoho.SingleAPI;
const helpers = global.yoho.helpers;
const camelCase = global.yoho.camelCase;

/**
 * 个人详情数据
 */
const _viewOrderData = (orderCode, uid, sessionKey) => {
    return api.get('', {
        method: 'app.SpaceOrders.detail',
        orderCode: orderCode,
        uid: uid,
        sessionKey: sessionKey
    }, {code: 200});
};

const orderDetail = (orderCode, uid, sessionKey) => {
    let result = {

    };

    return api.all([
        _viewOrderData(1, 10851797, 1)
    ]).then(result => {
        console.log(result[0].data);
        return result;
    });
};

module.exports = {
    orderDetail
};