点击又上角--转发或者button按钮分享

button class='share' open-type="share" hover-class="none"          image src="https://data.bphotos.cn/share.png" mode="widthFix"/image        /button  onShareAppMessage: function (ops) {    if (ops.from === 'button') {      // 来自页面内转发按钮      console.log(ops.target)    }    return {      title: 'Bphoto智能照相馆',      path: 'pages/index/index',      imageUrl: '',      success: function (shareTickets) {        console.info(shareTickets + '成功');        // 转发成功      },      fail: function (res) {        console.log(res + '失败');        // 转发失败      },      complete: function (res) {        // 不管成功失败都会执行      }    }  }

 

TAG标签: 微信小程序小程序分享功能

http://www.xiaochengxub.com/read-103948.html