|
@@ -315,6 +315,8 @@ function getUserCoupons(userId) {
|
|
|
$.get($("#ctx").val() + "/order/clubCouponList?userId="+userId, function(data) {
|
|
|
if (data.code * 1 === 0) {
|
|
|
totalCoupons = data.couponList;
|
|
|
+ // 展示可选优惠券列表
|
|
|
+ getShownCouponList();
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -446,6 +448,7 @@ $("#couponBox").on("change", "input[name=clubCouponId]", function(){
|
|
|
couponPrice = item.couponAmount;
|
|
|
}
|
|
|
});
|
|
|
+ $("#couponAmount").val(couponPrice);
|
|
|
// 重新计算总价
|
|
|
setOrderFee();
|
|
|
});
|