开发版本中onShareAppMessage内定义的imgUrl不显示,还是显示的页面截图
onShareAppMessage: function (ops) {
return {
title: '认证业主,最高可领1000元现金红包。',
path: `pages/index/main?uid=${wx.getStorageSync('Uid')}`,
imgUrl: 'https://oss.jjcclife.com/enlifecx/xcx_0.1/static/image/index/share.jpg',
success: function (res) {}}}
https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/page.html#%E9%A1%B5%E9%9D%A2%E4%BA%8B%E4%BB%B6%E5%A4%84%E7%90%86%E5%87%BD%E6%95%B0
参数名填错。