From e3e6a984ee20e3a77852442b68ddb1d887e2e769 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 26 Dec 2025 18:05:34 +0800
Subject: [PATCH] Merge branch 'feature/v9.0/9.0.3' into prod
---
src/subPackages/workDetail/index.vue | 91 +++++++++++++++++++++++++++------------------
1 files changed, 55 insertions(+), 36 deletions(-)
diff --git a/src/subPackages/workDetail/index.vue b/src/subPackages/workDetail/index.vue
index 6fc8a4c..e4b497b 100644
--- a/src/subPackages/workDetail/index.vue
+++ b/src/subPackages/workDetail/index.vue
@@ -1,48 +1,67 @@
<!-- 工单详情 - 包含待审核、待处理、处理中、已完成 -->
<template>
- <div class="workDetailContainer">
- <WebViewPlus ref="sWebViewRef" :src="`${viewUrl}`" @webMessage="onPostMessage"/>
- </div>
+ <div class="workDetailContainer">
+ <WebViewPlus
+ ref="sWebViewRef"
+ :src="`${viewUrl}`"
+ @webMessage="onPostMessage"
+ />
+ </div>
</template>
<script setup>
- import {getWebViewUrl} from "@/utils/index.js";
- import { onLoad } from '@dcloudio/uni-app';
- import { useUserStore } from '@/store/index.js'
- const userStore = useUserStore()
- const userInfo = userStore.userInfo
- const sWebViewRef = ref(null);
- const viewUrl = ref('')
- onLoad( (options) => {
- const eventNum= options.eventNum;
- viewUrl.value = getWebViewUrl('/workDetail', {eventNum:eventNum,totalNum:options.totalNum,keyword:options.keyword,aiType:options.aiType,wLJobInfoId:options.wLJobInfoId,status:options.status})
- });
+import { getWebViewUrl } from "@/utils/index.js";
+import { onLoad } from "@dcloudio/uni-app";
+import { useUserStore } from "@/store/index.js";
+const userStore = useUserStore();
+const userInfo = userStore.userInfo;
+const sWebViewRef = ref(null);
+const viewUrl = ref("");
+onLoad((options) => {
+ const eventNum = options.eventNum;
+ viewUrl.value = getWebViewUrl("/workDetail", {
+ eventNum: eventNum,
+ totalNum: options.totalNum,
+ keyword: options.keyword,
+ aiType: options.aiType,
+ wLJobInfoId: options.wLJobInfoId,
+ status: options.status,
+ });
+});
- function onPostMessage(data) {
+function onPostMessage(data) {
+ if (data.type === "workback") {
+ // #ifdef MP-WEIXIN
+ if ("fun" in data && data.fun === "add") {
+ uni.setStorageSync("joinParams", {
+ type: "add",
+ });
+ }
+ // #endif
- if (data.type === 'workback'){
- uni.setStorageSync('joinParams', {
- type: 'add'
- });
- uni.switchTab({
- url: `/pages/work/index?addLog=111`
- // url: '/pages/work/index'
- });
- }else if(data.type === 'jumpMapNav'){
- uni.navigateTo({
- url:`/subPackages/workDetail/mapWork/index?currentItem=${data.eventNum}`
- });
- }
- }
-
+ // #ifndef MP-WEIXIN
+ uni.setStorageSync("joinParams", {
+ type: "add",
+ });
+ uni.switchTab({
+ url: `/pages/work/index?addLog=111`,
+ // url: '/pages/work/index'
+ });
+ // #endif
+ } else if (data.type === "jumpMapNav") {
+ // #ifndef MP-WEIXIN
+ uni.navigateTo({
+ url: `/subPackages/workDetail/mapWork/index?currentItem=${data.eventNum}`,
+ });
+ // #endif
+ }
+}
</script>
<style lang="scss" scoped>
- .workDetailContainer {
+.workDetailContainer {
width: 100%;
- height: 100%;
- background-size: cover;
-
-
- }
+ height: 100%;
+ background-size: cover;
+}
</style>
--
Gitblit v1.9.3