uniapp(APP)跳转微信客服总结及报错
- 先上H5联盟的API官方地址 https://www.html5plus.org/doc/zh_cn/share.html 一定得看仔细
- 再上代码
// #ifdef APP-PLUS
let sweixin = null
plus.share.getServices(res=>{
sweixin = res.find(
本文档详细介绍了在uniapp中调用微信客服的步骤和常见错误处理。首先,确保Hbuilder版本高于3.2.7,并更新手机自定义基座。在调用`plus.share.getServices`获取微信服务后,使用企业id而非微信小程序原始id进行客服聊天接口调用。错误'deeplinkcustomerservicenopermission'通常是因为主体信息不一致或者使用了错误的id。务必保持微信开放平台和微信客服主体一致。
// #ifdef APP-PLUS
let sweixin = null
plus.share.getServices(res=>{
sweixin = res.find(
4583
3186
1136
2642