...
|
...
|
@@ -9,7 +9,7 @@ |
|
|
const orderModel = require('../models/order');
|
|
|
|
|
|
const index = (req, res, next) => {
|
|
|
orderModel.index('8050484').then(result => {
|
|
|
orderModel.index('7566245').then(result => {
|
|
|
|
|
|
// 设置头部路径索引focus
|
|
|
result.data.bcNavFocus = 2;
|
...
|
...
|
@@ -43,15 +43,16 @@ const index = (req, res, next) => { |
|
|
}
|
|
|
];
|
|
|
|
|
|
res.render('order', {
|
|
|
content: result.data
|
|
|
res.display('order', {
|
|
|
content: result.data,
|
|
|
defaultHeader: false
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
// 订单金额计算
|
|
|
const compute = (req, res, next) => {
|
|
|
orderModel.compute('8050484', req.query.coin).then(result => {
|
|
|
orderModel.compute('7566245', req.query.coin).then(result => {
|
|
|
res.send(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
@@ -69,7 +70,7 @@ const orderSub = (req, res, next) => { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
orderModel.submit('8050484', other).then(result => {
|
|
|
orderModel.submit('7566245', other).then(result => {
|
|
|
res.send(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|