feat:V2.5.6分享优化

This commit is contained in:
R524809
2025-12-19 17:26:54 +08:00
parent 1b4f226f26
commit 70a78b1cc5
9 changed files with 64 additions and 40 deletions
+21
View File
@@ -1,4 +1,6 @@
import { MATH_FUNCTION_TYPES } from '../../constants/mathFunctions';
import tracker from '../../utils/tracker';
import { defaultShareConfig } from '../../config/config';
Page({
data: {
@@ -35,4 +37,23 @@ Page({
});
}
},
onShareAppMessage() {
// 上报分享埋点
tracker.reportShare('数感启蒙');
return {
...defaultShareConfig,
path: `/pages/mathIndex/mathIndex`,
};
},
onShareTimeline() {
// 上报分享埋点
tracker.reportShare('数感启蒙');
return {
...defaultShareConfig,
query: `/pages/mathIndex/mathIndex`,
};
},
});