Commit 8e3a589897af8c01cb45af3e483881deb5e2cb88

Authored by yvan.ni
1 parent 72043d59

充值有礼的时间显示

packageA/pages/chongzhi/g_filter.wxs
1 var is_acting = function(endtime){ 1 var is_acting = function(endtime){
2 - //判断结束时间减去当前时间 ,如果当前时间大于0则为True  
3 - if(endtime=='') return true;  
4 - endtime = endtime.substring(0, 19);  
5 - var reg = getRegExp("-", "g");  
6 - endtime = endtime.replace(reg, '/');  
7 - var bijiao = getDate(endtime) - getDate();  
8 - return bijiao > 0 ? true : false; 2 + //判断结束时间减去当前时间 ,如果当前时间大于0则为True
  3 + endtime=endtime+" 23:59:59";
  4 + if(endtime=='') return true;
  5 + endtime = endtime.substring(0, 19);
  6 + var reg = getRegExp("-", "g");
  7 + endtime = endtime.replace(reg, '/');
  8 + var bijiao = getDate(endtime) - getDate();
  9 + return bijiao >= 0 ? true : false;
9 } 10 }
10 module.exports = { 11 module.exports = {
11 is_acting:is_acting 12 is_acting:is_acting