企业微信跳转用户详情
2020-06-19 本文已影响0人
Sharise_Mo佩珊
配置
客户联系配置【必须】

需要在以下几个地方配置品客导购助手的信息
先选择【品氪导购助手】小程序,填写路径:/pages/memer/memDetail/index?type=memInfo

应用地方
联系人详情:contact_profile、
单聊聊天工具栏:single_chat_tools、
聊天附件栏:chat_attachment

客户详情项配置


应用配置

聊天工具栏管理

开发
获取进入小程序的入口类型
wx.qy.getContext ({
success: function(res) {
var entry = res.entry //返回进入小程序的入口类型
}
})
获取当前外部联系人userid
wx.qy.getCurExternalContact ({
success: function(res) {
var userId = res.userId //返回当前外部联系人userId
}
})
用外部联系人uesr_id换取系统的customer_id,然后进行小程序页面内的会员详情跳转