Showing
3 changed files
with
3 additions
and
1 deletions
@@ -17,6 +17,9 @@ const formatProduct = (list) => { | @@ -17,6 +17,9 @@ const formatProduct = (list) => { | ||
17 | val.isSoonSoldOut = val.isSoonSoldOut === 'Y'; | 17 | val.isSoonSoldOut = val.isSoonSoldOut === 'Y'; |
18 | } | 18 | } |
19 | 19 | ||
20 | + val.url = '/product/pro_' + val.productId + '_' + val.goodsList[0].goodsId + | ||
21 | + '/' + val.cnAlphabet + '.html'; | ||
22 | + | ||
20 | tag.push({ | 23 | tag.push({ |
21 | isNew: val.isNew === 'Y', | 24 | isNew: val.isNew === 'Y', |
22 | isDiscount: val.isDiscount === 'Y', | 25 | isDiscount: val.isDiscount === 'Y', |
@@ -25,7 +28,6 @@ const formatProduct = (list) => { | @@ -25,7 +28,6 @@ const formatProduct = (list) => { | ||
25 | isAdvance: val.isAdvance === 'Y' | 28 | isAdvance: val.isAdvance === 'Y' |
26 | }); | 29 | }); |
27 | 30 | ||
28 | - | ||
29 | _.forEach(tag, function(data) { | 31 | _.forEach(tag, function(data) { |
30 | 32 | ||
31 | if (data.isDiscount === true && val.isSoonSoldOut === true) { | 33 | if (data.isDiscount === true && val.isSoonSoldOut === true) { |
-
Please register or login to post a comment