Browse Source

fix: 修复投票详情页面分享BUG

小莫唐尼 7 tháng trước cách đây
mục cha
commit
476a1ec48e
1 tập tin đã thay đổi với 16 bổ sung0 xóa
  1. 16 0
      pagesA/vote-detail/vote-detail.vue

+ 16 - 0
pagesA/vote-detail/vote-detail.vue

@@ -252,6 +252,22 @@
 			this.fnGetData();
 			this.fnGetVoteUserList();
 		},
+		onShareAppMessage() {
+			return {
+				path: '/pagesA/vote-detail/vote-detail?name=' + this.name,
+				title: this.vote?.spec?.title ?? "来投个票吧",
+				imageUrl: ""
+			}
+		},
+		onShareTimeline() {
+			return {
+				title: this.vote?.spec?.title ?? "来投个票吧",
+				query: {
+					name: this.name
+				},
+				imageUrl: ""
+			}
+		},
 		methods: {
 			fnGetData() {
 				// 设置状态为加载中