@titaui/pc 1.10.83-beta.8 → 1.10.83-beta.9
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.
|
@@ -19,6 +19,8 @@ var _getLocale = require("../../utils/getLocale");
|
|
|
19
19
|
|
|
20
20
|
var _request = require("../../utils/request");
|
|
21
21
|
|
|
22
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
23
|
+
|
|
22
24
|
require("./index.css");
|
|
23
25
|
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -42,6 +44,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
42
44
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
45
|
|
|
44
46
|
var preCls = 'titaui-wechat-btn';
|
|
47
|
+
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
45
48
|
|
|
46
49
|
var WeChatBtn = function WeChatBtn(props) {
|
|
47
50
|
var id = props.id,
|
|
@@ -140,9 +143,15 @@ var WeChatBtn = function WeChatBtn(props) {
|
|
|
140
143
|
console.log(chatId);
|
|
141
144
|
|
|
142
145
|
if (res.err_msg == 'updateEnterpriseChat:ok') {
|
|
143
|
-
|
|
146
|
+
wx.invoke('openExistedChatWithMsg', {
|
|
147
|
+
chatId: chatId
|
|
148
|
+
}, function (res) {
|
|
149
|
+
if (res.err_msg == 'openExistedChatWithMsg:ok') {
|
|
150
|
+
console.log('打开群成功');
|
|
151
|
+
}
|
|
152
|
+
});
|
|
144
153
|
} else {
|
|
145
|
-
if (
|
|
154
|
+
if (userId === principalUser.userId) {
|
|
146
155
|
setPrincipalUserModalVisible(true);
|
|
147
156
|
} else {
|
|
148
157
|
setMemberVisible(true);
|