分享页面
分享页面的逻辑比较简单,微信提供了onShareAppMessage
onShareAppMessage: function (res) {
var that=this
//onload函数中获取的缓存中的formId
return {
title:' 室友招募,快来看一看吧!',
path: '/pages/leaflets/leaflets?formId='+that.data.formId,
imageUrl:'/images/share-image.png',
success(res) {
console.log("转发成功")},
fail(res) {
console.log("转发失败!")}
}
}