Prechádzať zdrojové kódy

替换首页订单文件

lxr 1 mesiac pred
rodič
commit
5034f1cb8c

+ 2 - 4
components/barNavigasiHandap.vue

@@ -63,11 +63,9 @@ export default {
 				if (pages && pages.length > 0) {
 					const currentPage = pages[pages.length - 1]
 					const route = currentPage.route || ''
-					
 					console.log('当前路由:', route) // 调试用
-					
 					// 更精确的路由匹配
-					if (route === 'pages/index') {
+					if (route === 'pages/indexOrder/index') {
 						this.currentTab = 'index'
 					} else if (route === 'pages/mine/index') {
 						this.currentTab = 'mine'
@@ -95,7 +93,7 @@ export default {
 			
 			// 跳转到对应页面(使用 reLaunch 关闭所有页面并跳转)
 			const urlMap = {
-				'index': '/pages/index',
+				'index': '/pages/indexOrder/index',
 				'mine': '/pages/mine/index'
 			}
 			

+ 11 - 8
pages.json

@@ -12,13 +12,14 @@
       "navigationBarTitleText": "注册",
       "navigationStyle": "custom"
     }
-  }, {
-    "path": "pages/index",
-    "style": {
-      "navigationBarTitleText": "首页",
-      "navigationStyle": "custom"
-    }
-  }, {
+  }, 
+  {
+  	"path": "pages/indexOrder/index",
+  	"style": {
+  		"navigationBarTitleText": "custom"
+  	}
+  },
+   {
     "path": "pages/mine/index",
     "style": {
       "navigationBarTitleText": "我的",
@@ -85,7 +86,9 @@
       "navigationBarTitleText": "浏览文本",
       "navigationStyle": "custom"
     }
-  }],
+}
+
+],
   "globalStyle": {
     "navigationBarTextStyle": "black",
     "navigationBarTitleText": "",

+ 0 - 0
pages/index.vue → pages/indexOrder/index.vue


+ 2 - 2
pages/login.vue

@@ -64,7 +64,7 @@
     onLoad() {
       //#ifdef H5
       if (getToken()) {
-        this.$tab.reLaunch('/pages/index')
+        this.$tab.reLaunch('/pages/indexOrder/index')
       }
       //#endif
     },
@@ -121,7 +121,7 @@
       loginSuccess(result) {
         // 设置用户信息
         this.$store.dispatch('GetInfo').then(res => {
-          this.$tab.reLaunch('/pages/index')
+          this.$tab.reLaunch('/pages/indexOrder/index')
         })
       }
     }