feat(share): 微信小程序全页面支持分享到好友和朋友圈,并自动携带分销邀请裂变参数
这个提交包含在:
@@ -232,6 +232,13 @@ import { ICONS } from '@/common/icons.js';
|
||||
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
import { getExpertCertStatus, setExpertCertStatus, CERT_STATUS } from '@/common/role.js';
|
||||
import { applyExpertCert, getPlatformConfigs, getUserProfile, uploadVoiceIntro, normalizeUserId } from '@/common/api.js';
|
||||
import { useShare } from '@/common/share.js';
|
||||
|
||||
useShare({
|
||||
title: '诚邀优秀陪伴师入驻 · 高收益免抽佣开启接单',
|
||||
timelineTitle: '同城陪伴师招募中 · 期待优秀的你加入',
|
||||
path: '/pages/expert/apply'
|
||||
});
|
||||
|
||||
const currentThemeKey = ref(getCurrentThemeKey());
|
||||
const certStatus = ref(getExpertCertStatus());
|
||||
|
||||
@@ -265,6 +265,7 @@ import { ICONS } from '@/common/icons.js';
|
||||
import { openSupportSheet } from '@/common/support.js';
|
||||
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
import { ensureLoginOrRedirect } from '@/common/role.js';
|
||||
import { useShare } from '@/common/share.js';
|
||||
|
||||
const currentThemeKey = ref(getCurrentThemeKey());
|
||||
|
||||
@@ -327,6 +328,21 @@ const refreshFavoriteState = async () => {
|
||||
} catch (_) {}
|
||||
};
|
||||
|
||||
useShare(() => {
|
||||
const exp = expert.value;
|
||||
const name = exp && exp.nickname ? exp.nickname : '同城金牌陪伴师';
|
||||
const tag = exp && (exp.game || exp.levelTag || exp.rankTag) ? ` · ${exp.game || exp.levelTag || exp.rankTag}` : '';
|
||||
const title = `【金牌陪伴】${name}${tag} 邀你一起组局畅玩`;
|
||||
const timelineTitle = `推荐同城金牌陪伴师:${name}${tag}`;
|
||||
return {
|
||||
title,
|
||||
timelineTitle,
|
||||
path: '/pages/expert/detail',
|
||||
params: { id: currentExpertTargetId || '1' },
|
||||
imageUrl: (exp && exp.avatar) || ''
|
||||
};
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
currentThemeKey.value = getCurrentThemeKey();
|
||||
applyThemeToNativeUI(currentThemeKey.value);
|
||||
|
||||
@@ -255,6 +255,13 @@ import { claimOrder, getOrdersPool, getExpertStats, updateCompanionProfile, getU
|
||||
import { getUserLocation } from '@/common/location.js';
|
||||
import { startHeartbeat, stopHeartbeat } from '@/common/expert-heartbeat.js';
|
||||
import { getNavBarInfo } from '@/common/nav.js';
|
||||
import { useShare } from '@/common/share.js';
|
||||
|
||||
useShare({
|
||||
title: '同城接单大厅 · 实时海量高收益陪玩订单',
|
||||
timelineTitle: '同城接单大厅 · 实时海量高收益陪玩订单',
|
||||
path: '/pages/expert/hall'
|
||||
});
|
||||
|
||||
const currentThemeKey = ref(getCurrentThemeKey());
|
||||
const DEFAULT_EXPERT_AVATAR = 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300';
|
||||
|
||||
@@ -192,6 +192,13 @@ import { getNavBarInfo } from '@/common/nav.js';
|
||||
import { getOrdersPool, claimOrder, reverseGeocode } from '@/common/api.js';
|
||||
import { getUserLocation } from '@/common/location.js';
|
||||
import { startHeartbeat, stopHeartbeat } from '@/common/expert-heartbeat.js';
|
||||
import { useShare } from '@/common/share.js';
|
||||
|
||||
useShare({
|
||||
title: '附近接单雷达 · 5公里即时速配派单',
|
||||
timelineTitle: '附近接单雷达 · 5公里即时速配派单',
|
||||
path: '/pages/expert/radar'
|
||||
});
|
||||
|
||||
const navInfo = ref(getNavBarInfo());
|
||||
const navStyle = computed(() => ({
|
||||
|
||||
@@ -468,6 +468,13 @@ import { onShow, onHide } from '@dcloudio/uni-app';
|
||||
import { ICONS } from '@/common/icons.js';
|
||||
import { openSupportSheet } from '@/common/support.js';
|
||||
import { isExpertCertified } from '@/common/role.js';
|
||||
import { useShare } from '@/common/share.js';
|
||||
|
||||
useShare({
|
||||
title: '同城陪伴 · 大神接单工作台',
|
||||
timelineTitle: '同城陪伴 · 诚邀优秀陪伴师入驻接单',
|
||||
path: '/pages/expert/hall'
|
||||
});
|
||||
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
import {
|
||||
queryCheckinCode,
|
||||
|
||||
在新工单中引用
屏蔽一个用户