heyang 3 lat temu
rodzic
commit
08ec50ad4c
1 zmienionych plików z 10 dodań i 10 usunięć
  1. 10 10
      microserviceUserH5/vcloud/doubleElevenActivity.html

+ 10 - 10
microserviceUserH5/vcloud/doubleElevenActivity.html

@@ -464,10 +464,10 @@
 			if(obj.money){ // 小程序
 				window.location.href = `${baseUrl}/h5/microserviceUserH5/vcloud/downApp.html`
 			}else{
-				// if (isAndroid) {
+				if (isAndroid) {
 					window.native.startPurchase();
 					operate('dt_双11_h5_快来参加双11');
-				// }
+				}
 			}
 		});
 		//点击领取
@@ -482,9 +482,9 @@
 			}else if(state == 1){
 				if(e.target.className === 'receive'){
 					e.stopPropagation();
-					// if (isAndroid) {
+					if (isAndroid) {
 						window.native.activatePhone(id, type);
-					// }
+					}
 				}
 			}
 		});
@@ -523,7 +523,7 @@
 			shareHandle('shareToWechatMin');
 		});
 		function shareHandle(type) {
-			// if (isAndroid) {
+			if (isAndroid) {
 					if(window.native){
 				        operate('dt_双11_h5_分享红包');
 						if(type === 'shareToWechatMin'){
@@ -547,11 +547,11 @@
 				            toastr.error('不支持当前环境!');
 						})
 					}
-			// }else{
-			// 	stopManyClick(() => {
-			// 		toastr.error('不支持当前环境!');
-			// 	})
-			// }
+			}else{
+				stopManyClick(() => {
+					toastr.error('不支持当前环境!');
+				})
+			}
 		}
 		//点击关闭弹窗
 		$('.del')[0].addEventListener('click',(e)=>{