...
|
...
|
@@ -70,8 +70,8 @@ exports.discount = (req, res) => { |
|
|
// res.render('sale/discount', Object.assign(responseData, simulation.discount()));
|
|
|
|
|
|
return sale.getSaleGoodsListData({
|
|
|
saleType: req.params.saleType
|
|
|
})
|
|
|
saleType: req.params.saleType
|
|
|
})
|
|
|
.then(result => {
|
|
|
responseData.result = result;
|
|
|
responseData.resultShow = JSON.stringify(result, null, 4);
|
...
|
...
|
@@ -100,8 +100,8 @@ exports.vip = (req, res) => { |
|
|
responseData.footerTop = true;
|
|
|
responseData.devEnv = true;
|
|
|
|
|
|
// 假数据输出
|
|
|
// res.render('sale/other', Object.assign(responseData, simulation.other()));
|
|
|
// 假数据输出
|
|
|
// res.render('sale/other', Object.assign(responseData, simulation.other()));
|
|
|
|
|
|
sale.getSaleData().then((result) => {
|
|
|
responseData.saleList = result;
|
...
|
...
|
@@ -129,8 +129,8 @@ exports.breakingYards = (req, res) => { |
|
|
responseData.footerTop = true;
|
|
|
responseData.devEnv = true;
|
|
|
|
|
|
// 假数据输出
|
|
|
// res.render('sale/other', Object.assign(responseData, simulation.other()));
|
|
|
// 假数据输出
|
|
|
// res.render('sale/other', Object.assign(responseData, simulation.other()));
|
|
|
|
|
|
sale.getSaleData().then((result) => {
|
|
|
responseData.saleList = result;
|
...
|
...
|
|