bhd-components 0.9.15 → 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.
- package/README.md +1 -1
- package/dist/index.esm.es5.development.css +1099 -1093
- package/dist/index.esm.es5.development.js +42 -35
- 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/historyFun.js +9 -9
- package/es2017/customerService/index.js +32 -25
- package/es2017/customerService/index.module.less +6 -5
- package/es2017/customerService/index2.module.less +6 -5
- package/esm/customerService/historyFun.js +9 -9
- package/esm/customerService/index.js +32 -25
- package/esm/customerService/index.module.less +6 -5
- package/esm/customerService/index2.module.less +6 -5
- package/package.json +1 -1
|
@@ -2520,7 +2520,7 @@ function BhdAppLayout(props) {
|
|
|
2520
2520
|
});
|
|
2521
2521
|
}
|
|
2522
2522
|
|
|
2523
|
-
var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"
|
|
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(
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
children: /*#__PURE__*/ jsxs(
|
|
3015
|
-
|
|
3016
|
-
|
|
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 = "";
|
|
@@ -10282,32 +10282,39 @@ var CustomerService = function(props) {
|
|
|
10282
10282
|
children: /*#__PURE__*/ jsxs("div", {
|
|
10283
10283
|
className: styles.main_content_flag,
|
|
10284
10284
|
onMouseEnter: function() {
|
|
10285
|
-
var
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
var
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
if (
|
|
10299
|
-
topDom.style.cssText = "
|
|
10300
|
-
bottomDom.style.cssText = "";
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
|
|
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, '"]'));
|
|
10289
|
+
if (dom) {
|
|
10290
|
+
// const con_h=document.getElementById('chat_content').clientHeight-24;//滚动区域的高度
|
|
10291
|
+
var con_h = container.clientHeight - (isSmall ? 24 : 0); //滚动区域的高度;
|
|
10292
|
+
var rectY = dom.getBoundingClientRect().y - 48;
|
|
10293
|
+
var h = dom.clientHeight + (isSmall ? 24 : 0); //当前元素高度
|
|
10294
|
+
var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
|
|
10295
|
+
var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
|
|
10296
|
+
// console.log({h,con_h,rectY,topDom,bottomDom})
|
|
10297
|
+
if (topDom && bottomDom) {
|
|
10298
|
+
if (rectY > 0) {
|
|
10299
|
+
topDom.style.cssText = "";
|
|
10300
|
+
bottomDom.style.cssText = "visibility: hidden;";
|
|
10301
|
+
// 上下都能显示时,显示到下边
|
|
10302
|
+
if (h < con_h - rectY) {
|
|
10303
|
+
console.log("上下都能显示时,显示到下边");
|
|
10304
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
10305
|
+
bottomDom.style.cssText = "";
|
|
10306
|
+
}
|
|
10308
10307
|
} else {
|
|
10309
|
-
|
|
10310
|
-
|
|
10308
|
+
// 上下都不显示
|
|
10309
|
+
if (h > con_h && h - con_h > Math.abs(rectY)) {
|
|
10310
|
+
console.log("上下都不显示");
|
|
10311
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
10312
|
+
bottomDom.style.cssText = "top:".concat(-(h + rectY - 51 - (isSmall ? 0 : 58)), "px;");
|
|
10313
|
+
} else {
|
|
10314
|
+
console.log("12312312");
|
|
10315
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
10316
|
+
bottomDom.style.cssText = "";
|
|
10317
|
+
}
|
|
10311
10318
|
}
|
|
10312
10319
|
}
|
|
10313
10320
|
}
|