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/addWork/index.vue | 72 ++++++++++++++++++++++-------------
1 files changed, 45 insertions(+), 27 deletions(-)
diff --git a/src/subPackages/workDetail/addWork/index.vue b/src/subPackages/workDetail/addWork/index.vue
index bdce9ca..6d9b4a0 100644
--- a/src/subPackages/workDetail/addWork/index.vue
+++ b/src/subPackages/workDetail/addWork/index.vue
@@ -1,34 +1,52 @@
+<!--
+ * @Author : yuan
+ * @Date : 2025-11-13 18:14:52
+ * @LastEditors : yuan
+ * @LastEditTime : 2025-12-20 16:56:27
+ * @FilePath : \src\subPackages\workDetail\addWork\index.vue
+ * @Description :
+ * Copyright 2025 OBKoro1, All Rights Reserved.
+ * 2025-11-13 18:14:52
+-->
<template>
- <view>
- <WebViewPlus @webMessage="onPostMessage" ref="sWebViewRef" :src="`${viewUrl}`" />
-
- </view>
-
+ <view>
+ <WebViewPlus
+ @webMessage="onPostMessage"
+ ref="sWebViewRef"
+ :src="`${viewUrl}`"
+ />
+ </view>
</template>
<script setup>
- import {
- getWebViewUrl
- } from "@/utils/index.js";
- import WebViewPlus from "@/components/WebViewPlus.vue";
- const sWebViewRef = ref(null);
- const viewUrl = getWebViewUrl('/addWork')
+import { getWebViewUrl } from "@/utils/index.js";
+import WebViewPlus from "@/components/WebViewPlus.vue";
+const sWebViewRef = ref(null);
+const viewUrl = getWebViewUrl("/addWork");
- function onPostMessage(data) {
- if (data.type === 'submitSuccess') {
- uni.setStorageSync('joinParams', {
- type: 'add'
- });
- // uni.switchTab({
- // url: '/pages/work/index'
- // });
- uni.switchTab({
- url: `/pages/work/index?addLog=111`
- });
- }
- }
+function onPostMessage(data) {
+ if (data.type === "submitSuccess") {
+ // #ifdef MP-WEIXIN
+ if ("fun" in data && data.fun === "add") {
+ uni.setStorageSync("joinParams", {
+ type: "add",
+ });
+ }
+ // #endif
+
+ // #ifndef MP-WEIXIN
+ uni.setStorageSync("joinParams", {
+ type: "add",
+ });
+ // uni.switchTab({
+ // url: '/pages/work/index'
+ // });
+ uni.switchTab({
+ url: `/pages/work/index?addLog=111`,
+ });
+ // #endif
+ }
+}
</script>
-<style scoped lang="scss">
-
-</style>
\ No newline at end of file
+<style scoped lang="scss"></style>
--
Gitblit v1.9.3