update for using display method
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -18,7 +18,7 @@ const index = (req, res, next) => { | @@ -18,7 +18,7 @@ const index = (req, res, next) => { | ||
18 | const uid = global.yoho.uid || '7394907'; | 18 | const uid = global.yoho.uid || '7394907'; |
19 | 19 | ||
20 | orderModel.getOrderData(uid, type, page).then(result => { | 20 | orderModel.getOrderData(uid, type, page).then(result => { |
21 | - res.render('index', { | 21 | + res.display('index', { |
22 | page: 'order', | 22 | page: 'order', |
23 | isMe: true, | 23 | isMe: true, |
24 | content: Object.assign({ | 24 | content: Object.assign({ |
@@ -35,7 +35,7 @@ const detail = (req, res, next) => { | @@ -35,7 +35,7 @@ const detail = (req, res, next) => { | ||
35 | const uid = global.yoho.uid || '7394907'; | 35 | const uid = global.yoho.uid || '7394907'; |
36 | 36 | ||
37 | orderModel.getOrderDetail(uid, code).then(result => { | 37 | orderModel.getOrderDetail(uid, code).then(result => { |
38 | - res.render('index', { | 38 | + res.display('index', { |
39 | isMe: true, | 39 | isMe: true, |
40 | page: 'order-detail', | 40 | page: 'order-detail', |
41 | content: Object.assign({ | 41 | content: Object.assign({ |
@@ -53,7 +53,7 @@ const getOrderList = (req, res, next) => { | @@ -53,7 +53,7 @@ const getOrderList = (req, res, next) => { | ||
53 | const uid = global.yoho.uid || '7394907'; | 53 | const uid = global.yoho.uid || '7394907'; |
54 | 54 | ||
55 | orderModel.getOrderData(uid, type, page).then(result => { | 55 | orderModel.getOrderData(uid, type, page).then(result => { |
56 | - res.render('order-table', { | 56 | + res.display('order-table', { |
57 | layout: false, | 57 | layout: false, |
58 | page: 'order', | 58 | page: 'order', |
59 | isMe: true, | 59 | isMe: true, |
-
Please register or login to post a comment