|
@@ -8,7 +8,7 @@ define(['base', '$', 'native', 'api', 'order', 'config', 'address'], function (b
|
|
|
}
|
|
|
User.instance = this;
|
|
|
this.storagePrefix = 'user_';
|
|
|
- this.id = ''; //57e22bb59f5160c2048b456c//57e38f1b9f5160ac048b457d
|
|
|
+ this.id = '57e38f1b9f5160ac048b457d'; //57e22bb59f5160c2048b456c//57e38f1b9f5160ac048b457d
|
|
|
this.lastID = this.getCache('lastID', null, '');
|
|
|
this.name = '';
|
|
|
this.avatar='';
|
|
@@ -142,7 +142,7 @@ define(['base', '$', 'native', 'api', 'order', 'config', 'address'], function (b
|
|
|
// return b.coupon.value - a.coupon.value;
|
|
|
// });
|
|
|
that.usable_coupons.sort(function (a, b) {
|
|
|
- return a.end_time - b.end_time;
|
|
|
+ return b.start_time-a.start_time ;
|
|
|
});
|
|
|
that.used_coupons.sort(function (a, b) {
|
|
|
return a.end_time - b.end_time;
|