@titaui/pc 1.10.83-beta.3 → 1.10.83-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.husky/pre-commit CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
-
3
+ #
4
4
  npm run lint-staged
@@ -111,6 +111,14 @@ var WeChatBtn = function WeChatBtn(props) {
111
111
 
112
112
  var isWx = navigator.userAgent.match(/wxwork/);
113
113
  var isMac = navigator.userAgent.match(/Mac/);
114
+ /**
115
+ * 点击企业微信图标这块稍许复杂 注释说明一下
116
+ * 先判断有没有群 没群就新建群
117
+ * 有群就先调用加人的接口 人本身不在群的情况 成功加人就打开进入群聊
118
+ * 人在群的情况 加人接口返回报错信息updateEnterpriseChat:fail_unsupported chat 则调用打开群接口
119
+ * 群解散的情况 则弹窗提示 联系负责人手动加群
120
+ * mac 不支持加人接口
121
+ */
114
122
 
115
123
  var handleClickWechatBtn = function handleClickWechatBtn() {
116
124
  if (isWx) {
@@ -118,7 +126,7 @@ var WeChatBtn = function WeChatBtn(props) {
118
126
  if (chatId !== null && chatId !== 'chatId') {
119
127
  wx.invoke('updateEnterpriseChat', {
120
128
  chatId: chatId,
121
- userIdsToAdd: "".concat(loginUserOpenId)
129
+ userIdsToAdd: "".concat(loginUserOpenId, ";").concat(weChatGroupMember[0], ";").concat(weChatGroupMember[1])
122
130
  }, function (res) {
123
131
  console.log("1.\u4EBA\u5728\u7FA4\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F\uFF1B2.\u4EBA\u4E0D\u5728\u7FA4\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F\uFF1B 3.\u7FA4\u89E3\u6563\u4E86\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F 4.mac\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F ".concat(res.err_msg));
124
132
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.83-beta.3",
3
+ "version": "1.10.83-beta.6",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",