bhd-components 0.9.13 → 0.9.15
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/README.md +1 -1
- package/dist/index.esm.es5.development.css +1093 -1087
- package/dist/index.esm.es5.development.js +236 -264
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +1 -1
- package/dist/vendor.esm.es5.production.js +1 -1
- package/es2017/customerService/function.js +2 -1
- package/es2017/customerService/index.js +155 -162
- package/es2017/customerService/index.module.less +5 -0
- package/es2017/customerService/index2.module.less +5 -0
- package/esm/customerService/function.js +2 -1
- package/esm/customerService/index.js +233 -262
- package/esm/customerService/index.module.less +5 -0
- package/esm/customerService/index2.module.less +5 -0
- package/package.json +1 -1
|
@@ -534,7 +534,7 @@ var CustomerService = function(props) {
|
|
|
534
534
|
roomId: roomId,
|
|
535
535
|
sender: "AI",
|
|
536
536
|
recevier: mid,
|
|
537
|
-
message: "Hi,我是智能学习助手,你遇到了什么问题?
|
|
537
|
+
message: "Hi,我是智能学习助手,你遇到了什么问题?",
|
|
538
538
|
extraInfos: questionsList == null ? null : questionsList
|
|
539
539
|
};
|
|
540
540
|
if (pageNumHistory <= 1) {
|
|
@@ -564,7 +564,7 @@ var CustomerService = function(props) {
|
|
|
564
564
|
roomId: roomId,
|
|
565
565
|
sender: "AI",
|
|
566
566
|
recevier: mid,
|
|
567
|
-
message: "Hi,我是智能学习助手,你遇到了什么问题?
|
|
567
|
+
message: "Hi,我是智能学习助手,你遇到了什么问题?"
|
|
568
568
|
};
|
|
569
569
|
if (pageNumHistory <= 1) {
|
|
570
570
|
setHistoryMessageList(function(historyMessageList) {
|
|
@@ -732,117 +732,90 @@ var CustomerService = function(props) {
|
|
|
732
732
|
//消息发送给老师type == 1,召唤老师时发送,type == 2,在老师聊天窗口聊天
|
|
733
733
|
var sendToTeacher = function() {
|
|
734
734
|
var _ref = _async_to_generator(function(type) {
|
|
735
|
-
var message, obj, list, recevier
|
|
735
|
+
var message, obj, list, recevier;
|
|
736
736
|
var _arguments = arguments;
|
|
737
737
|
return _ts_generator(this, function(_state) {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
urlToBase64(citationContent.imageUrl)
|
|
787
|
-
];
|
|
788
|
-
case 2:
|
|
789
|
-
base64 = _state.sent();
|
|
790
|
-
console.log("citationContent.imageUrl", citationContent.imageUrl);
|
|
791
|
-
//imageUrl = citationContent.imageUrl;
|
|
792
|
-
obj.image = base64;
|
|
793
|
-
_state.label = 3;
|
|
794
|
-
case 3:
|
|
795
|
-
if (screenshotBese64) {
|
|
796
|
-
obj.image = screenshotBese64;
|
|
797
|
-
setScreenshotBese64("");
|
|
798
|
-
}
|
|
799
|
-
_state.label = 4;
|
|
800
|
-
case 4:
|
|
801
|
-
http.post("".concat(urllocation, "/chat-service/public/v1.0/chat-with-user/messages"), obj).then(function(res) {
|
|
802
|
-
if (res.data.id) {
|
|
803
|
-
// console.log(pageNum, pageNumHistory, lastId, "dlskskdsd4444");
|
|
804
|
-
if (pageNum == 1 || pageNumHistory == 1 || pageNumHistory == 0) {
|
|
805
|
-
setHistoryMessageList(function(historyMessageList) {
|
|
806
|
-
var newHistoryMessageList = historyMessageList.concat(_object_spread_props(_object_spread({}, obj), {
|
|
807
|
-
id: res.data.id,
|
|
808
|
-
upvoted: false,
|
|
809
|
-
downvoted: false,
|
|
810
|
-
createdAt: getDataTime(-1),
|
|
811
|
-
extraInfo: obj.image ? JSON.stringify([
|
|
812
|
-
{
|
|
813
|
-
key: "imageUrl",
|
|
814
|
-
value: obj.image
|
|
815
|
-
}
|
|
816
|
-
]) : null
|
|
817
|
-
}));
|
|
818
|
-
return newHistoryMessageList;
|
|
819
|
-
});
|
|
820
|
-
// console.log(lastId,'消息发送给老师111');
|
|
821
|
-
scrollToBottom();
|
|
822
|
-
}
|
|
823
|
-
//判断当前窗口是否是
|
|
824
|
-
if (type == 1) {
|
|
825
|
-
var roomList = [
|
|
738
|
+
message = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
|
|
739
|
+
console.log("消息发送给老师111");
|
|
740
|
+
obj = {};
|
|
741
|
+
if (type == 1) {
|
|
742
|
+
obj = {
|
|
743
|
+
roomId: roomId,
|
|
744
|
+
sender: mid,
|
|
745
|
+
recevier: chatWith.uid,
|
|
746
|
+
message: problem.question
|
|
747
|
+
};
|
|
748
|
+
if (problem.url) {
|
|
749
|
+
obj.image = problem.url;
|
|
750
|
+
}
|
|
751
|
+
setProblem({});
|
|
752
|
+
} else if (type == 2 || type == 3) {
|
|
753
|
+
list = contactsList.filter(function(item) {
|
|
754
|
+
return item.roomId == roomId;
|
|
755
|
+
});
|
|
756
|
+
recevier = "";
|
|
757
|
+
if (list.length > 0) {
|
|
758
|
+
recevier = list[0].sender;
|
|
759
|
+
}
|
|
760
|
+
obj = {
|
|
761
|
+
roomId: roomId,
|
|
762
|
+
sender: mid,
|
|
763
|
+
recevier: recevier,
|
|
764
|
+
message: type == 2 ? keyWord : message,
|
|
765
|
+
quotedMessage: citationContent.content || ""
|
|
766
|
+
};
|
|
767
|
+
if (citationContent.imageUrl) {
|
|
768
|
+
obj.image = citationContent.imageUrl;
|
|
769
|
+
}
|
|
770
|
+
if (screenshotBese64) {
|
|
771
|
+
obj.image = screenshotBese64;
|
|
772
|
+
setScreenshotBese64("");
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
http.post("".concat(urllocation, "/chat-service/public/v1.0/chat-with-user/messages"), obj).then(function(res) {
|
|
776
|
+
if (res.data.id) {
|
|
777
|
+
// console.log(pageNum, pageNumHistory, lastId, "dlskskdsd4444");
|
|
778
|
+
if (pageNum == 1 || pageNumHistory == 1 || pageNumHistory == 0) {
|
|
779
|
+
setHistoryMessageList(function(historyMessageList) {
|
|
780
|
+
var newHistoryMessageList = historyMessageList.concat(_object_spread_props(_object_spread({}, obj), {
|
|
781
|
+
id: res.data.id,
|
|
782
|
+
upvoted: false,
|
|
783
|
+
downvoted: false,
|
|
784
|
+
createdAt: getDataTime(-1),
|
|
785
|
+
extraInfo: obj.image ? JSON.stringify([
|
|
826
786
|
{
|
|
827
|
-
|
|
828
|
-
|
|
787
|
+
key: "imageUrl",
|
|
788
|
+
value: obj.image
|
|
829
789
|
}
|
|
830
|
-
]
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
790
|
+
]) : null
|
|
791
|
+
}));
|
|
792
|
+
return newHistoryMessageList;
|
|
793
|
+
});
|
|
794
|
+
// console.log(lastId,'消息发送给老师111');
|
|
795
|
+
scrollToBottom();
|
|
796
|
+
}
|
|
797
|
+
//判断当前窗口是否是
|
|
798
|
+
if (type == 1) {
|
|
799
|
+
var roomList = [
|
|
800
|
+
{
|
|
801
|
+
roomId: roomId,
|
|
802
|
+
id: res.data.id
|
|
837
803
|
}
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
804
|
+
];
|
|
805
|
+
setChatObj(function(list) {
|
|
806
|
+
var list2 = list.filter(function(item) {
|
|
807
|
+
return item.id != roomList[0].id;
|
|
808
|
+
});
|
|
809
|
+
return list2.concat(roomList);
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}).catch(function(err) {
|
|
814
|
+
console.log(err);
|
|
815
|
+
});
|
|
816
|
+
return [
|
|
817
|
+
2
|
|
818
|
+
];
|
|
846
819
|
});
|
|
847
820
|
});
|
|
848
821
|
return function sendToTeacher(type) {
|
|
@@ -958,9 +931,9 @@ var CustomerService = function(props) {
|
|
|
958
931
|
];
|
|
959
932
|
case 2:
|
|
960
933
|
base64 = _state.sent();
|
|
934
|
+
console.log("base64", base64);
|
|
961
935
|
console.log("citationContent.imageUrl", citationContent.imageUrl);
|
|
962
|
-
sendData1.image =
|
|
963
|
-
//imageUrl = citationContent.imageUrl;
|
|
936
|
+
sendData1.image = base64;
|
|
964
937
|
imageUrl = base64;
|
|
965
938
|
_state.label = 3;
|
|
966
939
|
case 3:
|
|
@@ -2441,171 +2414,169 @@ var CustomerService = function(props) {
|
|
|
2441
2414
|
}),
|
|
2442
2415
|
/*#__PURE__*/ _jsx("div", {
|
|
2443
2416
|
className: styles.main,
|
|
2444
|
-
children: /*#__PURE__*/
|
|
2417
|
+
children: /*#__PURE__*/ _jsx("div", {
|
|
2445
2418
|
className: styles.main_content,
|
|
2446
|
-
children:
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2419
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
2420
|
+
className: styles.main_content_flag,
|
|
2421
|
+
onMouseEnter: function() {
|
|
2422
|
+
var dom = document.getElementById(item.id);
|
|
2423
|
+
if (dom) {
|
|
2424
|
+
var con_h = document.getElementById("chat_content").clientHeight - 24; //滚动区域的高度
|
|
2425
|
+
var rectY = dom.getBoundingClientRect().y - 48;
|
|
2426
|
+
var h = dom.clientHeight + 24; //当前元素高度
|
|
2427
|
+
var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
|
|
2428
|
+
var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
|
|
2429
|
+
if (topDom && bottomDom) {
|
|
2430
|
+
console.log(h, con_h, rectY);
|
|
2431
|
+
if (rectY > 0) {
|
|
2432
|
+
topDom.style.cssText = "";
|
|
2433
|
+
bottomDom.style.cssText = "visibility: hidden;";
|
|
2434
|
+
// 上下都能显示时,显示到下边
|
|
2435
|
+
if (h < con_h - rectY) {
|
|
2436
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
2437
|
+
bottomDom.style.cssText = "";
|
|
2438
|
+
}
|
|
2439
|
+
} else {
|
|
2440
|
+
// 上下都不显示
|
|
2441
|
+
if (h > con_h && h - con_h > Math.abs(rectY)) {
|
|
2442
|
+
console.log("rerererererer");
|
|
2443
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
2444
|
+
bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
|
|
2467
2445
|
} else {
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
console.log("rerererererer");
|
|
2471
|
-
topDom.style.cssText = "visibility: hidden;";
|
|
2472
|
-
bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
|
|
2473
|
-
} else {
|
|
2474
|
-
topDom.style.cssText = "visibility: hidden;";
|
|
2475
|
-
bottomDom.style.cssText = "";
|
|
2476
|
-
}
|
|
2446
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
2447
|
+
bottomDom.style.cssText = "";
|
|
2477
2448
|
}
|
|
2478
2449
|
}
|
|
2479
2450
|
}
|
|
2480
|
-
}
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
children: [
|
|
2454
|
+
/*#__PURE__*/ _jsx("div", {
|
|
2455
|
+
className: "".concat(styles.operate_modal, " operate_modal_showtop"),
|
|
2456
|
+
children: // 不是最后一行,
|
|
2457
|
+
historyMessageList.length - 1 != i && renderOperateBtn(item, isAiChatWindow, i)
|
|
2458
|
+
}),
|
|
2459
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
2460
|
+
className: styles.content,
|
|
2461
|
+
children: [
|
|
2462
|
+
item.message != "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ _jsx("p", {
|
|
2463
|
+
dangerouslySetInnerHTML: {
|
|
2464
|
+
__html: message
|
|
2465
|
+
},
|
|
2466
|
+
className: styles.content_child
|
|
2467
|
+
}),
|
|
2468
|
+
item.message == "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ _jsxs("p", {
|
|
2469
|
+
children: [
|
|
2470
|
+
"AI助手繁忙,请稍后再提问或",
|
|
2471
|
+
/*#__PURE__*/ _jsx("span", {
|
|
2472
|
+
className: styles.find_teacher_con,
|
|
2473
|
+
onClick: function() {
|
|
2474
|
+
var extraInfo = historyMessageList[i - 1].extraInfo;
|
|
2475
|
+
var url = "";
|
|
2476
|
+
if (extraInfo && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "imageUrl" && JSON.parse(extraInfo)[0].value) {
|
|
2477
|
+
url = JSON.parse(extraInfo)[0].value;
|
|
2478
|
+
}
|
|
2479
|
+
setProblem({
|
|
2480
|
+
question: historyMessageList[i - 1].message,
|
|
2481
|
+
url: url
|
|
2482
|
+
});
|
|
2483
|
+
setShowTeacherList(true);
|
|
2484
|
+
},
|
|
2485
|
+
children: "召唤老师回答"
|
|
2486
|
+
})
|
|
2487
|
+
]
|
|
2488
|
+
}),
|
|
2489
|
+
!item.quotedMessage && item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ _jsxs("p", {
|
|
2490
|
+
className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
|
|
2491
|
+
children: [
|
|
2492
|
+
/*#__PURE__*/ _jsx("img", {
|
|
2493
|
+
src: JSON.parse(item.extraInfo)[0].value
|
|
2494
|
+
}),
|
|
2495
|
+
/*#__PURE__*/ _jsx("div", {
|
|
2496
|
+
className: styles.mask_zoom,
|
|
2497
|
+
children: /*#__PURE__*/ _jsx(ZoomInOutlined, {
|
|
2501
2498
|
onClick: function() {
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
url = JSON.parse(extraInfo)[0].value;
|
|
2506
|
-
}
|
|
2507
|
-
setProblem({
|
|
2508
|
-
question: historyMessageList[i - 1].message,
|
|
2509
|
-
url: url
|
|
2510
|
-
});
|
|
2511
|
-
setShowTeacherList(true);
|
|
2512
|
-
},
|
|
2513
|
-
children: "召唤老师回答"
|
|
2499
|
+
setViewBase64(JSON.parse(item.extraInfo)[0].value);
|
|
2500
|
+
setVisible(true);
|
|
2501
|
+
}
|
|
2514
2502
|
})
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
/*#__PURE__*/ _jsx("
|
|
2524
|
-
|
|
2525
|
-
children: /*#__PURE__*/ _jsx(ZoomInOutlined, {
|
|
2526
|
-
onClick: function() {
|
|
2527
|
-
setViewBase64(JSON.parse(item.extraInfo)[0].value);
|
|
2528
|
-
setVisible(true);
|
|
2529
|
-
}
|
|
2530
|
-
})
|
|
2503
|
+
})
|
|
2504
|
+
]
|
|
2505
|
+
}),
|
|
2506
|
+
item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "messageSource" && JSON.parse(item.extraInfo)[0].value != "knowledgebase" && /*#__PURE__*/ _jsxs("ul", {
|
|
2507
|
+
className: "".concat(styles.association_problem, " ").concat(item.message == "抱歉,我暂时无法回答这样的问题。" ? styles.association_problem_flag : ""),
|
|
2508
|
+
children: [
|
|
2509
|
+
item.message == "抱歉,我暂时无法回答这样的问题。" && /*#__PURE__*/ _jsx("li", {
|
|
2510
|
+
className: styles.related_issues_flag,
|
|
2511
|
+
children: /*#__PURE__*/ _jsx("span", {
|
|
2512
|
+
children: "相关问题"
|
|
2531
2513
|
})
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2514
|
+
}),
|
|
2515
|
+
JSON.parse(item.extraInfo).map(function(list, index) {
|
|
2516
|
+
return /*#__PURE__*/ _jsx("li", {
|
|
2517
|
+
onClick: function() {
|
|
2518
|
+
sendMessage(list, 1);
|
|
2519
|
+
setBottomRecommendationQuestions([]);
|
|
2520
|
+
resettingBottomHei();
|
|
2521
|
+
},
|
|
2522
|
+
children: item.message == "抱歉,我暂时无法回答这样的问题。" ? list.question : /*#__PURE__*/ _jsxs(_Fragment, {
|
|
2523
|
+
children: [
|
|
2524
|
+
JSON.parse(item.extraInfo).length > 1 ? index + 1 + "." : "",
|
|
2525
|
+
list.question
|
|
2526
|
+
]
|
|
2541
2527
|
})
|
|
2542
|
-
})
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2528
|
+
}, i + "_" + index + "_" + list.value);
|
|
2529
|
+
})
|
|
2530
|
+
]
|
|
2531
|
+
}),
|
|
2532
|
+
//findTeacher//是否在召唤老师过程中,是否是最后一条消息
|
|
2533
|
+
!item.findTeacher && historyMessageList.length - 1 == i && item.id != "123456" && item.id != "123456_date" && renderLastOperateBtn(item, isAiChatWindow, i)
|
|
2534
|
+
]
|
|
2535
|
+
}),
|
|
2536
|
+
//引用消息
|
|
2537
|
+
item.quotedMessage && /*#__PURE__*/ _jsxs("div", {
|
|
2538
|
+
className: styles.citation_content,
|
|
2539
|
+
children: [
|
|
2540
|
+
getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ _jsx(Tooltip, {
|
|
2541
|
+
overlayClassName: styles.popover_main_content,
|
|
2542
|
+
title: item.quotedMessage,
|
|
2543
|
+
placement: "rightTop",
|
|
2544
|
+
children: /*#__PURE__*/ _jsxs("p", {
|
|
2545
|
+
className: styles.text_exceed,
|
|
2546
|
+
children: [
|
|
2547
|
+
item.quotedMessage,
|
|
2548
|
+
/*#__PURE__*/ _jsx(RightOutlined, {})
|
|
2558
2549
|
]
|
|
2559
|
-
})
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
className: "".concat(styles.operate_modal, " ").concat(styles.bottom, " operate_modal_showbottom"),
|
|
2566
|
-
children: // 不是最后一行,
|
|
2567
|
-
renderOperateBtn(item, isAiChatWindow, i)
|
|
2568
|
-
})
|
|
2569
|
-
]
|
|
2570
|
-
}),
|
|
2571
|
-
//引用消息
|
|
2572
|
-
item.quotedMessage && /*#__PURE__*/ _jsxs("div", {
|
|
2573
|
-
className: styles.citation_content,
|
|
2574
|
-
children: [
|
|
2575
|
-
getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ _jsx(Tooltip, {
|
|
2576
|
-
overlayClassName: styles.popover_main_content,
|
|
2577
|
-
title: item.quotedMessage,
|
|
2578
|
-
placement: "rightTop",
|
|
2579
|
-
children: /*#__PURE__*/ _jsxs("p", {
|
|
2580
|
-
className: styles.text_exceed,
|
|
2550
|
+
})
|
|
2551
|
+
}) : /*#__PURE__*/ _jsx("p", {
|
|
2552
|
+
children: item.quotedMessage
|
|
2553
|
+
}),
|
|
2554
|
+
item.quotedMessage && item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ _jsxs("p", {
|
|
2555
|
+
className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
|
|
2581
2556
|
children: [
|
|
2582
|
-
|
|
2583
|
-
|
|
2557
|
+
/*#__PURE__*/ _jsx("img", {
|
|
2558
|
+
src: JSON.parse(item.extraInfo)[0].value
|
|
2559
|
+
}),
|
|
2560
|
+
/*#__PURE__*/ _jsx("div", {
|
|
2561
|
+
className: styles.mask_zoom,
|
|
2562
|
+
children: /*#__PURE__*/ _jsx(ZoomInOutlined, {
|
|
2563
|
+
onClick: function() {
|
|
2564
|
+
setViewBase64(JSON.parse(item.extraInfo)[0].value);
|
|
2565
|
+
setVisible(true);
|
|
2566
|
+
}
|
|
2567
|
+
})
|
|
2568
|
+
})
|
|
2584
2569
|
]
|
|
2585
2570
|
})
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
/*#__PURE__*/ _jsx("div", {
|
|
2596
|
-
className: styles.mask_zoom,
|
|
2597
|
-
children: /*#__PURE__*/ _jsx(ZoomInOutlined, {
|
|
2598
|
-
onClick: function() {
|
|
2599
|
-
setViewBase64(JSON.parse(item.extraInfo)[0].value);
|
|
2600
|
-
setVisible(true);
|
|
2601
|
-
}
|
|
2602
|
-
})
|
|
2603
|
-
})
|
|
2604
|
-
]
|
|
2605
|
-
})
|
|
2606
|
-
]
|
|
2607
|
-
})
|
|
2608
|
-
]
|
|
2571
|
+
]
|
|
2572
|
+
}),
|
|
2573
|
+
historyMessageList.length - 1 !== i && /*#__PURE__*/ _jsx("div", {
|
|
2574
|
+
className: "".concat(styles.operate_modal, " ").concat(styles.bottom, " operate_modal_showbottom"),
|
|
2575
|
+
children: // 不是最后一行,
|
|
2576
|
+
renderOperateBtn(item, isAiChatWindow, i)
|
|
2577
|
+
})
|
|
2578
|
+
]
|
|
2579
|
+
})
|
|
2609
2580
|
})
|
|
2610
2581
|
})
|
|
2611
2582
|
]
|