heyang il y a 3 ans
Parent
commit
39f2e6d3c7
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      microserviceUserH5/vcloud/springFestivalActivity.html

+ 5 - 3
microserviceUserH5/vcloud/springFestivalActivity.html

@@ -172,7 +172,7 @@
 		init();
 		getPhoneNumber();
 		setInterval(() => {
-			init();
+			init('report');
 		},30000);
 		var num=1;
 		loadImage();
@@ -191,7 +191,7 @@
 			}
 		}
 		//初始化数据
-		function init(times) {
+		function init(type) {
 			$.ajax({
 				url: baseUrl + '/api/user/v1/activity/getSpringFestivalConfig',
 				type: 'get',
@@ -239,7 +239,9 @@
 							$('.gift-box')[0].className = 'gift-box'
 						}
 						if(notReceive > 0){
-			                receive = 0;
+							if(type != 'report'){
+								receive = 0;
+							}
 							notReceive = notReceive > 99 ? '99+' : notReceive;
 				            $('.tab-wrap').eq(0).css('display', 'flex');
 				            $('.record-wrap').eq(0).css('marginTop', '0.2rem');