bhd-components 0.9.14 → 0.9.16

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.
@@ -2520,7 +2520,7 @@ function BhdAppLayout(props) {
2520
2520
  });
2521
2521
  }
2522
2522
 
2523
- var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__4297734b","ChatWindow_Modal":"index_module_ChatWindow_Modal__4297734b","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__4297734b","header_wrap":"index_module_header_wrap__4297734b","top":"index_module_top__4297734b","user":"index_module_user__4297734b","count":"index_module_count__4297734b","operate":"index_module_operate__4297734b","line":"index_module_line__4297734b","popover_main":"index_module_popover_main__4297734b","popover":"index_module_popover__4297734b","header_wrap_newlabo":"index_module_header_wrap_newlabo__4297734b","Drawer_main":"index_module_Drawer_main__4297734b","loading":"index_module_loading__4297734b","message_con":"index_module_message_con__4297734b","left":"index_module_left__4297734b","head_sculpture":"index_module_head_sculpture__4297734b","main_content":"index_module_main_content__4297734b","right":"index_module_right__4297734b","main":"index_module_main__4297734b","main_content_flag":"index_module_main_content_flag__4297734b","operate_modal":"index_module_operate_modal__4297734b","operate_modal_bottom":"index_module_operate_modal_bottom__4297734b","active":"index_module_active__4297734b","stop_generate":"index_module_stop_generate__4297734b","icon":"index_module_icon__4297734b","find_teacher":"index_module_find_teacher__4297734b","stop_findTeacher":"index_module_stop_findTeacher__4297734b","content":"index_module_content__4297734b","content_child":"index_module_content_child__4297734b","find_teacher_con":"index_module_find_teacher_con__4297734b","sign":"index_module_sign__4297734b","ask_question":"index_module_ask_question__4297734b","bottom":"index_module_bottom__4297734b","association_problem":"index_module_association_problem__4297734b","association_problem_flag":"index_module_association_problem_flag__4297734b","related_issues_flag":"index_module_related_issues_flag__4297734b","img_con":"index_module_img_con__4297734b","mask_zoom":"index_module_mask_zoom__4297734b","img_con2":"index_module_img_con2__4297734b","copyCode":"index_module_copyCode__4297734b","time":"index_module_time__4297734b","citation_content":"index_module_citation_content__4297734b","text_exceed":"index_module_text_exceed__4297734b","popover_content":"index_module_popover_content__4297734b","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__4297734b","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__4297734b","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__4297734b","issues_list_teacherList":"index_module_issues_list_teacherList__4297734b","item":"index_module_item__4297734b","issues_list":"index_module_issues_list__4297734b","issues_list_flag":"index_module_issues_list_flag__4297734b","Drawer_buttom":"index_module_Drawer_buttom__4297734b","input_wrap":"index_module_input_wrap__4297734b","input":"index_module_input__4297734b","picture_layout":"index_module_picture_layout__4297734b","icon_close":"index_module_icon_close__4297734b","icon_zoom":"index_module_icon_zoom__4297734b","anticon":"index_module_anticon__4297734b","no_AI":"index_module_no_AI__4297734b","screenshot":"index_module_screenshot__4297734b","disabled":"index_module_disabled__4297734b","content_main":"index_module_content_main__4297734b","content_con":"index_module_content_con__4297734b","delete_quote":"index_module_delete_quote__4297734b","sending":"index_module_sending__4297734b","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__4297734b","main_list":"index_module_main_list__4297734b","chat_content":"index_module_chat_content__4297734b","popover_main_content":"index_module_popover_main_content__4297734b","popover_main_content_name":"index_module_popover_main_content_name__4297734b","teacher_layout":"index_module_teacher_layout__4297734b","delete":"index_module_delete__4297734b","num":"index_module_num__4297734b","shrink":"index_module_shrink__4297734b","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__4297734b","teacher_layout_modal":"index_module_teacher_layout_modal__4297734b","ai":"index_module_ai__4297734b","user_info":"index_module_user_info__4297734b","message":"index_module_message__4297734b","con":"index_module_con__4297734b","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__4297734b","history_list":"index_module_history_list__4297734b","search_layout":"index_module_search_layout__4297734b","mymove":"index_module_mymove__4297734b","title":"index_module_title__4297734b","search_top":"index_module_search_top__4297734b","list_item":"index_module_list_item__4297734b","list_summary":"index_module_list_summary__4297734b","head_img":"index_module_head_img__4297734b","list_desc":"index_module_list_desc__4297734b","name":"index_module_name__4297734b","decs":"index_module_decs__4297734b","open":"index_module_open__4297734b","list_summary_active":"index_module_list_summary_active__4297734b","list_detail":"index_module_list_detail__4297734b","list":"index_module_list__4297734b","list_more":"index_module_list_more__4297734b","no_data":"index_module_no_data__4297734b","history_list_broadside":"index_module_history_list_broadside__4297734b","teacher_list":"index_module_teacher_list__4297734b","screenshot_Modal":"index_module_screenshot_Modal__4297734b","ReactCrop":"index_module_ReactCrop__4297734b","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__4297734b"};
2523
+ var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__6402b35f","ChatWindow_Modal":"index_module_ChatWindow_Modal__6402b35f","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__6402b35f","header_wrap":"index_module_header_wrap__6402b35f","top":"index_module_top__6402b35f","user":"index_module_user__6402b35f","count":"index_module_count__6402b35f","operate":"index_module_operate__6402b35f","line":"index_module_line__6402b35f","popover_main":"index_module_popover_main__6402b35f","popover":"index_module_popover__6402b35f","header_wrap_newlabo":"index_module_header_wrap_newlabo__6402b35f","Drawer_main":"index_module_Drawer_main__6402b35f","loading":"index_module_loading__6402b35f","message_con":"index_module_message_con__6402b35f","left":"index_module_left__6402b35f","head_sculpture":"index_module_head_sculpture__6402b35f","main_content":"index_module_main_content__6402b35f","right":"index_module_right__6402b35f","main":"index_module_main__6402b35f","main_content_flag":"index_module_main_content_flag__6402b35f","operate_modal":"index_module_operate_modal__6402b35f","operate_modal_bottom":"index_module_operate_modal_bottom__6402b35f","active":"index_module_active__6402b35f","stop_generate":"index_module_stop_generate__6402b35f","icon":"index_module_icon__6402b35f","find_teacher":"index_module_find_teacher__6402b35f","stop_findTeacher":"index_module_stop_findTeacher__6402b35f","content":"index_module_content__6402b35f","content_child":"index_module_content_child__6402b35f","find_teacher_con":"index_module_find_teacher_con__6402b35f","sign":"index_module_sign__6402b35f","ask_question":"index_module_ask_question__6402b35f","bottom":"index_module_bottom__6402b35f","association_problem":"index_module_association_problem__6402b35f","association_problem_flag":"index_module_association_problem_flag__6402b35f","related_issues_flag":"index_module_related_issues_flag__6402b35f","img_con":"index_module_img_con__6402b35f","mask_zoom":"index_module_mask_zoom__6402b35f","img_con2":"index_module_img_con2__6402b35f","copyCode":"index_module_copyCode__6402b35f","time":"index_module_time__6402b35f","citation_content":"index_module_citation_content__6402b35f","text_exceed":"index_module_text_exceed__6402b35f","popover_content":"index_module_popover_content__6402b35f","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__6402b35f","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__6402b35f","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__6402b35f","issues_list_teacherList":"index_module_issues_list_teacherList__6402b35f","item":"index_module_item__6402b35f","issues_list":"index_module_issues_list__6402b35f","issues_list_flag":"index_module_issues_list_flag__6402b35f","Drawer_buttom":"index_module_Drawer_buttom__6402b35f","input_wrap":"index_module_input_wrap__6402b35f","input":"index_module_input__6402b35f","picture_layout":"index_module_picture_layout__6402b35f","icon_close":"index_module_icon_close__6402b35f","icon_zoom":"index_module_icon_zoom__6402b35f","anticon":"index_module_anticon__6402b35f","no_AI":"index_module_no_AI__6402b35f","screenshot":"index_module_screenshot__6402b35f","disabled":"index_module_disabled__6402b35f","content_main":"index_module_content_main__6402b35f","content_con":"index_module_content_con__6402b35f","delete_quote":"index_module_delete_quote__6402b35f","sending":"index_module_sending__6402b35f","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__6402b35f","main_list":"index_module_main_list__6402b35f","chat_content":"index_module_chat_content__6402b35f","popover_main_content":"index_module_popover_main_content__6402b35f","popover_main_content_name":"index_module_popover_main_content_name__6402b35f","teacher_layout":"index_module_teacher_layout__6402b35f","delete":"index_module_delete__6402b35f","num":"index_module_num__6402b35f","shrink":"index_module_shrink__6402b35f","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__6402b35f","teacher_layout_modal":"index_module_teacher_layout_modal__6402b35f","ai":"index_module_ai__6402b35f","user_info":"index_module_user_info__6402b35f","message":"index_module_message__6402b35f","con":"index_module_con__6402b35f","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__6402b35f","history_list":"index_module_history_list__6402b35f","search_layout":"index_module_search_layout__6402b35f","mymove":"index_module_mymove__6402b35f","title":"index_module_title__6402b35f","search_top":"index_module_search_top__6402b35f","list_item":"index_module_list_item__6402b35f","list_summary":"index_module_list_summary__6402b35f","head_img":"index_module_head_img__6402b35f","list_desc":"index_module_list_desc__6402b35f","name":"index_module_name__6402b35f","decs":"index_module_decs__6402b35f","open":"index_module_open__6402b35f","list_summary_active":"index_module_list_summary_active__6402b35f","list_detail":"index_module_list_detail__6402b35f","list":"index_module_list__6402b35f","list_more":"index_module_list_more__6402b35f","no_data":"index_module_no_data__6402b35f","history_list_broadside":"index_module_history_list_broadside__6402b35f","teacher_list":"index_module_teacher_list__6402b35f","screenshot_Modal":"index_module_screenshot_Modal__6402b35f","ReactCrop":"index_module_ReactCrop__6402b35f","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__6402b35f"};
2524
2524
 
