微信小程序
wx.openCustomerServiceChat
# wx.openCustomerServiceChat(Object object)
基础库 2.19.0 开始支持,低版本需做兼容处理。
以 Promise 风格 调用:不支持
小程序插件:不支持
微信 Windows 版:支持
微信 Mac 版:支持
# 功能描述
打开微信客服,页面产生点击事件(例如 button 上 bindtap 的回调中)后才可调用。了解更多信息,可以参考微信客服介绍。
# 参数
# Object object
# 示例代码
wx.openCustomerServiceChat({
extInfo: {url: ''},
corpId: '',
success(res) {}
})