Detailed graphic examples of sharing effects in WeChat mini programs

零下一度
Release: 2017-06-16 09:13:16
Original
2017 people have browsed it

This article mainly introduces in detail the relevant information on dynamically adding shared data in WeChat mini programs. It has certain reference value. Interested friends can refer to

The sharing effect of WeChat mini programs:

js code:

page({

 /**
 * 用户点击分享按钮或右上角分享
 */
 onShareAppMessage: function (res) {
 var that = this;
 return {
  title: that.data.common.act_name,
  desc: that.data.common.introduction,
  path: '/pages/xiangqing/xiangqing?id='+that.data.id,
  success: function (res) {
  // 转发成功
  },
  fail: function (res) {
  // 转发失败
  }
 }
 }

})
Copy after login

The above is the detailed content of Detailed graphic examples of sharing effects in WeChat mini programs. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template