提交 db478bc0 作者: 王进

分享按钮监听bug

上级 19486d98
...@@ -524,7 +524,16 @@ class WechatSDK { ...@@ -524,7 +524,16 @@ class WechatSDK {
})) }))
}) })
} }
// 右上角分享按钮
private shareInit() {
(wx as any).showShareMenu({
withShareTicket: true,
success: () => {},
fail: () => {},
complete: () => {}
})
}
// 分享
public addShareEvent(DATA, CALLBACK) { public addShareEvent(DATA, CALLBACK) {
const that = this; const that = this;
const ShareParams = { const ShareParams = {
...@@ -535,13 +544,7 @@ class WechatSDK { ...@@ -535,13 +544,7 @@ class WechatSDK {
(wx as any).onShareAppMessage(() => { (wx as any).onShareAppMessage(() => {
return that.deepCopy(DATA, CALLBACK) return that.deepCopy(DATA, CALLBACK)
}) })
that.shareInit(CALLBACK) that.shareInit()
}
private shareInit(CALLBACK) {
CALLBACK = this.deepCopy({}, {
withShareTicket: true
}, CALLBACK)
(wx as any).showShareMenu(CALLBACK)
} }
private customer(params) { private customer(params) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论