shuishen
2025-12-17 d6714d42f973d5fee0894638a725ce87aa12f281
feat:更改工单页面,2的跳转方式
1 files modified
17 ■■■■ changed files
src/pages/work/index.vue 17 ●●●● patch | view | raw | blame | history
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
    });