From d6714d42f973d5fee0894638a725ce87aa12f281 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 17 Dec 2025 14:15:35 +0800
Subject: [PATCH] feat:更改工单页面,2的跳转方式

---
 src/pages/work/index.vue |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index 2272364..afeaf42 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -1,7 +1,6 @@
 <template>
 	<view class="eventTickets">
 		<WebViewPlus ref="sWebViewRef" :src="`${viewUrl}`" @webMessage="onPostMessage" />
-
 	</view>
 
 </template>
@@ -14,6 +13,8 @@
 	import {
 		useTabAddButton
 	} from "@/hooks/index.js";
+	import { onShow, onHide } from "@dcloudio/uni-app";
+	
 	const sWebViewRef = ref(null);
 	// const viewUrl = getWebViewUrl('/work', {})
 	const updateKey = ref(0)
@@ -48,15 +49,13 @@
 			updateKey.value = updateKey.value + 1
 			uni.removeStorageSync('joinParams');
 		}
+		
+		uni.setStorageSync('lastTab', 'work');
 		uni.setTabBarItem({
-			index: 2, // Tab 的索引(从0开始)
-			// text: '新建工单',
-			visible: true,
-			"pagePath": "subPackages/workDetail/addWork/index"
-		});
-		uni.setTabBarItem({
-			index: 3, // Tab
-			visible: false,
+			index: 2,
+			text: '',
+			iconPath: 'static/images/tabbar/add.png',
+			selectedIconPath: 'static/images/tabbar/add.png'
 		});
 		// isApp.value = true
 	});

--
Gitblit v1.9.3