...
|
...
|
@@ -95,16 +95,22 @@ exports.deleteOrder = (orderCode, uid) => { |
|
|
* 查看订单物流详情
|
|
|
* @param {[int]} order_code 订单号
|
|
|
* @param {[int]} uid 用户uid
|
|
|
* @param {[string]} type 退换货物流(退货:refund,换货:change)
|
|
|
* @return {[array]}
|
|
|
*/
|
|
|
exports.getOrderLogisticdate = (params) => {
|
|
|
let method;
|
|
|
|
|
|
if (_.isEmpty(params) || _.isEmpty(params.uid)) {
|
|
|
if (_.isEmpty(params.order_code)) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
// getNewExpress:退换货物流,li:订单物流
|
|
|
method = _.indexOf(['refund', 'change'], params.type) >= 0 ?
|
|
|
'app.express.getNewExpress' : 'app.express.li';
|
|
|
|
|
|
return api.get('', Object.assign({
|
|
|
method: 'app.express.li'
|
|
|
method: method
|
|
|
}, params)).then(result => {
|
|
|
|
|
|
if (result.code === 200) {
|
...
|
...
|
|