2525
2525
  //消息已读
2526
2526
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -3008,14 +3008,14 @@ var HistoryFun = function(props) {
3008
3008
  })
3009
3009
  ]
3010
3010
  }),
3011
- /*#__PURE__*/ jsx("div", {
3012
- className: modules_63b47c51$1.main_list,
3013
- id: "history_list",
3014
- children: /*#__PURE__*/ jsxs(Spin, {
3015
- spinning: loading,
3016
- tip: "加载中...",
3011
+ /*#__PURE__*/ jsx(Spin, {
3012
+ spinning: loading,
3013
+ tip: "加载中...",
3014
+ children: /*#__PURE__*/ jsxs("div", {
3015
+ className: modules_63b47c51$1.main_list,
3016
+ id: "history_list",
3017
3017
  children: [
3018
- showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
3018
+ !loading && showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
3019
3019
  className: modules_63b47c51$1.no_data,
3020
3020
  children: [
3021
3021
  /*#__PURE__*/ jsx("img", {
@@ -3026,7 +3026,7 @@ var HistoryFun = function(props) {
3026
3026
  })
3027
3027
  ]
3028
3028
  }),
3029
- showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
3029
+ !loading && showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
3030
3030
  className: modules_63b47c51$1.no_data,
3031
3031
  children: [
3032
3032
  /*#__PURE__*/ jsx("img", {
@@ -3037,7 +3037,7 @@ var HistoryFun = function(props) {
3037
3037
  })
3038
3038
  ]
3039
3039
  }),
3040
- /*#__PURE__*/ jsx("div", {
3040
+ !loading && /*#__PURE__*/ jsx("div", {
3041
3041
  className: modules_63b47c51$1.list_item,
3042
3042
  children: totalData.map(function(item) {
3043
3043
  var span = "";
@@ -10277,171 +10277,176 @@ var CustomerService = function(props) {
10277
10277
  }),
10278
10278
  /*#__PURE__*/ jsx("div", {
10279
10279
  className: styles.main,
10280
- children: /*#__PURE__*/ jsxs("div", {
10280
+ children: /*#__PURE__*/ jsx("div", {
10281
10281
  className: styles.main_content,
10282
- children: [
10283
- /*#__PURE__*/ jsxs("div", {
10284
- className: styles.main_content_flag,
10285
- onMouseEnter: function() {
10286
- var dom = document.getElementById(item.id);
10282
+ children: /*#__PURE__*/ jsxs("div", {
10283
+ className: styles.main_content_flag,
10284
+ onMouseEnter: function() {
10285
+ var isSmall = showType == 1 || showType == 3;
10286
+ var container = document.getElementById(isSmall ? "chat_content" : "chat_content_modal");
10287
+ if (container) {
10288
+ var dom = container.querySelector('[id="'.concat(item.id, '"]'));
10287
10289
  if (dom) {
10288
- var con_h = document.getElementById("chat_content").clientHeight - 24; //滚动区域的高度
10290
+ // const con_h=document.getElementById('chat_content').clientHeight-24;//滚动区域的高度
10291
+ var con_h = container.clientHeight - (isSmall ? 24 : 0); //滚动区域的高度;
10289
10292
  var rectY = dom.getBoundingClientRect().y - 48;
10290
- var h = dom.clientHeight + 24; //当前元素高度
10293
+ var h = dom.clientHeight + (isSmall ? 24 : 0); //当前元素高度
10291
10294
  var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
10292
10295
  var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
10296
+ // console.log({h,con_h,rectY,topDom,bottomDom})
10293
10297
  if (topDom && bottomDom) {
10294
- console.log(h, con_h, rectY);
10295
10298
  if (rectY > 0) {
10296
10299
  topDom.style.cssText = "";
10297
10300
  bottomDom.style.cssText = "visibility: hidden;";
10298
10301
  // 上下都能显示时,显示到下边
10299
10302
  if (h < con_h - rectY) {
10303
+ console.log("上下都能显示时,显示到下边");
10300
10304
  topDom.style.cssText = "visibility: hidden;";
10301
10305
  bottomDom.style.cssText = "";
10302
10306
  }
10303
10307
  } else {
10304
10308
  // 上下都不显示
10305
10309
  if (h > con_h && h - con_h > Math.abs(rectY)) {
10306
- console.log("rerererererer");
10310
+ console.log("上下都不显示");
10307
10311
  topDom.style.cssText = "visibility: hidden;";
10308
- bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
10312
+ bottomDom.style.cssText = "top:".concat(-(h + rectY - 51 - (isSmall ? 0 : 58)), "px;");
10309
10313
  } else {
10314
+ console.log("12312312");
10310
10315
  topDom.style.cssText = "visibility: hidden;";
10311
10316
  bottomDom.style.cssText = "";
10312
10317
  }
10313
10318
  }
10314
10319
  }
10315
10320
  }
10316
- },
10317
- children: [
10318
- /*#__PURE__*/ jsx("div", {
10319
- className: "".concat(styles.operate_modal, " operate_modal_showtop"),
10320
- children: // 不是最后一行,
10321
- historyMessageList.length - 1 != i && renderOperateBtn(item, isAiChatWindow, i)
10322
- }),
10323
- /*#__PURE__*/ jsxs("div", {
10324
- className: styles.content,
10325
- children: [
10326
- item.message != "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsx("p", {
10327
- dangerouslySetInnerHTML: {
10328
- __html: message
10329
- },
10330
- className: styles.content_child
10331
- }),
10332
- item.message == "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsxs("p", {
10333
- children: [
10334
- "AI助手繁忙,请稍后再提问或",
10335
- /*#__PURE__*/ jsx("span", {
10336
- className: styles.find_teacher_con,
10321
+ }
10322
+ },
10323
+ children: [
10324
+ /*#__PURE__*/ jsx("div", {
10325
+ className: "".concat(styles.operate_modal, " operate_modal_showtop"),
10326
+ children: // 不是最后一行,
10327
+ historyMessageList.length - 1 != i && renderOperateBtn(item, isAiChatWindow, i)
10328
+ }),
10329
+ /*#__PURE__*/ jsxs("div", {
10330
+ className: styles.content,
10331
+ children: [
10332
+ item.message != "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsx("p", {
10333
+ dangerouslySetInnerHTML: {
10334
+ __html: message
10335
+ },
10336
+ className: styles.content_child
10337
+ }),
10338
+ item.message == "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsxs("p", {
10339
+ children: [
10340
+ "AI助手繁忙,请稍后再提问或",
10341
+ /*#__PURE__*/ jsx("span", {
10342
+ className: styles.find_teacher_con,
10343
+ onClick: function() {
10344
+ var extraInfo = historyMessageList[i - 1].extraInfo;
10345
+ var url = "";
10346
+ if (extraInfo && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "imageUrl" && JSON.parse(extraInfo)[0].value) {
10347
+ url = JSON.parse(extraInfo)[0].value;
10348
+ }
10349
+ setProblem({
10350
+ question: historyMessageList[i - 1].message,
10351
+ url: url
10352
+ });
10353
+ setShowTeacherList(true);
10354
+ },
10355
+ children: "召唤老师回答"
10356
+ })
10357
+ ]
10358
+ }),
10359
+ !item.quotedMessage && item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
10360
+ className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
10361
+ children: [
10362
+ /*#__PURE__*/ jsx("img", {
10363
+ src: JSON.parse(item.extraInfo)[0].value
10364
+ }),
10365
+ /*#__PURE__*/ jsx("div", {
10366
+ className: styles.mask_zoom,
10367
+ children: /*#__PURE__*/ jsx(ZoomInOutlined, {
10337
10368
  onClick: function() {
10338
- var extraInfo = historyMessageList[i - 1].extraInfo;
10339
- var url = "";
10340
- if (extraInfo && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "imageUrl" && JSON.parse(extraInfo)[0].value) {
10341
- url = JSON.parse(extraInfo)[0].value;
10342
- }
10343
- setProblem({
10344
- question: historyMessageList[i - 1].message,
10345
- url: url
10346
- });
10347
- setShowTeacherList(true);
10348
- },
10349
- children: "召唤老师回答"
10369
+ setViewBase64(JSON.parse(item.extraInfo)[0].value);
10370
+ setVisible(true);
10371
+ }
10350
10372
  })
10351
- ]
10352
- }),
10353
- item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
10354
- className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
10355
- children: [
10356
- /*#__PURE__*/ jsx("img", {
10357
- src: JSON.parse(item.extraInfo)[0].value
10358
- }),
10359
- /*#__PURE__*/ jsx("div", {
10360
- className: styles.mask_zoom,
10361
- children: /*#__PURE__*/ jsx(ZoomInOutlined, {
10362
- onClick: function() {
10363
- setViewBase64(JSON.parse(item.extraInfo)[0].value);
10364
- setVisible(true);
10365
- }
10366
- })
10373
+ })
10374
+ ]
10375
+ }),
10376
+ 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", {
10377
+ className: "".concat(styles.association_problem, " ").concat(item.message == "抱歉,我暂时无法回答这样的问题。" ? styles.association_problem_flag : ""),
10378
+ children: [
10379
+ item.message == "抱歉,我暂时无法回答这样的问题。" && /*#__PURE__*/ jsx("li", {
10380
+ className: styles.related_issues_flag,
10381
+ children: /*#__PURE__*/ jsx("span", {
10382
+ children: "相关问题"
10367
10383
  })
10368
- ]
10369
- }),
10370
- 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", {
10371
- className: "".concat(styles.association_problem, " ").concat(item.message == "抱歉,我暂时无法回答这样的问题。" ? styles.association_problem_flag : ""),
10372
- children: [
10373
- item.message == "抱歉,我暂时无法回答这样的问题。" && /*#__PURE__*/ jsx("li", {
10374
- className: styles.related_issues_flag,
10375
- children: /*#__PURE__*/ jsx("span", {
10376
- children: "相关问题"
10384
+ }),
10385
+ JSON.parse(item.extraInfo).map(function(list, index) {
10386
+ return /*#__PURE__*/ jsx("li", {
10387
+ onClick: function() {
10388
+ sendMessage(list, 1);
10389
+ setBottomRecommendationQuestions([]);
10390
+ resettingBottomHei();
10391
+ },
10392
+ children: item.message == "抱歉,我暂时无法回答这样的问题。" ? list.question : /*#__PURE__*/ jsxs(Fragment, {
10393
+ children: [
10394
+ JSON.parse(item.extraInfo).length > 1 ? index + 1 + "." : "",
10395
+ list.question
10396
+ ]
10377
10397
  })
10378
- }),
10379
- JSON.parse(item.extraInfo).map(function(list, index) {
10380
- return /*#__PURE__*/ jsx("li", {
10381
- onClick: function() {
10382
- sendMessage(list, 1);
10383
- setBottomRecommendationQuestions([]);
10384
- resettingBottomHei();
10385
- },
10386
- children: item.message == "抱歉,我暂时无法回答这样的问题。" ? list.question : /*#__PURE__*/ jsxs(Fragment, {
10387
- children: [
10388
- JSON.parse(item.extraInfo).length > 1 ? index + 1 + "." : "",
10389
- list.question
10390
- ]
10391
- })
10392
- }, i + "_" + index + "_" + list.value);
10393
- })
10398
+ }, i + "_" + index + "_" + list.value);
10399
+ })
10400
+ ]
10401
+ }),
10402
+ //findTeacher//是否在召唤老师过程中,是否是最后一条消息
10403
+ !item.findTeacher && historyMessageList.length - 1 == i && item.id != "123456" && item.id != "123456_date" && renderLastOperateBtn(item, isAiChatWindow, i)
10404
+ ]
10405
+ }),
10406
+ //引用消息
10407
+ item.quotedMessage && /*#__PURE__*/ jsxs("div", {
10408
+ className: styles.citation_content,
10409
+ children: [
10410
+ getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
10411
+ overlayClassName: styles.popover_main_content,
10412
+ title: item.quotedMessage,
10413
+ placement: "rightTop",
10414
+ children: /*#__PURE__*/ jsxs("p", {
10415
+ className: styles.text_exceed,
10416
+ children: [
10417
+ item.quotedMessage,
10418
+ /*#__PURE__*/ jsx(RightOutlined, {})
10394
10419
  ]
10395
- }),
10396
- //findTeacher//是否在召唤老师过程中,是否是最后一条消息
10397
- !item.findTeacher && historyMessageList.length - 1 == i && item.id != "123456" && item.id != "123456_date" && renderLastOperateBtn(item, isAiChatWindow, i)
10398
- ]
10399
- }),
10400
- historyMessageList.length - 1 !== i && /*#__PURE__*/ jsx("div", {
10401
- className: "".concat(styles.operate_modal, " ").concat(styles.bottom, " operate_modal_showbottom"),
10402
- children: // 不是最后一行,
10403
- renderOperateBtn(item, isAiChatWindow, i)
10404
- })
10405
- ]
10406
- }),
10407
- //引用消息
10408
- item.quotedMessage && /*#__PURE__*/ jsxs("div", {
10409
- className: styles.citation_content,
10410
- children: [
10411
- getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
10412
- overlayClassName: styles.popover_main_content,
10413
- title: item.quotedMessage,
10414
- placement: "rightTop",
10415
- children: /*#__PURE__*/ jsxs("p", {
10416
- className: styles.text_exceed,
10420
+ })
10421
+ }) : /*#__PURE__*/ jsx("p", {
10422
+ children: item.quotedMessage
10423
+ }),
10424
+ item.quotedMessage && item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
10425
+ className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
10417
10426
  children: [
10418
- item.quotedMessage,
10419
- /*#__PURE__*/ jsx(RightOutlined, {})
10427
+ /*#__PURE__*/ jsx("img", {
10428
+ src: JSON.parse(item.extraInfo)[0].value
10429
+ }),
10430
+ /*#__PURE__*/ jsx("div", {
10431
+ className: styles.mask_zoom,
10432
+ children: /*#__PURE__*/ jsx(ZoomInOutlined, {
10433
+ onClick: function() {
10434
+ setViewBase64(JSON.parse(item.extraInfo)[0].value);
10435
+ setVisible(true);
10436
+ }
10437
+ })
10438
+ })
10420
10439
  ]
10421
10440
  })
10422
- }) : /*#__PURE__*/ jsx("p", {
10423
- children: item.quotedMessage
10424
- }),
10425
- item.extraInfo && JSON.parse(item.extraInfo).length > 0 && JSON.parse(item.extraInfo)[0].key == "imageUrl" && /*#__PURE__*/ jsxs("p", {
10426
- className: "".concat(styles.img_con, " ").concat(showType == 2 || showType == 4 ? styles.img_con2 : ""),
10427
- children: [
10428
- /*#__PURE__*/ jsx("img", {
10429
- src: JSON.parse(item.extraInfo)[0].value
10430
- }),
10431
- /*#__PURE__*/ jsx("div", {
10432
- className: styles.mask_zoom,
10433
- children: /*#__PURE__*/ jsx(ZoomInOutlined, {
10434
- onClick: function() {
10435
- setViewBase64(JSON.parse(item.extraInfo)[0].value);
10436
- setVisible(true);
10437
- }
10438
- })
10439
- })
10440
- ]
10441
- })
10442
- ]
10443
- })
10444
- ]
10441
+ ]
10442
+ }),
10443
+ historyMessageList.length - 1 !== i && /*#__PURE__*/ jsx("div", {
10444
+ className: "".concat(styles.operate_modal, " ").concat(styles.bottom, " operate_modal_showbottom"),
10445
+ children: // 不是最后一行,
10446
+ renderOperateBtn(item, isAiChatWindow, i)
10447
+ })
10448
+ ]
10449
+ })
10445
10450
  })
10446
10451
  })
10447
10452
  ]