...
|
...
|
@@ -15,7 +15,7 @@ const orderModel = require('../models/order'); |
|
|
const index = (req, res) => {
|
|
|
const type = req.query.type;
|
|
|
const page = req.query.page;
|
|
|
const uid = req.user.uid;
|
|
|
const uid = req.user.uid || '7394907';
|
|
|
|
|
|
orderModel.getOrderData(uid, type, page).then(result => {
|
|
|
res.display('index', {
|
...
|
...
|
@@ -32,7 +32,7 @@ const index = (req, res) => { |
|
|
|
|
|
const detail = (req, res) => {
|
|
|
const code = req.query.code;
|
|
|
const uid = req.user.uid;
|
|
|
const uid = req.user.uid || '7394907';
|
|
|
|
|
|
orderModel.getOrderDetail(uid, code).then(result => {
|
|
|
res.display('index', {
|
...
|
...
|
@@ -58,9 +58,7 @@ const getOrderList = (req, res) => { |
|
|
page: 'order',
|
|
|
isMe: true,
|
|
|
orderList: result.order.orderList,
|
|
|
paginationOpts: result.order.paginationOpts,
|
|
|
emptyMsg: result.order.emptyMsg,
|
|
|
showEmptyEn: result.order.showEmptyEn
|
|
|
orderData: result.order
|
|
|
});
|
|
|
});
|
|
|
};
|
...
|
...
|
|