Pārlūkot izejas kodu

充值卡排序

洪海涛 8 gadi atpakaļ
vecāks
revīzija
2dd919345d

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
www/webapp/o2o/dist/js/main.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
www/webapp/o2o/dist/js/model/user.js


+ 2 - 2
www/webapp/o2o/js/model/user.js

@@ -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;

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels