...
|
...
|
@@ -107,6 +107,14 @@ function getCouponHandle(allCoupons) { |
|
|
notAvailableCoupons = allCoupons.notAvailableCoupons;
|
|
|
coupons = allCoupons.coupons;
|
|
|
|
|
|
$.each(coupons, function(i, coupon) {
|
|
|
coupon.couponValue = Math.floor(coupon.couponValue);
|
|
|
});
|
|
|
|
|
|
$.each(notAvailableCoupons, function(i, coupon) {
|
|
|
coupon.couponValue = Math.floor(coupon.couponValue);
|
|
|
});
|
|
|
|
|
|
// 渲染可用的优惠券
|
|
|
$couponList.append(conponTmpl({
|
|
|
coupons: coupons
|
...
|
...
|
|