...
|
...
|
@@ -121,14 +121,24 @@ const editOrder = (req, res) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
const reAdd = (req, res) => {
|
|
|
const uid = req.user.uid || '10931021';
|
|
|
const code = req.query.orderCode;
|
|
|
|
|
|
orderModel.reAddCart(uid, code).then(result => {
|
|
|
res.json(result);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
|
index: index,
|
|
|
detail: detail,
|
|
|
getOrderList: getOrderList,
|
|
|
getOrderTotal: getOrderTotal,
|
|
|
cancelOrder: cancelOrder,
|
|
|
deleteOrder: deleteOrder,
|
|
|
editOrder: editOrder,
|
|
|
getExpressInfo: getExpressInfo,
|
|
|
getCancelOrderReason: getCancelOrderReason
|
|
|
index,
|
|
|
detail,
|
|
|
getOrderList,
|
|
|
getOrderTotal,
|
|
|
cancelOrder,
|
|
|
deleteOrder,
|
|
|
editOrder,
|
|
|
getExpressInfo,
|
|
|
getCancelOrderReason,
|
|
|
reAdd
|
|
|
}; |
...
|
...
|
|