plus.share.getServices(res => {
const wechat = res.find(i => i.id === 'weixin');
if (wechat) {
wechat.openCustomerServiceChat({
corpid: '', // 企业ID
url: 'https://work.weixin.qq.com/####'
}, src => {
console.log('success:');
}, err => {
console.log('error:');
});
} else {
uni.showToast({
title: '当前环境不支持微信操作',
icon: 'error'
});
}
});
z***@163.com
- 发布:2024-07-22 10:39
- 更新:2024-07-22 10:39
- 阅读:90
0 个回复