good info filter false
Showing
1 changed file
with
4 additions
and
2 deletions
1 | -<div class="good-info" data-id="{{id}}"> | 1 | +{{#if .}} {{!-- 剔除值为false的项 --}} |
2 | + <div class="good-info" data-id="{{id}}"> | ||
2 | <div class="tag-container clearfix"> | 3 | <div class="tag-container clearfix"> |
3 | {{# tags}} | 4 | {{# tags}} |
4 | {{# is_new}} | 5 | {{# is_new}} |
@@ -37,4 +38,5 @@ | @@ -37,4 +38,5 @@ | ||
37 | {{/price}} | 38 | {{/price}} |
38 | </div> | 39 | </div> |
39 | </div> | 40 | </div> |
40 | -</div> | 41 | + </div> |
42 | +{{/if}} |
-
Please register or login to post a comment