From 26e956ec1af3463ca5ed8d4465327f8b19502d84 Mon Sep 17 00:00:00 2001 From: Rock Zhang <iamgtskk@gmail.com> Date: Tue, 22 Dec 2015 02:18:12 +0800 Subject: [PATCH] 修复购物车页面赠品重复的bug --- template/m.yohobuy.com/partials/cart/cart-content.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/m.yohobuy.com/partials/cart/cart-content.phtml b/template/m.yohobuy.com/partials/cart/cart-content.phtml index 217eb28..7a09a2f 100644 --- a/template/m.yohobuy.com/partials/cart/cart-content.phtml +++ b/template/m.yohobuy.com/partials/cart/cart-content.phtml @@ -14,7 +14,7 @@ {{#if freebieOrAdvanceBuy}} <ul class="freebie-and-advance-buy"> - {{# freebie}} + {{#if freebie}} <li class="freebie"> <a href="/cart/index/gift?cartType={{cartType}}"> <span class="iconfont"></span> @@ -23,7 +23,7 @@ <span class="count">{{giftCount}}</span> </a> </li> - {{/ freebie}} + {{/if}} {{#if advanceBuy}} <li class="advance-buy"> <a href="/cart/index/advanceBuy?cartType={{cartType}}"> -- libgit2 0.24.0