项目引入 button组件抖音来客IM客服组件
按照文档指引 使用
<button
class="service-btn"
open-type="lifeIm"
:data-order-id="orderId"
@lifeim="imCallback"
@error="onimError"
>
咨询商家客服
</button>
imCallback(e) {
console.log("跳转IM客服成功", e.detail);
},
onimError(e) {
console.log("拉起客服失败", e.detail);
}结果:iOS设备正常使用功能,但是安卓设备无法调用客服功能。
安卓真机运行报错:
拉起客服失败
{
errMsg: "im:fail imId not support"
errNo: 20000
errorCode: 147599
errorType: "U"
}