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 7f443e2..28c25ce 100644 --- a/template/m.yohobuy.com/actions/cart/index/order-ensure.phtml +++ b/template/m.yohobuy.com/actions/cart/index/order-ensure.phtml @@ -49,9 +49,9 @@ {{count}}张可用 </span> - {{#if name}} - <span class="used coupon-use" data-name="{{name}}"> - {{name}} + {{#if couponName}} + <span class="used coupon-use" data-name="{{couponName}}"> + {{couponName}} <i class="iconfont"></i> </span> {{^}} diff --git a/yohobuy/m.yohobuy.com/application/models/Index/Cart.php b/yohobuy/m.yohobuy.com/application/models/Index/Cart.php index 276dbe1..7e946f9 100644 --- a/yohobuy/m.yohobuy.com/application/models/Index/Cart.php +++ b/yohobuy/m.yohobuy.com/application/models/Index/Cart.php @@ -488,7 +488,7 @@ class CartModel // 优惠券数据 $coupons = array(); - !empty($orderCompute['coupon_amount']) && $coupons['name'] = $orderInfo['couponName']; + !empty($orderCompute['coupon_amount']) && $coupons['couponName'] = $orderInfo['couponName']; $coupons += self::getCouponList($uid, true); $result['coupon'] = $coupons; }