uniapp接入微信客服聊天流程(企业微信) |
您所在的位置:网站首页 › uniapp客服系统撤回 › uniapp接入微信客服聊天流程(企业微信) |
1.注册并认证企业微信
多平台开发企业微信客服是最好的解决方案 企业微信 2.打开微信客服如果多平台开发可以都接入
附上代码: wx.openCustomerServiceChat({ //企业微信的企业id corpId: 'xxx', extInfo: { //客服链接 url: 'https://xxx' }, success: (e) => { console.log('e', e) }, fail: (err) => { console.log('err', err) } }) 4.2app接入接入流程和小程序类似,直接上代码 let sweixin = null plus.share.getServices(res => { sweixin = res.find(i => i.id === 'weixin') if (sweixin) { sweixin.openCustomerServiceChat({ corpid: 'xxx', url:'https://xxx' }) } else { // plus.nativeUI.alert('当前环境不支持微信操作') uni.showToast({ title: "当前环境不支持微信操作", icon: 'error' }) } }, function() { uni.showToast({ title: "获取服务失败,不支持该操作。" + JSON.stringify(e), icon: 'error' }) })uniapp接入客服到此结束 接下来就是繁琐的调试调试。。。。。 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |