const systemInfo = uni.getSystemInfoSync();
const platform = systemInfo.platform;
console.log('platform',platform)
if(platform === 'h5'){
window.location.href = 'https://work.weixin.qq.com/kfid/kfca34f2111fc6d80ae';
}else{
wx.openCustomerServiceChat({
corpId: 'xxx', //企业id
extInfo: {
url: 'https://work.weixin.qq.com/kfid/kfca34f2111fc6d80ae'
},
success(res) {
console.log('res',res)
// 接口调用成功的回调函数
},fail(err){
console.log('err',err)
}
});
}
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- awee.cn 版权所有 湘ICP备2023022495号-5
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务