Browse Source

即将到期提醒

xuzhiheng 5 years ago
parent
commit
d69c381fc4

+ 4 - 3
src/jfw/modules/app/src/web/templates/vipsubscribe/renew_notice.html

@@ -115,9 +115,10 @@
 							return   
 							return   
 					    }
 					    }
 					    if(exprie === "will"){
 					    if(exprie === "will"){
-					    	let a = (endstime/1000) - (86400 * 3)
-					    	let b = nowTime/1000
-					    	if(b > a){
+					    	let a = (endstime/1000) - (86400 * 3);
+					    	let b = nowTime/1000;
+					    	let c = endstime/1000;
+					    	if(a < b&&b < c){
 					    		$(".renew_service").show();
 					    		$(".renew_service").show();
 						    	$("#exprie").text("VIP订阅服务即将到期,请及时续费")
 						    	$("#exprie").text("VIP订阅服务即将到期,请及时续费")
 						    	$(".recommend_title").text("以下区域、行业的订阅推送即将停止,为了不影响您的使用,请立即续费!")
 						    	$(".recommend_title").text("以下区域、行业的订阅推送即将停止,为了不影响您的使用,请立即续费!")

+ 5 - 3
src/web/templates/weixin/vipsubscribe/renew_notice.html

@@ -114,13 +114,15 @@
 					    	let dateHtml = start + " - " + end;
 					    	let dateHtml = start + " - " + end;
 					    	$(".date-span").text(dateHtml);
 					    	$(".date-span").text(dateHtml);
 					    }
 					    }
+					    vipStatus = -2
 					    if(vipStatus === 2&&nowTime>endstime){
 					    if(vipStatus === 2&&nowTime>endstime){
 							return   
 							return   
 					    }
 					    }
 					    if(exprie === "will"){
 					    if(exprie === "will"){
-					    	let a = (endstime/1000) - (86400 * 3)
-					    	let b = nowTime/1000
-					    	if(b > a){
+					    	let a = (endstime/1000) - (86400 * 3);
+					    	let b = nowTime/1000;
+					    	let c = endstime/1000;
+					    	if(a < b&&b < c){
 					    		$(".renew_service").show();
 					    		$(".renew_service").show();
 						    	$("#exprie").text("VIP订阅服务即将到期,请及时续费")
 						    	$("#exprie").text("VIP订阅服务即将到期,请及时续费")
 						    	$(".recommend_title").text("以下区域、行业的订阅推送即将停止,为了不影响您的使用,请立即续费!")
 						    	$(".recommend_title").text("以下区域、行业的订阅推送即将停止,为了不影响您的使用,请立即续费!")