Showing
2 changed files
with
9 additions
and
0 deletions
@@ -13,10 +13,14 @@ | @@ -13,10 +13,14 @@ | ||
13 | 13 | ||
14 | {{else if _isHotShop}} | 14 | {{else if _isHotShop}} |
15 | 15 | ||
16 | + {{#if this.reShop}} | ||
17 | + | ||
16 | {{#with this.data}} | 18 | {{#with this.data}} |
17 | {{> hot-shop}} | 19 | {{> hot-shop}} |
18 | {{/with}} | 20 | {{/with}} |
19 | 21 | ||
22 | + {{/if}} | ||
23 | + | ||
20 | {{else if _isHotSearchTerm}} | 24 | {{else if _isHotSearchTerm}} |
21 | 25 | ||
22 | {{#with this.data}} | 26 | {{#with this.data}} |
@@ -127,6 +127,11 @@ exports.processProductList = (list, options) => { | @@ -127,6 +127,11 @@ exports.processProductList = (list, options) => { | ||
127 | 127 | ||
128 | if (extraAttr) { | 128 | if (extraAttr) { |
129 | product[extraAttr] = true; | 129 | product[extraAttr] = true; |
130 | + | ||
131 | + if (extraAttr === '_isHotShop' && parseInt(product.data.show_type, 10) === 1) { | ||
132 | + product.reShop = true; | ||
133 | + } | ||
134 | + | ||
130 | pruductList.push(product); | 135 | pruductList.push(product); |
131 | } | 136 | } |
132 | 137 |
-
Please register or login to post a comment