onShareAppMessage 怎么判断是否分享成功呢?

发布于 7 年前作者 laiping11275 次浏览最后编辑 7 年前来自 ask

success:function 方法没有办法监听分享成功事件呢, 想记录一下文章分享的次数

// 自定义分享

	onShareAppMessage() {

		let \_this = this;

		\_this.share();



	    return {

	      title: this.articleInfo.title,

	      path: '/pagesA/articleDetail/articleDetail?id=' + this.articleInfo.id,

	      imageUrl: this.articleInfo.image,

		  success:function(res) {

			  \_this.share();

		  },

		  fail: function () {

			  uni.showToast({

				title: '分享失败',

				icon: 'none',

				duration: 2000

			  });

		  },

		  complete: function (c) {

		  },

 

	    }

	 },
3 回复
tyuan
tyuan1 楼4 年前

判断不了

fang68
fang682 楼4 年前

官方早就特意取消了分享结果提供。

你无法获知用户是否已成功完成了分享。

guiying24
guiying243 楼4 年前

不支持此功能。