1.准备工作,微信开放平企业认证微信开放平台app认证,企业微信企业认证共计600元
- 认证通过后在企业微信中>微信客服 绑定 微信开放平台认证的app
- 在manifest.json>app模块配置>share分享填入 开放平台认证的appid
- 重新打自定义包(标准基座会报错deeplink custmerservice no permission)
- 填写企业微信的id plus中的方法备注的是填写g_开头的不要管他
附上代码openWeixinService(e){ let sweixin = null plus.share.getServices(res=>{ sweixin = res.find(i => i.id === 'weixin') if(sweixin){ sweixin.openCustomerServiceChat({ corpid: '企业微信id', //获取链接https://work.weixin.qq.com/wework_admin/frame#/profile url: '客服链接', //获取链接https://work.weixin.qq.com/wework_admin/frame#/app/servicer },suc=>{ console.log("success",JSON.stringify(res)) },err=>{ console.log("error",JSON.stringify(err)) }) }else{ plus.nativeUI.alert('当前环境不支持微信操作!') } },function(){ uni.showToast({title: "获取服务失败,不支持该操作。"+JSON.stringify(e), icon: 'error'}) }) }
0 个评论
要回复文章请先登录或注册