feat(share): 微信小程序全页面支持分享到好友和朋友圈,并自动携带分销邀请裂变参数
这个提交包含在:
@@ -429,6 +429,7 @@ import { openSupportSheet } from '@/common/support.js';
|
||||
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
import { ensureLoginOrRedirect } from '@/common/role.js';
|
||||
import { preloadSubscribeTemplates, requestSubscribeFor } from '@/common/subscribe.js';
|
||||
import { useShare } from '@/common/share.js';
|
||||
|
||||
const currentUserId = computed(() => {
|
||||
try {
|
||||
@@ -510,6 +511,19 @@ const activity = ref({
|
||||
priceAdjustHistory: []
|
||||
});
|
||||
|
||||
useShare(() => {
|
||||
const act = activity.value;
|
||||
const title = act && act.title ? `【组局】${act.title}` : '同城热门组局活动邀你加入';
|
||||
const timelineTitle = act && act.title ? `【同城组局】${act.title}` : '同城热门组局活动邀你加入';
|
||||
return {
|
||||
title,
|
||||
timelineTitle,
|
||||
path: '/pages/activity/detail',
|
||||
params: { id: currentActId.value },
|
||||
imageUrl: (act && (act.coverImage || act.image)) || ''
|
||||
};
|
||||
});
|
||||
|
||||
const loadLiveDetail = async (id) => {
|
||||
try {
|
||||
const detail = await getActivityDetail(id);
|
||||
|
||||
在新工单中引用
屏蔽一个用户