|
@@ -37,19 +37,31 @@ class Platform {
|
|
|
this.handelOnShow();
|
|
|
})
|
|
|
|
|
|
- BK.onGameShare( () => {
|
|
|
- BK.Script.log('分享事件,点击分享按钮触发');
|
|
|
- let shareInfo = {
|
|
|
- summary: '猜猜他是谁?',
|
|
|
- picUrl: 'https://pub.dwstatic.com/wxgame/taptapstar_qq/share/qq_share.png',
|
|
|
- extendInfo: ''
|
|
|
- };
|
|
|
- return shareInfo;
|
|
|
- })
|
|
|
+ // BK.onGameShare( () => {
|
|
|
+ // BK.Script.log('分享事件,点击分享按钮触发');
|
|
|
+ // let shareInfo = {
|
|
|
+ // summary: '猜猜他是谁?',
|
|
|
+ // picUrl: 'https://pub.dwstatic.com/wxgame/taptapstar_qq/share/qq_share.png',
|
|
|
+ // extendInfo: ''
|
|
|
+ // };
|
|
|
+ // return shareInfo;
|
|
|
+ // })
|
|
|
|
|
|
- BK.onGameShareComplete( () => {
|
|
|
- BK.Script.log('分享结果,分享事件完成');
|
|
|
- })
|
|
|
+ new BK.Game({
|
|
|
+ onShare() {
|
|
|
+ BK.Script.log('分享事件,点击分享按钮触发');
|
|
|
+ let shareInfo = {
|
|
|
+ summary: '猜猜他是谁?',
|
|
|
+ picUrl: 'https://pub.dwstatic.com/wxgame/taptapstar_qq/share/qq_share.png',
|
|
|
+ extendInfo: ''
|
|
|
+ };
|
|
|
+ return shareInfo;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // BK.onGameShareComplete( () => {
|
|
|
+ // BK.Script.log('分享结果,分享事件完成');
|
|
|
+ // })
|
|
|
// BK.Game.onNetworkChange( () => {
|
|
|
// console.log('网络情况改变');
|
|
|
// })
|