Showing
2 changed files
with
13 additions
and
4 deletions
@@ -13,9 +13,13 @@ | @@ -13,9 +13,13 @@ | ||
13 | 13 | ||
14 | {{else if _isHotShop}} | 14 | {{else if _isHotShop}} |
15 | 15 | ||
16 | - {{#with this.data}} | ||
17 | - {{> hot-shop}} | ||
18 | - {{/with}} | 16 | + {{#if this.reShop}} |
17 | + | ||
18 | + {{#with this.data}} | ||
19 | + {{> hot-shop}} | ||
20 | + {{/with}} | ||
21 | + | ||
22 | + {{/if}} | ||
19 | 23 | ||
20 | {{else if _isHotSearchTerm}} | 24 | {{else if _isHotSearchTerm}} |
21 | 25 | ||
@@ -28,4 +32,4 @@ | @@ -28,4 +32,4 @@ | ||
28 | {{> common/goods}} | 32 | {{> common/goods}} |
29 | 33 | ||
30 | {{/if}} | 34 | {{/if}} |
31 | -{{/ goods}} | ||
35 | +{{/ goods}} |
@@ -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