onShareAppMessage 怎么判断是否分享成功呢?
发布于 5 年前 作者 laiping 11099 次浏览 来自 问答

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 回复

判断不了

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

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

不支持此功能。

回到顶部