Authored by 郭成尧

添加列表controller

/*
* @Author: Targaryen
* @Date: 2016-05-21 10:59:20
* @Last Modified by: Targaryen
* @Last Modified time: 2016-05-21 11:05:21
*/
'use strict';
exports.getProductPic = (req, res) => {
res.jsonp();
};
\ No newline at end of file
... ...
... ... @@ -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;
... ...