浏览代码

充值卡排序

洪海涛 8 年之前
父节点
当前提交
2dd919345d
共有 3 个文件被更改,包括 2 次插入2 次删除
  1. 0 0
      www/webapp/o2o/dist/js/main.js
  2. 0 0
      www/webapp/o2o/dist/js/model/user.js
  3. 2 2
      www/webapp/o2o/js/model/user.js

文件差异内容过多而无法显示
+ 0 - 0
www/webapp/o2o/dist/js/main.js


文件差异内容过多而无法显示
+ 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;
 		User.instance = this;
 		this.storagePrefix = 'user_';
 		this.storagePrefix = 'user_';
-		this.id = ''; //57e22bb59f5160c2048b456c//57e38f1b9f5160ac048b457d
+		this.id = '57e38f1b9f5160ac048b457d'; //57e22bb59f5160c2048b456c//57e38f1b9f5160ac048b457d
 		this.lastID = this.getCache('lastID', null, '');
 		this.lastID = this.getCache('lastID', null, '');
 		this.name = '';
 		this.name = '';
 		this.avatar='';
 		this.avatar='';
@@ -142,7 +142,7 @@ define(['base', '$', 'native', 'api', 'order', 'config', 'address'], function (b
 				// 	return b.coupon.value - a.coupon.value;
 				// 	return b.coupon.value - a.coupon.value;
 				// });
 				// });
 				that.usable_coupons.sort(function (a, b) {
 				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) {
 				that.used_coupons.sort(function (a, b) {
 					return a.end_time - b.end_time;
 					return a.end_time - b.end_time;

部分文件因为文件数量过多而无法显示