@titaui/pc 1.10.56 → 1.10.58
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.
|
@@ -143,6 +143,12 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
143
143
|
(0, _requestV.taker)(url, "DELETE").then(function (res) {
|
|
144
144
|
if (res.Code === 1) {
|
|
145
145
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal - 1) : _this.getFeedInfo(feedId, commentCount);
|
|
146
|
+
|
|
147
|
+
if (_this.props.onReplyChange) {
|
|
148
|
+
_this.props.onReplyChange({
|
|
149
|
+
submitType: 'delete'
|
|
150
|
+
});
|
|
151
|
+
}
|
|
146
152
|
}
|
|
147
153
|
});
|
|
148
154
|
} else if (actionType === "reply") {
|
|
@@ -227,7 +233,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
227
233
|
feedId = _this$props4.feedId,
|
|
228
234
|
commentCount = _this$props4.commentCount,
|
|
229
235
|
commentType = _this$props4.commentType,
|
|
230
|
-
okrFeedParams = _this$props4.okrFeedParams
|
|
236
|
+
okrFeedParams = _this$props4.okrFeedParams,
|
|
237
|
+
onReplyChange = _this$props4.onReplyChange;
|
|
231
238
|
var _this$state3 = _this.state,
|
|
232
239
|
isShowReplyToUser = _this$state3.isShowReplyToUser,
|
|
233
240
|
replyUserCommentId = _this$state3.replyUserCommentId,
|
|
@@ -272,6 +279,12 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
272
279
|
submitStatus: 0
|
|
273
280
|
});
|
|
274
281
|
}
|
|
282
|
+
|
|
283
|
+
if (onReplyChange) {
|
|
284
|
+
onReplyChange({
|
|
285
|
+
submitType: submitType
|
|
286
|
+
});
|
|
287
|
+
}
|
|
275
288
|
};
|
|
276
289
|
|
|
277
290
|
_this.handlerCancelReplyUser = function () {
|
|
@@ -170,7 +170,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
170
170
|
actionName: "查看日报",
|
|
171
171
|
actionGroup: "动态-查看更多",
|
|
172
172
|
productName: "动态",
|
|
173
|
-
|
|
173
|
+
feedId: data.dailyId
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -186,6 +186,8 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
186
186
|
return Number("".concat(item.userId)) !== Number("".concat(Id));
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
+
var actionName = "";
|
|
190
|
+
|
|
189
191
|
if (type) {
|
|
190
192
|
var avatar = (0, _bsGlobal.getBSGlobal)("loginUserInfo").UserAvatar;
|
|
191
193
|
var name = (0, _bsGlobal.getBSGlobal)("loginUserInfo").Name;
|
|
@@ -198,8 +200,19 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
198
200
|
praiseType: type
|
|
199
201
|
};
|
|
200
202
|
setPraiseData([parseUser].concat(_toConsumableArray(data)));
|
|
203
|
+
actionName = "点赞日报";
|
|
201
204
|
} else {
|
|
202
205
|
setPraiseData(data);
|
|
206
|
+
actionName = "取消日报点赞";
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (window.titaTracker) {
|
|
210
|
+
window.titaTracker("planAction").record({
|
|
211
|
+
actionName: actionName,
|
|
212
|
+
actionGroup: "动态-日报",
|
|
213
|
+
productName: "动态",
|
|
214
|
+
feedId: feedId
|
|
215
|
+
});
|
|
203
216
|
}
|
|
204
217
|
};
|
|
205
218
|
|
|
@@ -337,12 +350,35 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
337
350
|
};
|
|
338
351
|
|
|
339
352
|
if (window.util) {
|
|
353
|
+
if (window.titaTracker) {
|
|
354
|
+
window.titaTracker("planAction").record({
|
|
355
|
+
actionName: "打开打赏弹层",
|
|
356
|
+
actionGroup: "动态-日报",
|
|
357
|
+
productName: "动态",
|
|
358
|
+
feedId: feedId
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
|
|
340
362
|
window.util.rewardGetFile(function (myReward) {
|
|
341
363
|
myReward.renderPayReward(data);
|
|
342
364
|
});
|
|
343
365
|
}
|
|
344
366
|
};
|
|
345
367
|
|
|
368
|
+
var handleReply = function handleReply(_ref2) {
|
|
369
|
+
var submitType = _ref2.submitType;
|
|
370
|
+
var actionName = submitType === "delete" ? "删除日报评论" : "评论日报";
|
|
371
|
+
|
|
372
|
+
if (window.titaTracker) {
|
|
373
|
+
window.titaTracker("planAction").record({
|
|
374
|
+
actionName: actionName,
|
|
375
|
+
actionGroup: "动态-日报",
|
|
376
|
+
productName: "动态",
|
|
377
|
+
feedId: feedId
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
|
|
346
382
|
(0, _react.useEffect)(function () {
|
|
347
383
|
setTimeout(function () {
|
|
348
384
|
if (dynamicContentRef.current && dynamicContentRef.current.offsetHeight > 334) {
|
|
@@ -452,6 +488,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
452
488
|
usePropsComment: usePropsComment,
|
|
453
489
|
communication: feedComments.comments,
|
|
454
490
|
totalCommunicationNum: feedComments.total,
|
|
491
|
+
onReplyChange: handleReply,
|
|
455
492
|
showUser: true,
|
|
456
493
|
showDefaultInput: true
|
|
457
494
|
}))));
|