Authored by 姜枫

处理列表 商品详情页url

@@ -51,7 +51,7 @@ const Query = { @@ -51,7 +51,7 @@ const Query = {
51 queryParams: q 51 queryParams: q
52 }; 52 };
53 res.display('list', _.assign(retData, { 53 res.display('list', _.assign(retData, {
54 - products: data.productList, 54 + products: DataHelper.handleProductList(data.productList),
55 order: q.order 55 order: q.order
56 })); 56 }));
57 } else { 57 } else {
@@ -95,7 +95,7 @@ const shop = { @@ -95,7 +95,7 @@ const shop = {
95 }; 95 };
96 96
97 res.display('shop-list', _.assign(data, { 97 res.display('shop-list', _.assign(data, {
98 - products: ret.productList, 98 + products: DataHelper.handleProductList(data.productList),
99 order: q.order 99 order: q.order
100 })); 100 }));
101 } else { 101 } else {