|
@@ -138,10 +138,12 @@ define(['base', '$', 'native', 'api', 'order', 'config', 'address'], function (b
|
|
|
that.used_coupons = res.data.used_coupons;
|
|
|
that.overtime_coupons = res.data.overtime_coupons;
|
|
|
|
|
|
+ // that.usable_coupons.sort(function (a, b) {
|
|
|
+ // return b.coupon.value - a.coupon.value;
|
|
|
+ // });
|
|
|
that.usable_coupons.sort(function (a, b) {
|
|
|
- return b.coupon.value - a.coupon.value;
|
|
|
+ return a.end_time - b.end_time;
|
|
|
});
|
|
|
-
|
|
|
that.used_coupons.sort(function (a, b) {
|
|
|
return a.end_time - b.end_time;
|
|
|
});
|