Commit 6c6b6f19cee6dd7ba5d7420d94179336163245d2

Authored by yvan.ni
1 parent 47e3c89e

优惠券,点击已过期的bug优化

Showing 1 changed file with 3 additions and 3 deletions
pages/user/coupons/coupons.js
... ... @@ -185,8 +185,8 @@ Page({
185 185 for(var i in b_arr){
186 186 b_arr[i].isby=1;
187 187 if(b_arr[i].isuse==0){
188   - if(b_arr[i].use_end_time<ut.gettimestamp()){
189   - b_can_arr.push(b_arr[i]);
  188 + if(b_arr[i].use_end_time<=ut.gettimestamp()){
  189 + b_out_arr.push(b_arr[i]);
190 190 }else{
191 191 b_can_arr.push(b_arr[i]);
192 192 }
... ... @@ -311,7 +311,7 @@ Page({
311 311 var big_arr= this.data.details;
312 312 //可用券加入包邮券
313 313 if(big_arr.length==0 && this.data.b_out_arr){
314   - big_arr=this.data.b_can_arr;
  314 + big_arr=this.data.b_out_arr;
315 315 }
316 316 init_num=this.data.b_out_arr.length;
317 317  
... ...