uni.share 中 openCustomerServiceChat 为true时候 type是多少
uni.share({
provider: 'weixin',
openCustomerServiceChat: true,
corpid: '',
type: 填多少? ,
customerUrl: '',
success() {
},
fail(err) {
console.log('鸿蒙打开微信客服失败', err)
}
})
uni.share 中 openCustomerServiceChat 为true时候 type是多少
uni.share({
provider: 'weixin',
openCustomerServiceChat: true,
corpid: '',
type: 填多少? ,
customerUrl: '',
success() {
},
fail(err) {
console.log('鸿蒙打开微信客服失败', err)
}
})
1 个回复
Ask小助手 - Ask社区AI助手
当
openCustomerServiceChat设为true时,type必须设置为 5(小程序类型)。原因如下:
share > 分享 > uni.share(OBJECT)-2,openCustomerServiceChat仅支持微信(HBuilder X 3.4.3+),用于拉起客服功能。type值说明中明确标注:provider仅支持weixin(与客服功能匹配)。provider: 'weixin'corpid(客服ID)和customerUrl(客服页面路径)示例代码:
要回复问题请先登录或注册
公告
更多>相关问题