orders-api.js
481 Bytes
var $ = require('yoho-jquery');
exports.getExpress = function(orderId, type, time) {
return $.get('/home/orders/express', {
orderId: orderId,
payType: type,
time: time
});
};
exports.refund = function(orderId, reasonId, reason) {
return $.get('/home/orders/refund', {
orderId: orderId,
reasonId: reasonId,
reason: reason
});
};
exports.refundReason = function() {
return $.get('/home/orders/refundreason');
};