收藏
回答

wx.showModal中,点击确定后,调用转发功能


wx.showModal({
              title: '提示',
              content: '希望分享投诉给更多人看到吗?',
              cancelText: '暂不分享',
              confirmText: '分享一下',
              success: function (res) {
                if (res.confirm) {
                  console.log(res.confirm);
                  this.onShareAppMessage();
                };
              },
              fail: function (err) {
                console.log(err);
              },
            })
onShareAppMessage: function (e) {
    return {
      title: title,
      path: '/pages/detail/detail?id=' + Id,
      imageUrl: '../../images/135.png',
    };
  },

我这样调用转发函数是没有用的,求解如何处理。

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容