feat: 页面分享设置
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user