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
+7 -24
View File
@@ -1,7 +1,11 @@
import { appSharePageMethods } from '../../base/pageMixin';
import { SHAPES, ShapeCard } from '../../constants/shapes';
import { WATER_COLORS, PAPER_SIZE } from '../../constants/colors';
import ShapeDrawService from '../../service/shapeDrawService';
import { downloadPrint, tryUnlockWithRewardedAd } from '../../utils/downloadPrint';
import {
downloadPrint,
tryUnlockWithRewardedAd,
} from '../../utils/downloadPrint';
import {
shouldShowShareGuide,
shouldUnlockWithAd,
@@ -316,29 +320,6 @@ Page({
this.setData({ showShareDialog: false });
},
onShareAppMessage() {
// 上报分享埋点
tracker.reportShare('图形涂色');
return {
title: '涂鸦丫-涂色|识字|图形|打印',
path: '/pages/shape/index',
imageUrl:
'https://cdn.joeyone.cn/doodle/share-img/index-share-v2.png',
};
},
onShareTimeline() {
// 上报分享埋点
tracker.reportShare('图形涂色');
return {
title: '涂鸦丫-涂色|识字|图形|打印',
query: '/pages/shape/index',
imageUrl:
'https://cdn.joeyone.cn/doodle/share-img/index-share-v2.png',
};
},
/** 分享成功回调(由组件触发) */
async onShareSuccess() {
this.setData({ showShareDialog: false });
@@ -355,4 +336,6 @@ Page({
clearTimeout(this.timer);
}
},
...appSharePageMethods,
});