| 
						
						
							
								
							
						
						
					 | 
					@ -98,7 +98,7 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ,title: '用户数据表' | 
					 | 
					 | 
					    ,title: '用户数据表' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ,totalRow: false | 
					 | 
					 | 
					    ,totalRow: false | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ,className:'deliver_remind_list_table_class' | 
					 | 
					 | 
					    ,className:'deliver_remind_list_table_class' | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    ,limit:5 | 
					 | 
					 | 
					    ,limit:20 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    ,cols: [[ | 
					 | 
					 | 
					    ,cols: [[ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      {field:'goods_name', title:'商品名称', | 
					 | 
					 | 
					      {field:'goods_name', title:'商品名称', | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					       templet: function(d){ | 
					 | 
					 | 
					       templet: function(d){ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -110,7 +110,7 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      }} | 
					 | 
					 | 
					      }} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ,{field:'pay_time', title:'销售时间/倒计时' | 
					 | 
					 | 
					      ,{field:'pay_time', title:'销售时间/倒计时' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ,templet: function(d){ | 
					 | 
					 | 
					      ,templet: function(d){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        if(d.is_show_count_down == true) return '<label id="count_down_wait_'+d.order_sn+'" content="'+d.pay_time+'" class="count_down_wait"><span id="count-down-time-'+d.order_sn+'">倒计时:'+d.count_down+'</span>|'+d.count_down+'</label>'; | 
					 | 
					 | 
					        if(d.is_show_count_down == true) return '<label id="count_down_wait_'+d.order_sn+'" content="'+d.pay_time+'" class="count_down_wait"><span id="count-down-time-'+d.order_sn+'">倒计时:'+d.count_down+'</span></label>'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        return '<span>'+d.pay_time+'</span>'; | 
					 | 
					 | 
					        return '<span>'+d.pay_time+'</span>'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      }} | 
					 | 
					 | 
					      }} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ,{field:'pay_amount', title:'支付金额(元)'} | 
					 | 
					 | 
					      ,{field:'pay_amount', title:'支付金额(元)'} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -136,7 +136,7 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      //删除翻页遗漏的定时器,避免内存泄露 | 
					 | 
					 | 
					      //删除翻页遗漏的定时器,避免内存泄露 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      for(let key of intervalsMap.keys()){ | 
					 | 
					 | 
					      for(let key of intervalsMap.keys()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        clearInterval(intervalsMap.get(key)); | 
					 | 
					 | 
					        clearInterval(intervalsMap.get(key)); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        intervalsMap.delete(key) | 
					 | 
					 | 
					        intervalsMap.delete(key); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      } | 
					 | 
					 | 
					      } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      var data = res.data; | 
					 | 
					 | 
					      var data = res.data; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -191,7 +191,6 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          }); | 
					 | 
					 | 
					          }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if(data[i].is_urge == true){ | 
					 | 
					 | 
					        if(data[i].is_urge == true){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          $('#remind_time_'+data[i].order_sn).hover(function(){ | 
					 | 
					 | 
					          $('#remind_time_'+data[i].order_sn).hover(function(){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            var hcontent = $(this).attr('content'); | 
					 | 
					 | 
					            var hcontent = $(this).attr('content'); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -214,26 +213,15 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          var countDownTime = (parseInt(coumtTimeList[0]) * 3600 + parseInt(coumtTimeList[1]) * 60 + parseInt(coumtTimeList[2])) * 1000; | 
					 | 
					 | 
					          var countDownTime = (parseInt(coumtTimeList[0]) * 3600 + parseInt(coumtTimeList[1]) * 60 + parseInt(coumtTimeList[2])) * 1000; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          var startTime = new Date(2099,1,1).getTime(); | 
					 | 
					 | 
					          var startTime = new Date(2099,1,1).getTime(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          var endTime = startTime+countDownTime; | 
					 | 
					 | 
					          var endTime = startTime+countDownTime; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          var indexcount = -1; | 
					 | 
					 | 
					          util.countdown(endTime, startTime, data[i].order_sn, function(date, st, timer, order_sn){ | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					          var firstCallBackEnd = false; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          util.countdown(endTime, startTime, function(date, st, timer){ | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            var remainTimeStr = (date[0]*24 + date[1]) + ':' +  date[2] + ':' + date[3]; | 
					 | 
					 | 
					            var remainTimeStr = (date[0]*24 + date[1]) + ':' +  date[2] + ':' + date[3]; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					            var countDownId = '#count-down-time-'+order_sn; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            ++indexcount; | 
					 | 
					 | 
					            intervalsMap.set(order_sn, timer); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            if(indexcount >= countDownList.length) indexcount = 0; | 
					 | 
					 | 
					            if(remainTimeStr == '0:0:0'){ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            if(indexcount>0 || countDownList.length == 1) firstCallBackEnd = true; | 
					 | 
					 | 
					              var order_pay_time = $('#count_down_wait_'+order_sn).attr('content'); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					              $('#count_down_wait_'+order_sn).hide(); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            if(indexcount>=0 && firstCallBackEnd){ | 
					 | 
					 | 
					              $('#count_down_wait_'+order_sn).after('<span>'+order_pay_time+'</span>'); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              var countDownIndx = indexcount-1; | 
					 | 
					 | 
					            }else{ | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					              if(indexcount == 0) countDownIndx = countDownList.length-1; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              var countDownId = '#count-down-time-'+countDownList[countDownIndx].order_sn; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              var remainTimeStr = (date[0]*24 + date[1]) + ':' +  date[2] + ':' + date[3]; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              intervalsMap.set(countDownIndx, timer); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              if(date[0]*24 == 0 && date[1] == 0 && date[2] == 0 && date[3] == 0) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                countDownList.splice(countDownIndx,1); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                firstCallBackEnd = false; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					              layui.$(countDownId).html('倒计时:'+ remainTimeStr); | 
					 | 
					 | 
					              layui.$(countDownId).html('倒计时:'+ remainTimeStr); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          }); | 
					 | 
					 | 
					          }); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |