feat:架构代码优化

This commit is contained in:
R524809
2025-12-11 13:02:44 +08:00
parent 2c32235568
commit 3c0e2af10d
89 changed files with 2774 additions and 2816 deletions
+10
View File
@@ -5,6 +5,7 @@ import { PAPER_SIZE } from '../../constants/colors';
import { getWordsSvgData } from '../../utils/getWordsSvgJson';
import { WORDS } from '../../constants/words';
import { CharacterItem } from '../../types/characterType';
import tracker from '../../utils/tracker';
Page({
canvas: null as Canvas | null,
@@ -360,6 +361,9 @@ Page({
return;
}
// 上报下载埋点
tracker.reportDownload('练字贴');
// 直接下载
checkAndSaveImage(this.canvas);
},
@@ -371,6 +375,9 @@ Page({
// 分享功能
onShareAppMessage() {
// 上报分享埋点
tracker.reportShare('练字贴');
return {
title: '涂鸦丫-涂色|练字|识字|打印',
path: '/pages/copyBook/copyBook',
@@ -379,6 +386,9 @@ Page({
};
},
onShareTimeline() {
// 上报分享埋点
tracker.reportShare('练字贴');
return {
title: '涂鸦丫-涂色|练字|识字|打印',
query: '/pages/copyBook/copyBook',