1.有没有遇到过分享出去的小程序的图片大小有时候莫名其妙的变得扭曲或者宽高被隐藏。

2.调用微信小程序分享需要button标签

buttonopen-type="share"test/button

3.然后在js的page里加一个函数

onShareAppMessage:function(){return{title:"小伙伴快来和我玩",imageUrl:"xxxx.png"path:"/pages/xxxx/xxxx/index?testid="+this.data.id}}这里的imageUrl尺寸长宽比例是5:4

4.参考文档

TAG标签: 微信小程序小程序分享接口小程序分享

http://www.xiaochengxub.com/read-98188.html