
个人推测问题是这个弹起是遮罩层的原因,onShow参数的属性scene 的类型是什么? 微信小程序开发。应该是先关闭遮罩层再执行onShareAppMessage(),但无奈bintab优先级低于onShareAppMessage(),先执行了onShareAppMessage(),再执行bintab。以上是个人分析问题所在,求解决办法


点击分享按钮时,有灰色的遮罩层 这是分享后的样子也有灰色
--------------------------------------------------------------------------------------------------------------------------------------------


点击分享按钮时,无灰色遮罩层 这是分享后的样子无灰色
---------------------------------------------------------------------------------------------------------------------------------
有大佬遇过吗???在线等 急。。。。。。。。。。。
本文来自微信小程序开发者论坛 -微信小程序工厂 http://www.xcxgc.com,转载请保留,开发微信小程序、定制微信小程序来微信小程序工厂网。
网友回复
Vi**回复:
你这个分享是在有shade的情况下才开始点击的?? onShareAppMessage()在分享时回自动截取当前页面,所以这个流程有问题,
1.不能在有shade的情况下调用onShareAppMessage(),这样很大几率会出现你所说的情况;
2.建议你把分享所用的图片用画布画出来,然后下载使用,可以避免这种情况,而不是用自动截取的图片;
3.可能有别的办法,我是常用第二点。
当然最简单的办法就是把shade去掉,(-.-)