From 758600557eb1c108633e964c60bf53fad275194b Mon Sep 17 00:00:00 2001 From: Bi Kai <kai.bi@yoho.cn> Date: Mon, 21 Dec 2015 11:32:31 +0800 Subject: [PATCH] YOHO 币抵用金额变化 --- static/js/cart/order-ensure.js | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/static/js/cart/order-ensure.js b/static/js/cart/order-ensure.js index dcbaf09..e1496de 100644 --- a/static/js/cart/order-ensure.js +++ b/static/js/cart/order-ensure.js @@ -18,6 +18,8 @@ var dispatchModeHammer, $price = $('.price-cal'), $couponUse = $('.coupon-use.used'), $addressWrap = $('.address-wrap'), + $coinCheck = $('.coin-check'), + $coinUsed = $('.coin .used'), payType, priceTmpl = Handlebars.compile($('#tmpl-price').html()), queryString = $.queryString(), @@ -104,6 +106,8 @@ function orderCompute() { if (res.last_order_amount) { res.last_order_amount = (+res.last_order_amount).toFixed(2); } + $coinCheck.find('em').html('- ¥ ' + res.use_yoho_coin); + $coinUsed.html('已抵¥' + res.use_yoho_coin); priceHtml = priceTmpl({ cartPayData: res.promotion_formula_list, price: res.last_order_amount -- libgit2 0.24.0