From 4b311457b1145f62c4e19794c1db0bb8318b5c88 Mon Sep 17 00:00:00 2001 From: Bi Kai <kai.bi@yoho.cn> Date: Sun, 20 Dec 2015 16:08:40 +0800 Subject: [PATCH] yoho币为空 直接显示无yoho币可用 --- template/m.yohobuy.com/actions/cart/index/order-ensure.phtml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/template/m.yohobuy.com/actions/cart/index/order-ensure.phtml b/template/m.yohobuy.com/actions/cart/index/order-ensure.phtml index a769454..00c2898 100644 --- a/template/m.yohobuy.com/actions/cart/index/order-ensure.phtml +++ b/template/m.yohobuy.com/actions/cart/index/order-ensure.phtml @@ -65,11 +65,18 @@ </li> <li class="coin" data-yoho-coin="{{yohoCoin}}"> <span class="title">YOHO币</span> - <span class="desc">可抵¥{{yohoCoin}}</span> - <span class="coin-check"> - <em>- ¥ {{yohoCoin}}</em> - <i class="iconfont checkbox icon-cb-checked"></i> - </span> + + {{#if yohoCoin}} + <span class="desc">可抵¥{{yohoCoin}}</span> + <span class="coin-check"> + <em>- ¥ {{yohoCoin}}</em> + <i class="iconfont checkbox icon-cb-checked"></i> + </span> + {{^}} + <span class="not-used coin-check"> + 无YOHO币可用 + </span> + {{/if}} </li> {{#if invoice}} -- libgit2 0.24.0