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,
});
@@ -1,6 +1,5 @@
import { MATH_FUNCTION_TYPES } from '../../constants/mathFunctions';
import tracker from '../../utils/tracker';
import { defaultShareConfig } from '../../config/config';
import { appSharePageMethods } from '../../base/pageMixin';
Page({
data: {
@@ -38,22 +37,5 @@ Page({
}
},
onShareAppMessage() {
// 上报分享埋点
tracker.reportShare('数感启蒙');
return {
...defaultShareConfig,
path: `/pages/mathIndex/mathIndex`,
};
},
onShareTimeline() {
// 上报分享埋点
tracker.reportShare('数感启蒙');
return {
...defaultShareConfig,
query: `/pages/mathIndex/mathIndex`,
};
},
...appSharePageMethods,
});
@@ -1,4 +1,6 @@
{
"enableShareAppMessage": false,
"enableShareTimelineMessage": false,
"navigationStyle": "custom",
"navigationBarTitleText": "设置",
"navigationBarTextStyle": "black",
@@ -1,6 +1,11 @@
import { disablePageShareMenu } from '../../base/pageMixin';
import { clearUser } from '../../utils/auth';
Page({
onLoad() {
disablePageShareMenu();
},
onClearProfile() {
wx.showModal({
title: '确认删除',