为什么微信录屏结束创建的分享按钮无法分享?
发布于 6 年前 作者 xiuyingxue 8790 次浏览 来自 官方Issues
if (cc.sys.WECHAT_GAME == cc.sys.platform) {
            if (!this.shareBtn) {
                this.shareBtn = wx.createGameRecorderShareButton({
                    style: {
                        left: 100,
                        top: 100,
                        height: 90
                    },
                    share: {
                        query: '录制分享',
                        bgm: '',
                        timeRange: [[1000, 3000], [4000, 9000]],
                    },
                });
            }
            console.log('微信录制, 分享按钮 ', this.shareBtn);
            this.shareBtn.show();
            this.shareBtn.onTap(function (res) {
                console.log('微信录制分享按钮回调: ', res);
            });
        }

代码如上, 分享按钮点击无反应

1 回复

第一次看见分享按钮还能创建的

回到顶部