From 4de4baa6eea8f80160f6cdc8a4ebd17c0c48f0ee Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 17 Oct 2025 16:43:12 +0800
Subject: [PATCH] feat:提交代碼
---
src/pages/work/index.vue | 77 ++++++++------------------------------
1 files changed, 17 insertions(+), 60 deletions(-)
diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index 8682ae9..8cdf1f6 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -1,67 +1,24 @@
-<!-- 事件工单 -->
<template>
- <view class="min-h-screen flex flex-col items-center">
- <image
- class="mb-50rpx mt-200rpx h-200rpx w-200rpx"
- src="@/static/images/logo.png"
- width="200rpx"
- height="200rpx"
- />
- <view class="flex justify-center">
- <text class="font-size-36rpx">
- {{ $t("home.intro") }}
- </text>
- </view>
- <view class="mt-100rpx flex gap-30rpx">
- <lang-select />
- <view class="cursor-pointer" @click="toGithub">
- <view class="i-mdi-github text-40rpx" />
- </view>
- </view>
+ <view class="flex flex-col eventTickets">
+ <WebViewPlus ref="sWebViewRef" :src="`${viewUrl}`" @webMessage="onPostMessage"/>
+
+ </view>
- <!-- #ifdef MP-WEIXIN -->
- <!-- 隐私协议组件 -->
- <agree-privacy
- v-model="showAgreePrivacy"
- :disable-check-privacy="false"
- @agree="handleAgree"
- />
- <!-- #endif -->
- </view>
</template>
<script setup>
-// #ifdef MP-WEIXIN
-import { useShare } from "@/hooks";
-// #endif
-
-// #ifdef MP-WEIXIN
-// 分享使用示例
-const { onShareAppMessage, onShareTimeline } = useShare({
- title: "首页",
- path: "pages/tab/map/index",
- imageUrl: "",
-});
-onShareAppMessage();
-onShareTimeline();
-// #endif
-
-const title = ref();
-title.value = import.meta.env.VITE_APP_TITLE;
-
-const showAgreePrivacy = ref(false);
-
-// 同意隐私协议
-function handleAgree() {
- console.log("同意隐私政策");
-}
-
-// 打开github
-function toGithub() {
- if (window?.open) {
- window.open("https://github.com/oyjt/uniapp-vue3-template");
- } else {
- uni.$u.toast("请使用浏览器打开");
- }
+ import {getWebViewUrl} from "@/utils/index.js";
+import WebViewPlus from "@/components/WebViewPlus.vue";
+const sWebViewRef = ref(null);
+const viewUrl = getWebViewUrl('/work', {})
+function onPostMessage(data) {
+
+ uni.navigateTo({
+ url: `/subPackages/workDetail/index?eventNum=${data.eventNum}`
+ });
}
</script>
+
+<style scoped lang="scss">
+
+</style>
\ No newline at end of file
--
Gitblit v1.9.3