一、使用插件前,使用者要在 app.json 中声明需要使用的插件:(使用Hbuilder开发时需要manifest.json源码视图里面添加)
"plugins": {
"chatGroupPlugin": {
"version": "1.0.5",
"provider": "wx4d2deeab3aed6e5a"
},
},
二、在使用插件的页面-注册组件
components: {
cell: "plugin://chatGroupPlugin/cell"
},
三、组件的使用
<cell :url='企业素材url' :iconUrl="icell图标" />
参数说明:
errcode 的异常错误码说明如下:
-3002:获取插件配置信息失败
-3004:用户信息授权失败
-3005:消息发送失败
-3006:用户已经加入群聊