跳转至

接入企业微信客服

方式1: 微信小程序后台的客户管理

用户点击直接打开聊天界面,客服那边直接企业微信收到信息

handleClickOpenWeixin() {
  wx.openCustomerServiceChat({
    extInfo: { url: "客服链接,企业微信后台获取" },
    corpId: "企业微信id",
    success(res) {
      console.log("成功打开客服会话", res);
    },
    fail(err) {
      console.log("打开客服会话失败", err);
    }
  });
}

方式2: 使用微信插件接入

点击弹出企业二维码,需要收到识别添加,效果不如1好

<cell
  bind:startmessage="startmessage"
  bind:completemessage="completemessage"
  plugid="配置id"
/>

参考

  • https://mp.weixin.qq.com/wxamp/wakf/work?token=1319381996
  • https://work.weixin.qq.com/nl/act/p/a733314375294bdd
  • https://work.weixin.qq.com/wework_admin/frame#/app/servicer