From b94daf4ea357eafce26f37a1f0a799d55cbfa1a4 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 24 二月 2025 16:38:21 +0800
Subject: [PATCH] ll

---
 h5/App.vue |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/h5/App.vue b/h5/App.vue
index c567d31..0bf9fc9 100644
--- a/h5/App.vue
+++ b/h5/App.vue
@@ -1,8 +1,21 @@
 <script>
-import { wxAuthorize, refreshToken } from '@/api'
+import { wxAuthorize, refreshToken, app_url } from '@/api'
 export default {
   onLaunch: function () {
-    
+    window.addEventListener("popstate", (event) => {
+			const path = this.$route.fullPath
+			// console.log('path', path);
+    	if(path == '/pages/login/login' || path == '/'){
+				window.location.href = app_url
+			}
+			if(path == '/pages/wdata/home'){
+				window.location.href = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/wdata/home'
+			}
+			if(path == '/pages/waybill/home'){
+				window.location.href = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/waybill/home'
+			}
+    })
+		console.log('onLaunch')
   },
   onShow: function () {
     console.log('App Show')
@@ -140,6 +153,9 @@
   color: #999999 !important;
   font-size: 28rpx;
 }
+.placeholder3{
+	color: #333333 !important;
+}
 .red{
 	color: red !important;
 }
@@ -195,7 +211,7 @@
 }
 
 .main_app {
-  padding: 10rpx 30rpx 30rpx;
+  padding: 10rpx 30rpx 0rpx;
   font-size: 28rpx;
   color: #333333;
 }

--
Gitblit v1.9.3