Home  >  Article  >  WeChat Applet  >  Detailed graphic examples of sharing effects in WeChat mini programs

Detailed graphic examples of sharing effects in WeChat mini programs

零下一度
零下一度Original
2017-06-16 09:13:161959browse

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) {
  // 转发失败
  }
 }
 }

})

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!

Statement:
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