1、用户点击分享按钮并向好友分享此页面的内容
通过给 button
组件设置属性 open-type="share"
,可以在用户点击按钮后触发 Page.onShareAppMessage 事件,相关组件:button。
<button open-type="share" type="primary">分享</button>
2、用户打开客服云对话(需要在真机运行)
<button open-type="contact" type="primary">客服对话</button>