feat(share): 微信小程序全页面支持分享到好友和朋友圈,并自动携带分销邀请裂变参数
这个提交包含在:
@@ -73,6 +73,7 @@ import { ref, computed, onMounted } from 'vue';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
import { getPlatformConfigs } from '@/common/api.js';
|
||||
import { useShare } from '@/common/share.js';
|
||||
|
||||
const currentThemeKey = ref(getCurrentThemeKey());
|
||||
const protocolType = ref('service'); // 'service' | 'privacy'
|
||||
@@ -92,6 +93,16 @@ const pageTitle = computed(() => {
|
||||
return protocolData.value.userAgreementTitle || '用户服务协议';
|
||||
});
|
||||
|
||||
useShare(() => {
|
||||
const t = pageTitle.value || '用户服务协议与隐私政策';
|
||||
return {
|
||||
title: `同城陪伴 · ${t}`,
|
||||
timelineTitle: `同城陪伴 · ${t}`,
|
||||
path: '/pages/common/protocol',
|
||||
params: { type: protocolType.value }
|
||||
};
|
||||
});
|
||||
|
||||
const pageSummary = computed(() => {
|
||||
return protocolData.value.summary || '平台全面遵循微信官方内容安全风控与用户隐私保护标准。';
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户