我用如下的方式转发图片,不起作用是什么原因?
onShareAppMessage: function (options) {
var that = this
var return_url = options.webViewUrl
var path = ‘pages/card/card’
return {
title: ‘转发’,
imageUrl: ‘图片地址’,
path: path,
success: function (res) {
that.web_url = return_url
// 转发成功
wx.showToast({
title: “转发成功”,
icon: ‘success’,
duration: 2000
})
},
fail: function (res) {
// 转发失败
}
}
}
})