Authored by 郭成尧

添加列表controller

1 /* 1 /*
2 -* @Author: Targaryen  
3 -* @Date: 2016-05-21 10:59:20  
4 -* @Last Modified by: Targaryen  
5 -* @Last Modified time: 2016-05-21 11:05:21  
6 -*/ 2 + * @Author: Targaryen
  3 + * @Date: 2016-05-21 10:59:20
  4 + * @Last Modified by: Targaryen
  5 + * @Last Modified time: 2016-05-21 13:22:46
  6 + */
7 7
8 'use strict'; 8 'use strict';
9 9
10 exports.getProductPic = (req, res) => { 10 exports.getProductPic = (req, res) => {
11 -  
12 - res.jsonp();  
13 -};  
  11 +
  12 + res.jsonp();
  13 +};
@@ -70,8 +70,8 @@ exports.discount = (req, res) => { @@ -70,8 +70,8 @@ exports.discount = (req, res) => {
70 // res.render('sale/discount', Object.assign(responseData, simulation.discount())); 70 // res.render('sale/discount', Object.assign(responseData, simulation.discount()));
71 71
72 return sale.getSaleGoodsListData({ 72 return sale.getSaleGoodsListData({
73 - saleType: req.params.saleType  
74 - }) 73 + saleType: req.params.saleType
  74 + })
75 .then(result => { 75 .then(result => {
76 responseData.result = result; 76 responseData.result = result;
77 responseData.resultShow = JSON.stringify(result, null, 4); 77 responseData.resultShow = JSON.stringify(result, null, 4);