From 450dc8a1e4e0d643817ffd0eee04b938cc84af74 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 07 Nov 2025 15:23:09 +0800
Subject: [PATCH] feat:修改密码成功清除记住密码

---
 src/subPackages/taskDetail/execution/index.vue |   50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/src/subPackages/taskDetail/execution/index.vue b/src/subPackages/taskDetail/execution/index.vue
index 6d683e5..e31d002 100644
--- a/src/subPackages/taskDetail/execution/index.vue
+++ b/src/subPackages/taskDetail/execution/index.vue
@@ -1,8 +1,54 @@
 <!-- 已执行 -->
 <template>
-  <view> 基础 </view>
+  <WebViewPlus v-if="isApp" :src="`${viewUrl}`" @webMessage="onPostMessage"/>
 </template>
 
-<script setup></script>
+<script setup>
+import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
+import WebViewPlus from "@/components/WebViewPlus.vue";
+import {getWebViewUrl} from "@/utils/index.js";
+
+const wayLineJodInfoId = ref(null)
+const viewUrl = ref('')
+// const viewUrl = ref(getWebViewUrl('/execution'))
+
+// function onPostMessage(data) {
+//   console.log(data, '9999')
+//   if (data.type === 'taskDetails'){
+//     console.log('4444')
+//     uni.switchTab({
+//       url: '/subPackages/taskDetail/execution/index'
+//     });
+//   }
+// }
+function onPostMessage(data) {
+  if (data.type === 'back') {
+    uni.switchTab({
+      url: '/pages/inspectionTask/index'
+    });
+  } else if (data.type === 'control') {
+    uni.redirectTo({
+      url: `/pages/inspectionTask/execution/index?wayLineJodInfoId=${wayLineJodInfoId.value}`
+    });
+  } else if(data.type === 'workid') {
+    uni.navigateTo({
+      url: `/subPackages/workDetail/index?eventNum=${data.eventNum}`
+    });
+  }
+}
+
+onLoad((options) => {
+  wayLineJodInfoId.value = options.wayLineJodInfoId
+  viewUrl.value = getWebViewUrl('/execution', {wayLineJodInfoId: wayLineJodInfoId.value})
+})
+const isApp = ref(false)
+onShow(() => {
+  isApp.value = true
+});
+
+onHide(() => {
+  isApp.value = false
+});
+</script>
 
 <style lang="scss" scoped></style>

--
Gitblit v1.9.3