Parcourir la source

推送入场取消弹框

aleyds il y a 3 ans
Parent
commit
c8f3cb7a8c
1 fichiers modifiés avec 19 ajouts et 19 suppressions
  1. 19 19
      utils/pushUtils.js

+ 19 - 19
utils/pushUtils.js

@@ -31,25 +31,25 @@ function deviceParkIn(content){
 	if(content.speakMsg){
 		speaker.speakAction(content.speakMsg)
 	}
-	const value = uni.getStorageSync('pushModel_switch');
-	if (value) {
-	    return;
-	}
-	uni.setStorageSync('pushModel_switch', '1');
-	uni.showModal({
-	  title: '温馨提示',  
-	  content: content.popNode, 
-	  success: (res) => {
-		  if(res.confirm){
-			  uni.navigateTo({
-			      url: content.jumpTo
-			  });
-		  }
-	  }  ,
-	  complete:()=>{
-		  uni.removeStorageSync('pushModel_switch');
-	  }
-	});
+	// const value = uni.getStorageSync('pushModel_switch');
+	// if (value) {
+	//     return;
+	// }
+	// uni.setStorageSync('pushModel_switch', '1');
+	// uni.showModal({
+	//   title: '温馨提示',  
+	//   content: content.popNode, 
+	//   success: (res) => {
+	// 	  if(res.confirm){
+	// 		  uni.navigateTo({
+	// 		      url: content.jumpTo
+	// 		  });
+	// 	  }
+	//   }  ,
+	//   complete:()=>{
+	// 	  uni.removeStorageSync('pushModel_switch');
+	//   }
+	// });
 }
 
 function deviceParkOut(content){