微信小程序 之 转发及刷新

转发

onShareAppMessage: function (res) {

if (res.from === 'button') {
return {
title: '小日历',
path: 'pages/index/index?type=share&shareyear=' + this.data.newyear + '&sharemon=' + this.data.newmon + "&shareday=" + this.data.newday + "&shareopId=" + this.data.globalDataID + "&nickName=" + this.data.nickName + "&src=" + this.data.globalData.avatarUrl,
success: function (res) {
// 转发成功
//console.log("成功了")
},
fail: function (res) {
// 转发失败
//console.log("失败了")
}
}
}

}

//隐藏右上角转发按钮

wx.hideShareMenu();


//刷新

//下拉刷新
onPullDownRefresh: function () {自己执行的操作}

//停止刷新

wx.stopPullDownRefresh()

猜你喜欢

转载自blog.csdn.net/qinlulucsdn/article/details/80280107