feat(share): 微信小程序全页面支持分享到好友和朋友圈,并自动携带分销邀请裂变参数

这个提交包含在:
xcbyy
2026-10-23 11:05:48 +08:00
父节点 8613d40588
当前提交 d0693c6d9e
共有 31 个文件被更改,包括 474 次插入 和 0 次删除

查看文件

@@ -183,6 +183,13 @@ import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getUserFinanceRecords, getUserProfile, normalizeUserId } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 账单明细',
timelineTitle: '同城陪伴 · 专业游戏陪玩与生活陪伴',
path: '/pages/index/index'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());

查看文件

@@ -109,6 +109,13 @@ import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getMarketingCoupons, claimCoupon, getMyCoupons } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴优惠中心 · 限量超值立减神券限时抢',
timelineTitle: '同城陪伴优惠中心 · 限量立减神券等你来领',
path: '/pages/user/coupons'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());

查看文件

@@ -124,6 +124,13 @@ import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getFavorites, removeFavorite, normalizeUserId } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 我的精选收藏大神',
timelineTitle: '同城陪伴 · 发现附近精选高颜值大神',
path: '/pages/index/index'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());

查看文件

@@ -48,6 +48,13 @@ import { ref, onMounted } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getPlatformConfigs } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 帮助中心与常见问题解答',
timelineTitle: '同城陪伴 · 常见问题解答与服务指引',
path: '/pages/user/help-faq'
});
const currentThemeKey = ref(getCurrentThemeKey());
const isLoading = ref(true);

查看文件

@@ -365,6 +365,13 @@ import { getCurrentRole, setCurrentRole, ROLE_TYPES, toggleRole as toggleUserRol
import { getNavBarInfo } from '@/common/nav.js';
import { getUserProfile, rechargeBalance, withdrawCommission, getUserFinanceRecords, updateUserProfile, uploadImage, getRechargeTiers, getPlatformConfigs, applyExpertCert, getUserWithdrawals, getFavorites, removeFavorite, getDistributionTeam, getDistributionRecords, getMyReports, bindInviteCode, getNotifications, getMyCoupons, normalizeUserId } from '@/common/api.js';
import { preloadSubscribeTemplates, requestSubscribeAll } from '@/common/subscribe.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 专业游戏陪玩与生活陪伴中心',
timelineTitle: '同城陪伴 · 专业游戏陪玩与同城生活陪伴',
path: '/pages/index/index'
});
const DEFAULT_GUEST_AVATAR = 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=200';
const initialUserId = typeof uni !== 'undefined' ? (uni.getStorageSync('userId') || null) : null;

查看文件

@@ -76,6 +76,13 @@ import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getNotifications, markNotificationsRead } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 消息与通知中心',
timelineTitle: '同城陪伴 · 专业游戏陪玩与生活陪伴',
path: '/pages/index/index'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());

查看文件

@@ -224,6 +224,7 @@ import {
import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { useShare } from '@/common/share.js';
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());
@@ -240,6 +241,19 @@ const user = ref({
invitedCount: 0
});
useShare(() => {
const uid = normalizeUserId();
return {
title: '邀请你加入同城陪伴,海量高颜值大神随心约,立享新人专属礼包!',
timelineTitle: '加入同城陪伴,海量高颜值大神随心约,同城组局随心享!',
path: '/pages/index/index',
params: {
code: uid ? `PW${uid}` : '',
inviterId: uid ? String(uid) : ''
}
};
});
const distActiveTab = ref('poster');
const teamLevelTab = ref(1);

查看文件

@@ -220,6 +220,13 @@ import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getUserProfile, rechargeBalance, getRechargeTiers, requestWechatPayment, normalizeUserId } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 钱包充值与优惠档位',
timelineTitle: '同城陪伴 · 专业游戏陪玩与生活陪伴',
path: '/pages/index/index'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());

查看文件

@@ -184,6 +184,13 @@ import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getMyReports, getPlatformConfigs, normalizeUserId } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 我的维权与服务监督',
timelineTitle: '同城陪伴 · 专业游戏陪玩与生活陪伴',
path: '/pages/index/index'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());

查看文件

@@ -187,6 +187,13 @@ import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getUserSettings, updateUserSettings, getSubscribeTemplates, normalizeUserId } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 系统与隐私设置',
timelineTitle: '同城陪伴 · 专业游戏陪玩与生活陪伴',
path: '/pages/index/index'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());

查看文件

@@ -181,6 +181,13 @@ import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getUserWithdrawals, normalizeUserId } from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 提现审批明细',
timelineTitle: '同城陪伴 · 专业游戏陪玩与生活陪伴',
path: '/pages/index/index'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());

查看文件

@@ -192,6 +192,13 @@ import {
getPlatformConfigs,
normalizeUserId
} from '@/common/api.js';
import { useShare } from '@/common/share.js';
useShare({
title: '同城陪伴 · 收益佣金提现',
timelineTitle: '同城陪伴 · 专业游戏陪玩与生活陪伴',
path: '/pages/index/index'
});
const currentThemeKey = ref(getCurrentThemeKey());
const navInfo = ref(getNavBarInfo());