heyang 3 years ago
parent
commit
2843b01edb
1 changed files with 11 additions and 7 deletions
  1. 11 7
      microserviceUserH5/vcloud/springFestivalActivity.html

+ 11 - 7
microserviceUserH5/vcloud/springFestivalActivity.html

@@ -450,29 +450,33 @@
 		},false);
 		// 点击查看
 		$('.look-btn')[0].addEventListener('click',() => {
+			if(notReceive > 0){
+				$('.distribution-dialog').animate({top: '5.24rem'},"fast");
+				$('.distribution-mask').show();
+				document.documentElement.style.overflow='hidden';
+				return
+			}
 			if (isMiniprogram) { // 小程序
 				wx.miniProgram.navigateTo({
 					url: '/pages/home/home'
 				})
 			} else if (isAndroid) { // 安卓
-				if(notReceive > 0){
-					$('.distribution-dialog').animate({top: '5.24rem'},"fast");
-					$('.distribution-mask').show();
-					document.documentElement.style.overflow='hidden';
-				} else {
-				    window.native.startMain();
-				}
+				window.native.startMain();
 			} else if (isiOS) {
 				window.webkit.messageHandlers.startMain.postMessage();
 			}
 		},false);
 		//点击分配奖励按钮
 		$('.distribution-btn')[0].addEventListener('click',() => {
+			$('.award-result-dialog').animate({top: '-10.96rem'},"fast");
+			$('.award-result-mask').hide();
+			document.documentElement.style.overflow='auto';
 			$('.distribution-dialog').animate({top: '-10.96rem'},"fast");
 			$('.distribution-mask').hide();
 			$('.dialog').animate({top: '2.24rem'},"fast");
 			$('.award-record-mask').show();
 			document.documentElement.style.overflow='hidden';
+			getAward()
 		},false);
 		//点击使用按钮
 		$('.data-list')[0].addEventListener('click',(e) => {