onShareTimeline() {
return {
title: this.title,
query: 'productId='+ this.id + '&resaleId=' + this.resaleId,
imageUrl: this.coverPicUrl + '-cw200h200',
success() {
ui.toastSucc('分享成功');
},
fail() {
ui.toastSucc('分享失败');
}
};
}
自定义的是一个七牛的图片,https链接,安卓手机分享到朋友圈是有缩略图的,苹果手机没有,但是苹果手机分享给好友是有图片的,缩略图都是同一张图,为什么只有分享到朋友圈不显示呢?

最行之有效的方式是:将缩略图片下载,使用小程序本地图片进行朋友圈分享:
// 在页面加载时预下载分享图片 onLoad() { this.preloadShareImage() }, preloadShareImage() { wx.downloadFile({ url: 'https://your-domain.com/share-image.jpg', success: (res) => { this.shareImagePath = res.tempFilePath } }) }, onShareTimeline() { return { title: '分享标题', imageUrl: this.shareImagePath || '/images/default-share.jpg' } }