heyang před 3 roky
rodič
revize
9af4d9f132

+ 5 - 5
microserviceUserH5/vcloud/springFestivalActivity.html

@@ -238,11 +238,11 @@
 						} else {
 							$('.gift-box')[0].className = 'gift-box'
 						}
-						if(notReceive > 0){
+						if(parseInt(notReceive) > 0){
 							if(type != 'report'){
 								receive = 0;
 							}
-							notReceive = notReceive > 99 ? '99+' : notReceive;
+							notReceive = parseInt(notReceive) > 99 ? '99+' : notReceive;
 				            $('.tab-wrap').eq(0).css('display', 'flex');
 				            $('.record-wrap').eq(0).css('marginTop', '0.2rem');
 				            $('.record-wrap').eq(0).css('height', '5.38rem');
@@ -448,7 +448,7 @@
 								},400)
 						}
 						$('.report-times').eq(0).text(times);
-						if(notReceive > 0){
+						if(parseInt(notReceive) > 0){
 				            $('.join-result-tip').eq(0).css('opacity', '0');
 				            $('.many-card-wrap').eq(0).css('marginTop', '0');
 						}
@@ -600,7 +600,7 @@
 		},false);
 		// 点击查看
 		$('.look-btn')[0].addEventListener('click',() => {
-			if(notReceive > 0){
+			if(parseInt(notReceive) > 0){
 				$('.distribution-dialog').animate({top: '5.24rem'},"fast");
 				$('.distribution-mask').show();
 				document.documentElement.style.overflow='hidden';
@@ -675,7 +675,7 @@
 							pages = res.data.pages;
 							if(records.length === 0){
 				                $('.title-row').eq(0).css('display', 'none');
-								if(receive == 1 && notReceive > 0){
+								if(receive == 1 && parseInt(notReceive) > 0){
 									str = '<div class="no-award">暂无已分配云手机</div>'
 								}else{
 									str = '<div class="no-award">没有抽奖记录,我都替你着急</div>'