From d49ff9e0b89f4966efb8621d807e99b01d0f95f5 Mon Sep 17 00:00:00 2001 From: 396316021 <396316021@qq.com> Date: Tue, 26 Dec 2023 17:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8&=E9=A1=B9=E7=9B=AE=E5=88=86?= =?UTF-8?q?=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Activity/index.vue | 22 +++++++++++++++++++++- pages/Project/index.vue | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/pages/Activity/index.vue b/pages/Activity/index.vue index 5548f00..9093c4d 100644 --- a/pages/Activity/index.vue +++ b/pages/Activity/index.vue @@ -9,7 +9,7 @@ > - + @@ -282,6 +282,26 @@ import {joinList} from "@/api/other"; import NxrPop from "@/components/NxrPop/index.vue"; export default { + onShareAppMessage() { + let result = { + title:this.detail.title, + path:'/pages/Activity/index?id=' + this.id, + }; + if(this.detail.banner){ + result.imageUrl = this.detail.banner; + } + return result; + }, + onShareTimeline() { + let result = { + title:this.detail.title, + path:'/pages/Activity/index?id=' + this.id, + }; + if(this.detail.banner){ + result.imageUrl = this.detail.banner; + } + return result; + }, components: {NxrPop, follow}, computed: { api() { diff --git a/pages/Project/index.vue b/pages/Project/index.vue index ada4dec..060fc19 100644 --- a/pages/Project/index.vue +++ b/pages/Project/index.vue @@ -266,6 +266,26 @@ import follow from "@/components/Follow/index.vue"; import NxrPop from "@/components/NxrPop/index.vue"; export default { + onShareAppMessage() { + let result = { + title:this.detail.title, + path:'/pages/Project/index?id=' + this.id, + }; + if(this.detail.banner){ + result.imageUrl = this.detail.banner; + } + return result; + }, + onShareTimeline() { + let result = { + title:this.detail.title, + path:'/pages/Project/index?id=' + this.id, + }; + if(this.detail.banner){ + result.imageUrl = this.detail.banner; + } + return result; + }, components: {NxrPop, follow}, computed: { api() {