feat: 页面分享设置

This commit is contained in:
R524809
2026-05-25 18:45:28 +08:00
parent c049d64057
commit fbdad6e02b
15 changed files with 156 additions and 138 deletions
@@ -1,6 +1,5 @@
import { FOCUS_FUNCTION_TYPES } from '../../constants/focusFunctions';
import tracker from '../../utils/tracker';
import { defaultShareConfig } from '../../config/config';
import { appSharePageMethods } from '../../base/pageMixin';
Page({
data: {
@@ -42,22 +41,5 @@ Page({
}
},
onShareAppMessage() {
// 上报分享埋点
tracker.reportShare('专注力游戏');
return {
...defaultShareConfig,
path: `/pages/focusIndex/focusIndex`,
};
},
onShareTimeline() {
// 上报分享埋点
tracker.reportShare('专注力游戏');
return {
...defaultShareConfig,
query: `/pages/focusIndex/focusIndex`,
};
},
...appSharePageMethods,
});