Ver Fonte

Merge branch 'master' of http://47.92.161.104:10080/zkx/jp-car-phone

zkx há 4 anos atrás
pai
commit
84d98fe3d5
2 ficheiros alterados com 21 adições e 2 exclusões
  1. 17 1
      bobo-router/index.js
  2. 4 1
      pages/route/index.js

+ 17 - 1
bobo-router/index.js

@@ -17,7 +17,23 @@ uniCrazyRouter.beforeEach(async (to, from, next) => {
 
 	// 逻辑代码
 	console.log("beforeEach")
-	routerBeforeEach(to, from, next);
+	if(to.url==from.url){
+		
+		var url="pages/index/index";
+		if(to.url.indexOf("pages/my")==0){
+			url="pages/my/index";
+		}
+		if(to.url.indexOf("pages/news")==0){
+			url="pages/news/index";
+		}
+		if(to.url.indexOf("pages/remind")==0){
+			url="pages/remind/index";
+		}
+		
+		window.location.href=window.location.href.split('#')[0]+"#/"+url
+	}else{
+		routerBeforeEach(to, from, next);
+	}
 })
 
 uniCrazyRouter.afterEach((to, from) => {

+ 4 - 1
pages/route/index.js

@@ -348,7 +348,10 @@ export default {
 			})
 		},
 		mapdown(){
-			
+		
+				if(this.downid=="null"){
+					this.downid="";
+				}
 			if(this.downid){
 				this.downBtn(this.downItem)
 			}