Authored by yyq

cart coupon price

@@ -337,7 +337,11 @@ deliveryWay = { @@ -337,7 +337,11 @@ deliveryWay = {
337 that.updateOrder({way: id}); 337 that.updateOrder({way: id});
338 338
339 // 重新计算订单价格 339 // 重新计算订单价格
340 - compute(); 340 + compute(0, function(data) {
  341 + if (data.code === 200 && coupon && coupon.$ticketUseTip) {
  342 + coupon.$ticketUseTip.find('.price').text('- ¥' + data.data.coupon_amount.toFixed(2));
  343 + }
  344 + });
341 }); 345 });
342 346
343 this.$deliveryTime.click(function() { 347 this.$deliveryTime.click(function() {